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