From 33ba30d97f4eca0bfc05e788a89ae7597dd5424a Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 20 Oct 2022 16:07:56 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A?= =?UTF-8?q?=E4=BA=91=E5=9B=BE=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90=E6=95=B0?= =?UTF-8?q?=E9=87=8F=20=EF=BC=8C=E5=89=8D=E7=AB=AF=E5=8E=BB=E6=8E=89+4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capabilityCloud/components/Infrastructure.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/front/src/views/capabilityCloud/components/Infrastructure.vue b/front/src/views/capabilityCloud/components/Infrastructure.vue index 2741e9b5..08cf1b86 100644 --- a/front/src/views/capabilityCloud/components/Infrastructure.vue +++ b/front/src/views/capabilityCloud/components/Infrastructure.vue @@ -75,15 +75,10 @@ const params = { pageSize: 10, } infrastructureInfo().then((res) => { - console.log('基础设施==================>', res.data.data) + console.log('基础设施======云图============>', res.data.data) myDataList.value.forEach((val) => { const obj = res.data.data.filter((item) => item.type === val.title)[0] if (obj) { - if (obj.type == '视频资源数量') { - if (uavAndIndividualSoldier.num) { - obj.amount = obj.amount - 0 + uavAndIndividualSoldier.num - } - } val.snum = obj.amount } }) From 1f3116f402907f06ac3c08a51e7ce860917c8f36 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 20 Oct 2022 16:15:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=BC=80=E5=90=AFgzip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/router/index.js | 3 + .../modules/myAgent/CompetencyApplication.vue | 6 +- .../myAgent/demo/competency-application.vue | 36 +++++------ front/package.json | 1 + front/public/index.html | 4 +- front/vue.config.js | 59 +++++++++++++------ 6 files changed, 68 insertions(+), 41 deletions(-) diff --git a/back/src/router/index.js b/back/src/router/index.js index 08f69ea5..299a5852 100644 --- a/back/src/router/index.js +++ b/back/src/router/index.js @@ -105,6 +105,7 @@ router.beforeEach((to, from, next) => { return next({ name: 'login' }) } window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0) + debugger fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList) next({ ...to, replace: true }) }).catch(() => { @@ -137,6 +138,7 @@ function fnCurrentRouteIsPageRoute (route, pageRoutes = []) { */ function fnAddDynamicMenuRoutes (menuList = [], routes = []) { var temp = [] + debugger for (var i = 0; i < menuList.length; i++) { if (menuList[i].children && menuList[i].children.length >= 1) { temp = temp.concat(menuList[i].children) @@ -187,6 +189,7 @@ function fnAddDynamicMenuRoutes (menuList = [], routes = []) { }, { path: '*', redirect: { name: '404' } } ]) + console.log('查询路由', routes) window.SITE_CONFIG.dynamicMenuRoutes = routes window.SITE_CONFIG.dynamicMenuRoutesHasAdded = true } diff --git a/back/src/views/modules/myAgent/CompetencyApplication.vue b/back/src/views/modules/myAgent/CompetencyApplication.vue index 8c8118c9..40398630 100644 --- a/back/src/views/modules/myAgent/CompetencyApplication.vue +++ b/back/src/views/modules/myAgent/CompetencyApplication.vue @@ -1,8 +1,8 @@