Commit a42db4be authored by jisiyu's avatar jisiyu

fix:弹窗修改完成后,清除缓存数据

parent 175f1ef1
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 添加商家弹窗 --> <!-- 添加商家弹窗 -->
<el-dialog title="商家编辑" v-model="merchantAdd" width="70%" :show-close="false"> <el-dialog title="商家编辑" v-model="merchantAdd" :before-close="resetDate" width="70%" :show-close="false">
<el-form class="dioFor" :model="addMerchant" :rules="rules"> <el-form class="dioFor" :model="addMerchant" :rules="rules">
<el-form-item label="商家名称" label-width="100px" prop="ota_name"> <el-form-item label="商家名称" label-width="100px" prop="ota_name">
<el-input maxlength="30" show-word-limit clearable autocomplete="off" v-model="addMerchant.ota_name"></el-input> <el-input maxlength="30" show-word-limit clearable autocomplete="off" v-model="addMerchant.ota_name"></el-input>
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
}, },
resetDate() { resetDate() {
this.addMerchant = {}; this.addMerchant = {};
this.merchantAdd = false;
}, },
//禁用 //禁用
async handleDisable(item) { async handleDisable(item) {
......
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