Commit fdd89408 authored by jisiyu's avatar jisiyu

delete:删除冗余代码

parent be835c20
...@@ -90,7 +90,6 @@ ...@@ -90,7 +90,6 @@
data() { data() {
return { return {
mapDialogVisible: false, mapDialogVisible: false,
disabledIndex: null,
rules: { rules: {
name: [{ required: true, message: "请输入商家名称", trigger: "blur" }], name: [{ required: true, message: "请输入商家名称", trigger: "blur" }],
}, },
...@@ -113,7 +112,6 @@ ...@@ -113,7 +112,6 @@
methods: { methods: {
modifyMerchant(id, index) { modifyMerchant(id, index) {
if (typeof id == "number") { if (typeof id == "number") {
// this.addMerchant = this.merchantList[index];
this.addMerchant = JSON.parse(JSON.stringify(this.merchantList[index])); this.addMerchant = JSON.parse(JSON.stringify(this.merchantList[index]));
} }
//点击“添加商家”按钮,弹窗打开 //点击“添加商家”按钮,弹窗打开
...@@ -130,13 +128,11 @@ ...@@ -130,13 +128,11 @@
if (code !== 0) return this.$message.error(reason); if (code !== 0) return this.$message.error(reason);
await this.getOtaList(); await this.getOtaList();
//点击保存时,弹窗关闭 //点击保存时,弹窗关闭
this.merchantAdd = false;
this.resetDate(); this.resetDate();
}, },
// 取消 // 取消
addCancel() { addCancel() {
//点击取消时,弹窗关闭 //点击取消时,弹窗关闭
this.merchantAdd = false;
this.resetDate(); this.resetDate();
}, },
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