From 5b814bc9dfba25089ec908790d9079be0fae589b Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Tue, 28 Nov 2023 15:00:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/huizhou.ts | 2 +- src/routers/modules/dynamicRouter.ts | 5 ++++- .../largeScreen/largeScreenOne/components/BDmaps.vue | 9 +++++++-- .../largeScreen/largeScreenOne/components/BDmaps3D.vue | 9 +++++++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/api/modules/huizhou.ts b/src/api/modules/huizhou.ts index dc7d91e..b00a5e2 100644 --- a/src/api/modules/huizhou.ts +++ b/src/api/modules/huizhou.ts @@ -135,7 +135,7 @@ export const payGovermentContactEdit = (params: any) => { }; // 投资支付合同设置结算定案日期 export const payGovermentContactSet = (params: any) => { - return http.post(BASEURL + `/gov/engineering/edit`, params); + return http.post(BASEURL + `/gov/engineering/editSettlementTime`, params); }; // 投资支付列表 export const payGovermentAllList = (params: any) => { diff --git a/src/routers/modules/dynamicRouter.ts b/src/routers/modules/dynamicRouter.ts index f6cd44e..a012afe 100644 --- a/src/routers/modules/dynamicRouter.ts +++ b/src/routers/modules/dynamicRouter.ts @@ -36,6 +36,7 @@ export const initDynamicRouter = async (params?: any) => { } // 3.添加动态路由 + let toNum = 0; // 记录跳转数,只想跳转一次 authStore.flatMenuListGet.forEach((item: any, index: any) => { item.children && delete item.children; if (item.component && isType(item.component) == "string") { @@ -57,9 +58,11 @@ export const initDynamicRouter = async (params?: any) => { // console.log("exec"); if (globalStore.path == item.path) { router.push(globalStore.path); + ++toNum; } else { - if (item.path != "/") { + if (item.path != "/" && toNum < 1) { router.push(item.path); + ++toNum; } } // globalStore.setPath(null); diff --git a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue index b1ed977..65274c3 100644 --- a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue +++ b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps.vue @@ -2,7 +2,7 @@
- {{ infoName }} + {{ infoName }}

x

@@ -206,9 +206,14 @@ onMounted(async () => { padding-bottom: 15px; border: 1px solid white; .title { - height: 70px; + // height: 70px; font-family: "siyuan_Bold"; span { + display: inline-block; + width: 95%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; font-size: 28px; color: white; } diff --git a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps3D.vue b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps3D.vue index 085ce79..8d74b8f 100644 --- a/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps3D.vue +++ b/src/views/goverment/huizhou/largeScreen/largeScreenOne/components/BDmaps3D.vue @@ -2,7 +2,7 @@
- {{ infoName }} + {{ infoName }}

x

@@ -201,9 +201,14 @@ onMounted(async () => { padding-bottom: 15px; border: 1px solid white; .title { - height: 70px; + // height: 70px; font-family: "siyuan_Bold"; span { + display: inline-block; + width: 95%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; font-size: 28px; color: white; }