From bd2fb1c451c4f08889493c8db09bf79f1970efa0 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Sat, 11 Mar 2023 15:16:22 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8A=A8=E6=80=81=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/pile/station/detail.vue | 5 +++++ jsowell-ui/src/views/pile/station/index.vue | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/jsowell-ui/src/views/pile/station/detail.vue b/jsowell-ui/src/views/pile/station/detail.vue index 5843c7248..058146286 100644 --- a/jsowell-ui/src/views/pile/station/detail.vue +++ b/jsowell-ui/src/views/pile/station/detail.vue @@ -62,10 +62,15 @@ export default { return { activeName: 'pile', stationId: this.$route.params.id, + stationName: this.$route.params.stationName, }; }, created() { // console.log(this.stationId, "充电桩详情 create"); + const stationName = this.stationName; + const title = "【" + stationName + "】站点详情"; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) }, mounted() { this.initializeData(this.activeName); diff --git a/jsowell-ui/src/views/pile/station/index.vue b/jsowell-ui/src/views/pile/station/index.vue index 9eb8c7e30..c95f66f11 100644 --- a/jsowell-ui/src/views/pile/station/index.vue +++ b/jsowell-ui/src/views/pile/station/index.vue @@ -92,12 +92,13 @@ @@ -328,6 +329,16 @@ export default { // this.getMerchantList(); }, methods: { + goStationDetail(scope) { + // console.log("跳转到充电站详情", scope.row.stationName); + this.$router.push({ + name: 'stationDetail', + params: { + id: scope.row.id, + stationName: scope.row.stationName, + } + }); + }, getMerchantList() { getMerchantList().then((response) => { this.merchantList = response.rows;