From ad91f161d113ed1d9e16361b9d47c53c4c3edb3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Fri, 29 Nov 2024 17:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=A3=8E=E6=9C=BA=EF=BC=9A=E5=AD=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=A8=A1=E6=80=81=E7=AA=97=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=95=B0=E6=8D=AE=E9=87=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/backend/WindBlower/index.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/dasadmin/src/views/backend/WindBlower/index.vue b/ui/dasadmin/src/views/backend/WindBlower/index.vue index 7a38d2fe..0dfc8ce7 100644 --- a/ui/dasadmin/src/views/backend/WindBlower/index.vue +++ b/ui/dasadmin/src/views/backend/WindBlower/index.vue @@ -2,9 +2,9 @@
- 模拟量 - 计算量 - 状态量 + 模拟量 + 计算量 + 状态量
@@ -1017,14 +1017,6 @@ const createRealTimeData = async () => { const dataFor138And139: { name: string; value: string }[] = [] const dataFor140: { name: string; value: string }[] = [] const dataFor199: { name: string; value: string }[] = [] - // const realDataForSub: any = [ - // { type138: [], type140: [], type199: [] }, - // { type138: [], type140: [], type199: [] }, - // { type138: [], type140: [], type199: [] }, - // { type138: [], type140: [], type199: [] }, - // { type138: [], type140: [], type199: [] }, - // { type138: [], type140: [], type199: [] }, - // ] const realDataForSub: any = subSystem.map(() => ({ type138: [], type140: [], type199: [] })) modelList.forEach((item: any) => { @@ -1088,7 +1080,15 @@ const dialogradioactiveName = ref(138) const realTimeForSubSystem = ref([]) const curSubSystem = ref(0) +const curSubAttrNum = reactive({ + type138: true, + type140: true, + type199: true, +}) const subSystemDataList = computed(() => { + curSubAttrNum.type138 = realTimeForSubSystem.value[curSubSystem.value].type138.length > 0 + curSubAttrNum.type140 = realTimeForSubSystem.value[curSubSystem.value].type140.length > 0 + curSubAttrNum.type199 = realTimeForSubSystem.value[curSubSystem.value].type199.length > 0 const type = dialogradioactiveName.value === 138 ? 'type138' : dialogradioactiveName.value === 140 ? 'type140' : 'type199' return realTimeForSubSystem.value[curSubSystem.value][type] })