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,