From 6ace796997129e14ea8966ca46500af9d971c022 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 10 Aug 2021 09:36:57 +0800
Subject: [PATCH] 首页左上总数
---
src/views/wel/home.vue | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/views/wel/home.vue b/src/views/wel/home.vue
index fadc17d..45c9af9 100644
--- a/src/views/wel/home.vue
+++ b/src/views/wel/home.vue
@@ -8,7 +8,7 @@
<div>
<div>
群防群控队伍
- <div class="title-1">({{ OURnum }})</div>
+ <div class="title-1">({{ OurNumLeftUp }})</div>
</div>
</div>
<div id="on_three_yjy">
@@ -112,13 +112,8 @@
echarts1: "",
leftUp: [],
+ OurNumLeftUp: "",
};
- },
-
- computed: {
- OURnum() {
- return 146;
- },
},
created() {},
mounted() {
@@ -132,10 +127,11 @@
},
methods: {
getLeftUp() {
- this.leftUp = [];
+ (this.leftUp = []), (this.OurNumLeftUp = 0);
getLeftUp().then((res) => {
var d = res.data.data;
d.forEach((item, index, arr) => {
+ this.OurNumLeftUp += item.num;
let img =
item.region == "治保会队伍"
? "/img/wyh.png"
--
Gitblit v1.9.3