From 72dc375505e4b29e22a8addfed701f1cfdd98db9 Mon Sep 17 00:00:00 2001 From: Lemon Date: Thu, 24 Aug 2023 09:40:50 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20=20=E5=90=8E=E7=AE=A1=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E5=88=97=E8=A1=A8=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/pile/station/index.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/jsowell-ui/src/views/pile/station/index.vue b/jsowell-ui/src/views/pile/station/index.vue index f18d87287..8f8f8c8eb 100644 --- a/jsowell-ui/src/views/pile/station/index.vue +++ b/jsowell-ui/src/views/pile/station/index.vue @@ -151,7 +151,7 @@ v-model="scope.row.publicFlag" active-value="1" inactive-value="0" - @change="changeFlag(scope.row)" + @change="changeStationFlag(scope.row)" > @@ -162,7 +162,7 @@ v-model="scope.row.openFlag" active-value="1" inactive-value="0" - @change="changeFlag(scope.row)" + @change="changeStationFlag(scope.row)" > @@ -173,7 +173,7 @@ v-model="scope.row.amapFlag" active-value="1" inactive-value="0" - @change="changeFlag(scope.row)" + @change="changeAmapFlag(scope.row)" > @@ -373,7 +373,16 @@ export default { console.log("merchantList", this.merchantList) }); }, - changeFlag(info) { + changeStationFlag(info) { + console.log(info); + updateStation(info).then((response) => { + console.log("response", response) + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); + }, + changeAmapFlag(info) { console.log("info", info) const params = { stationId: info.id,