From 79a21aefa749952738f1b76219d56fc46932ecf7 Mon Sep 17 00:00:00 2001 From: wgx <31655391@qq.com> Date: Sat, 21 Mar 2026 18:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B0=8F=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Analysis/components/GrowCard.vue | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/src/views/dashboard/Analysis/components/GrowCard.vue b/src/views/dashboard/Analysis/components/GrowCard.vue index 8ef9d00..98ae4c9 100644 --- a/src/views/dashboard/Analysis/components/GrowCard.vue +++ b/src/views/dashboard/Analysis/components/GrowCard.vue @@ -10,7 +10,7 @@ :canExpan="false" > @@ -36,24 +36,35 @@ import { ref, onMounted } from 'vue'; import { growCardListSummary} from '../api'; - const growCardList =ref(''); - + const growCardList =ref([]); onMounted(() => { - getSummary(); - }); function getSummary() { growCardListSummary().then((res) => { - - if (res.code == 200) { - growCardList.value = res.result - - } else { + if (res.code == 200) { + growCardList.value = res.result; + let has = false; + growCardList.value.map((item) => { + if(item.title.indexOf('监控')){ + has = true; + } + }) + if(!has){ + growCardList.value.push({ + 'action': '/appmana/liveCamra/index2', + 'color': 'purple', + 'icon': '', + 'title': '监控数量', + 'total': 4, + 'value': 4, + }); } - }) - } + } else { + } + }); + }; defineProps({