|
|
@ -219,6 +219,7 @@ export default { |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
isshow: true, |
|
|
isshow: true, |
|
|
initTableData: [], |
|
|
initTableData: [], |
|
|
|
|
|
curRow: {}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -248,8 +249,9 @@ export default { |
|
|
// console.log(res); |
|
|
// console.log(res); |
|
|
|
|
|
|
|
|
// }); |
|
|
// }); |
|
|
this.form = row; |
|
|
|
|
|
console.log(row); |
|
|
|
|
|
|
|
|
this.curRow = { ...row }; |
|
|
|
|
|
console.log(this.curRow); |
|
|
|
|
|
// this.form = row; |
|
|
}, |
|
|
}, |
|
|
handleSizeChange(val) { |
|
|
handleSizeChange(val) { |
|
|
this.pages.MaxResultCount = val; |
|
|
this.pages.MaxResultCount = val; |
|
|
@ -266,6 +268,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//删除 |
|
|
//删除 |
|
|
delets(row) { |
|
|
delets(row) { |
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择删除的数据"); |
|
|
this.$message.warning("请选择删除的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -339,6 +342,8 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
toppings() { |
|
|
toppings() { |
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
|
|
|
|
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -349,6 +354,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
topping() { |
|
|
topping() { |
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -360,6 +366,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//编辑弹框 |
|
|
//编辑弹框 |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
if (this.form.id == undefined) { |
|
|
if (this.form.id == undefined) { |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
this.$message.warning("请选择操作的数据"); |
|
|
} else { |
|
|
} else { |
|
|
@ -378,10 +385,12 @@ export default { |
|
|
displayName: this.form.displayName, |
|
|
displayName: this.form.displayName, |
|
|
countryCode: this.form.countryCode, |
|
|
countryCode: this.form.countryCode, |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
|
|
|
if (res.code == 1) { |
|
|
this.$message.success("新增成功"); |
|
|
this.$message.success("新增成功"); |
|
|
this.form = {}; |
|
|
this.form = {}; |
|
|
this.getlist(); |
|
|
this.getlist(); |
|
|
this.dialogVisible = false; |
|
|
this.dialogVisible = false; |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} else if (this.form.displayName == "") { |
|
|
} else if (this.form.displayName == "") { |
|
|
this.$message.warning("请输入名称"); |
|
|
this.$message.warning("请输入名称"); |
|
|
@ -408,8 +417,10 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//新增弹框 |
|
|
//新增弹框 |
|
|
add() { |
|
|
add() { |
|
|
|
|
|
this.form = { ...this.curRow }; |
|
|
this.dialogVisible = true; |
|
|
this.dialogVisible = true; |
|
|
this.title = 1; |
|
|
this.title = 1; |
|
|
this.form = {}; |
|
|
this.form = {}; |
|
|
|