From eb08f86f21560a6872e5d59242b82251921f4aa6 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Wed, 6 Jul 2022 16:34:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?462=E6=97=A0=E6=B3=95=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/front/src/main.js b/front/src/main.js index 8cd80605..a24e5800 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -51,3 +51,9 @@ router.beforeEach((to, from, next) => { document.body.scrollTop = 0 next() }) +// 解决bug:页面/路由跳转后,滚动条消失,页面无法滚动 +router.afterEach((to, from, next) => { + document + .querySelector('body') + .setAttribute('style', 'overflow: auto !important;') +}) From 544ba0282828b23c3b77fe248e26af6e0d90cf83 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Wed, 6 Jul 2022 17:01:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=B0=83=E7=94=A8=E8=B6=8B=E5=8A=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ComponentServices.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index 2c6dc034..ae100a9f 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -174,7 +174,7 @@ } else { for (let i = 0; i < 31; i++) { let time = moment() - .subtract('days', 30 - i) + .subtract('days', 29 - i) .format('MM-DD') callTheTrendData.value.time.push(time) console.log('time', callTheTrendData.value, name) @@ -186,14 +186,23 @@ if (!xinhaianIsShow) { callTheTrendPort(start, end, 86400).then((res) => { if (res.data.data.result) { - // res.data.data.result.splice(0, 1) callTheTrendData.value.snum = [] res.data.data.result[0].values.map((item) => { - callTheTrendData.value.snum.push( - moment(item[0] * 1000).format('MM-DD') - ) callTheTrendData.value.snum.push(parseInt(item[1])) }) + if (res.data.data.result[0].values.length < 30) { + for ( + let i = 0; + i < 30 - res.data.data.result[0].values.length; + i++ + ) { + callTheTrendData.value.snum.push(0) + } + } + console.log( + 'callTheTrendData.value.snum', + callTheTrendData.value.snum + ) callTheTrend(callTheTrendData.value) } else { for (let i = 0; i < 30; i++) { From 71eae6deebf8e2f4a21642a528325ff09c754d3c Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Wed, 6 Jul 2022 18:15:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?318=E6=91=84=E5=83=8F=E5=A4=B4=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=BC=B9=E7=AA=97bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/AbilityToApplyFor.vue | 372 ++++++++++++--------- 1 file changed, 215 insertions(+), 157 deletions(-) diff --git a/front/src/views/home/AbilityToApplyFor.vue b/front/src/views/home/AbilityToApplyFor.vue index 84b73888..57d4eabf 100644 --- a/front/src/views/home/AbilityToApplyFor.vue +++ b/front/src/views/home/AbilityToApplyFor.vue @@ -5,47 +5,44 @@ 展开 收起 -
+
{{ item.deptName }}
+ + + + +