From 56f35a339e7076dd88250985dc8fcd183eb8f592 Mon Sep 17 00:00:00 2001 From: PLUTO <> Date: Wed, 11 Oct 2023 16:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A6=82=E8=A7=88=E5=8A=A8=E6=80=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=94=B9=E4=B8=BA=E5=9B=9B=E6=9D=A1=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E9=A1=B5=E9=9D=A2=E9=97=B4=E8=B7=9D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DynamicHumanRoomData.vue | 46 ++-- .../overview/components/GridUpdateRanking.vue | 53 ++--- src/views/dataBoard/overview/index.vue | 214 ++++-------------- 3 files changed, 70 insertions(+), 243 deletions(-) diff --git a/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue b/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue index 7f391e7d2..44a232913 100644 --- a/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue +++ b/src/views/dataBoard/overview/components/DynamicHumanRoomData.vue @@ -34,12 +34,8 @@ -
- +
+
近3日暂无更新
@@ -74,30 +70,18 @@ export default { }, methods: { getList(item) { - this.$http - .get( - "/actual/base/streetOverview/residentHouseUpdateRecord?level=" + - item.orgLevel + - "&orgId=" + - item.orgId - ) - .then(({ data: { data } }) => { - this.list = data; - if (this.list.length > 4) { - this.$nextTick(() => { - const aniHeight = - this.$refs.animation2.querySelector(".tr").offsetHeight * - this.pmList.length; - this.$refs.animation2.style.animation = `move1 ${this.pmList.length}s linear infinite`; - document.styleSheets[0].insertRule( - `@keyframes move2{0% {transform: translateY(0px);}100% {transform: translateY(-${aniHeight}px);}`, - 0 - ); - }); - } else { - this.$refs.animation2.style.animation = null; - } - }); + this.$http.get("/actual/base/streetOverview/residentHouseUpdateRecord?level=" + item.orgLevel + "&orgId=" + item.orgId).then(({ data: { data } }) => { + this.list = data; + if (this.list.length > 4) { + this.$nextTick(() => { + const aniHeight = this.$refs.animation2.querySelector(".tr").offsetHeight * this.pmList.length; + this.$refs.animation2.style.animation = `move1 ${this.pmList.length}s linear infinite`; + document.styleSheets[0].insertRule(`@keyframes move2{0% {transform: translateY(0px);}100% {transform: translateY(-${aniHeight}px);}`, 0); + }); + } else { + this.$refs.animation2.style.animation = null; + } + }); }, }, }; @@ -116,7 +100,7 @@ export default { color: #a3b9da; } .dhrd-list { - height: 140px; + height: 150px; overflow-y: auto; @include scrollBar .dhrd-item { display: flex; diff --git a/src/views/dataBoard/overview/components/GridUpdateRanking.vue b/src/views/dataBoard/overview/components/GridUpdateRanking.vue index e366d3240..3e37bef5f 100644 --- a/src/views/dataBoard/overview/components/GridUpdateRanking.vue +++ b/src/views/dataBoard/overview/components/GridUpdateRanking.vue @@ -22,9 +22,7 @@
-
+
{{ index - 0 + 1 }}
{{ item.orgName }}
@@ -36,15 +34,8 @@
-
- +
+
近3日暂无更新
@@ -85,30 +76,18 @@ export default { }, methods: { getList(item) { - this.$http - .get( - "/actual/base/streetOverview/residentHouseUpdateGroupByGrid?level=" + - item.orgLevel + - "&orgId=" + - item.orgId - ) - .then(({ data: { data } }) => { - this.pmList = data; - if (this.pmList.length > 3) { - this.$nextTick(() => { - const aniHeight = - this.$refs.animation1.querySelector(".tr").offsetHeight * - this.pmList.length; - this.$refs.animation1.style.animation = `move1 ${this.pmList.length}s linear infinite`; - document.styleSheets[0].insertRule( - `@keyframes move1{0% {transform: translateY(0px);}100% {transform: translateY(-${aniHeight}px);}`, - 0 - ); - }); - } else { - this.$refs.animation1.style.animation = null; - } - }); + this.$http.get("/actual/base/streetOverview/residentHouseUpdateGroupByGrid?level=" + item.orgLevel + "&orgId=" + item.orgId).then(({ data: { data } }) => { + this.pmList = data; + if (this.pmList.length > 3) { + this.$nextTick(() => { + const aniHeight = this.$refs.animation1.querySelector(".tr").offsetHeight * this.pmList.length; + this.$refs.animation1.style.animation = `move1 ${this.pmList.length}s linear infinite`; + document.styleSheets[0].insertRule(`@keyframes move1{0% {transform: translateY(0px);}100% {transform: translateY(-${aniHeight}px);}`, 0); + }); + } else { + this.$refs.animation1.style.animation = null; + } + }); }, }, }; @@ -118,7 +97,7 @@ export default { - +