From 32403e337cf741f63183c042ced9ae527ffcdafb Mon Sep 17 00:00:00 2001 From: Guoqs Date: Mon, 22 Apr 2024 15:02:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=B9=B3=E5=8F=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/router/index.js | 13 +++++ jsowell-ui/src/utils/common.js | 2 +- jsowell-ui/src/views/pile/station/detail.vue | 12 +++-- .../src/views/thirdparty/secret/detail.vue | 50 +++++++++++++++++++ .../secret/index.vue | 15 +++++- .../thirdPartyConfig/index.vue | 0 .../thirdPartySetting/index.vue | 0 7 files changed, 86 insertions(+), 6 deletions(-) create mode 100644 jsowell-ui/src/views/thirdparty/secret/detail.vue rename jsowell-ui/src/views/{thirdParty => thirdparty}/secret/index.vue (97%) rename jsowell-ui/src/views/{thirdParty => thirdparty}/thirdPartyConfig/index.vue (100%) rename jsowell-ui/src/views/{thirdParty => thirdparty}/thirdPartySetting/index.vue (100%) diff --git a/jsowell-ui/src/router/index.js b/jsowell-ui/src/router/index.js index f2498c842..a2dde665c 100644 --- a/jsowell-ui/src/router/index.js +++ b/jsowell-ui/src/router/index.js @@ -205,6 +205,19 @@ export const constantRoutes = [ }, ], }, + { + path: "/secret/detail", + component: Layout, + hidden: true, + children: [ + { + path: "index/:id", + component: () => import("@/views/thirdparty/secret/detail"), + name: "secretDetail", + meta: { title: "第三方平台配置详情", activeMenu: "/secret/detail" }, + }, + ], + }, ]; // 动态路由,基于用户权限动态去加载 diff --git a/jsowell-ui/src/utils/common.js b/jsowell-ui/src/utils/common.js index f9c7cabee..87b11023c 100644 --- a/jsowell-ui/src/utils/common.js +++ b/jsowell-ui/src/utils/common.js @@ -4,7 +4,7 @@ // 日期格式化 export function parseTime(time, pattern) { - console.log("parseTime", time, pattern); + // console.log("parseTime", time, pattern); if (arguments.length === 0 || !time) { return null } diff --git a/jsowell-ui/src/views/pile/station/detail.vue b/jsowell-ui/src/views/pile/station/detail.vue index 0e48d27dc..8d0bee98f 100644 --- a/jsowell-ui/src/views/pile/station/detail.vue +++ b/jsowell-ui/src/views/pile/station/detail.vue @@ -231,10 +231,7 @@ export default { this.queryGroundLockQrCode = "https://api.jsowellcloud.com/app-xcx-h5/getGroundLockInfo/" + this.stationId; - const stationName = this.stationName; - const title = "【" + stationName + "】站点详情"; - const route = Object.assign({}, this.$route, { title: `${title}` }); - this.$store.dispatch("tagsView/updateVisitedView", route); + this.updateTitle(); this.getRelationByStationId(); this.getParkingList(); this.queryStationInfo(); @@ -243,6 +240,13 @@ export default { this.initializeData(this.activeName); }, methods: { + // 更新页面title显示 + updateTitle() { + const stationName = this.stationName; + const title = "【" + stationName + "】站点详情"; + const route = Object.assign({}, this.$route, { title: `${title}` }); + this.$store.dispatch("tagsView/updateVisitedView", route); + }, handleClick(tab, event) { // console.log(tab, event); this.initializeData(tab.name); diff --git a/jsowell-ui/src/views/thirdparty/secret/detail.vue b/jsowell-ui/src/views/thirdparty/secret/detail.vue new file mode 100644 index 000000000..b2b1b75b9 --- /dev/null +++ b/jsowell-ui/src/views/thirdparty/secret/detail.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/jsowell-ui/src/views/thirdParty/secret/index.vue b/jsowell-ui/src/views/thirdparty/secret/index.vue similarity index 97% rename from jsowell-ui/src/views/thirdParty/secret/index.vue rename to jsowell-ui/src/views/thirdparty/secret/index.vue index 518dc7416..1c3ce2003 100644 --- a/jsowell-ui/src/views/thirdParty/secret/index.vue +++ b/jsowell-ui/src/views/thirdparty/secret/index.vue @@ -130,7 +130,11 @@ - + + +