{{ index - 0 + 1 }}
@@ -20,14 +20,16 @@
{{ item.sumNum }}
-
-
- {{ index - 0 + 1 }}
+
+
+
+ {{ index - 0 + 1 }}
+
+
{{ item.orgName }}
+
{{ item.houseNum }}
+
{{ item.residentNum }}
+
{{ item.sumNum }}
-
{{ item.orgName }}
-
{{ item.houseNum }}
-
{{ item.residentNum }}
-
{{ item.sumNum }}
@@ -72,6 +74,22 @@ export default {
getList(item) {
this.$http.get("/actual/base/streetOverview/residentHouseUpdateGroup?month=" + this.date + "&level=" + item.orgLevel + "&orgId=" + item.orgId).then(({ data: { data } }) => {
this.pmList = data;
+ if (this.pmList.length > 7) {
+ this.$nextTick(() => {
+ const aniHeight = this.$refs.animation.querySelector(".tr").offsetHeight * this.pmList.length;
+ this.$refs.animation.style.animation = "move 10s linear infinite";
+ document.styleSheets[0].insertRule(
+ `@keyframes move{0% {
+ transform: translateY(0px);
+ }
+
+ 100% {
+ transform: translateY(-${aniHeight}px);
+ }`,
+ 0
+ );
+ });
+ }
});
},
},