update 打开新增或修改对话框才进行查询运营商列表

This commit is contained in:
2023-03-09 14:28:45 +08:00
parent fb7df0f83c
commit 143172469e

View File

@@ -325,7 +325,7 @@ export default {
},
created() {
this.getList();
this.getMerchantList();
// this.getMerchantList();
},
methods: {
getMerchantList() {
@@ -456,12 +456,14 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.getMerchantList();
this.title = "添加充电站信息";
this.open = true;
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
this.getMerchantList();
const id = row.id || this.ids;
getStation(id).then((response) => {
this.form = response.data;