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 @@ - + + +