Commit fdd89408 authored by jisiyu's avatar jisiyu

delete:删除冗余代码

parent be835c20
......@@ -90,7 +90,6 @@
data() {
return {
mapDialogVisible: false,
disabledIndex: null,
rules: {
name: [{ required: true, message: "请输入商家名称", trigger: "blur" }],
},
......@@ -113,7 +112,6 @@
methods: {
modifyMerchant(id, index) {
if (typeof id == "number") {
// this.addMerchant = this.merchantList[index];
this.addMerchant = JSON.parse(JSON.stringify(this.merchantList[index]));
}
//点击“添加商家”按钮,弹窗打开
......@@ -130,13 +128,11 @@
if (code !== 0) return this.$message.error(reason);
await this.getOtaList();
//点击保存时,弹窗关闭
this.merchantAdd = false;
this.resetDate();
},
// 取消
addCancel() {
//点击取消时,弹窗关闭
this.merchantAdd = false;
this.resetDate();
},
resetDate() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment