From 418b5f1de78c411015b896d13304a63388249148 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Fri, 1 Jul 2022 17:03:15 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 33 ++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index c59b84f9..e357fa94 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -5,7 +5,7 @@
{{ item.title }} - + { res.data.data.forEach((val) => { @@ -281,10 +288,21 @@ }) }) }) + // 改变查询摄像头接口的labelCode数组 + mapSearchParam.value.labelCodes = [] + clickList.value[1].content.map((item) => { + mapSearchParam.value.labelCodes.push(item.labelCode) + }) + console.log('选中的标签code', mapSearchParam.value) + mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' + getCamera() } else if (name == '云资源') { tableHeight.value = 600 showMap.value = false + dataSource.value = [] + pagination.value.total = 0 clickList.value[1].content = [] + tabList.value[1].title = '云资源分类' clickList.value[indexFather].content[0] = name tabList.value[1].content = [ '云主机', @@ -300,20 +318,15 @@ tableHeight.value = 330 showMap.value = true clickList.value[1].content = [] + pagination.value.total = 0 + tabList.value[1].title = '感知资源分类' clickList.value[indexFather].content[0] = name tabList.value[1].content = [] + dataSource.value = [] } else { clickList.value[indexFather].content.push(name) } } - // 改变查询摄像头接口的labelCode数组 - mapSearchParam.value.labelCodes = [] - clickList.value[1].content.map((item) => { - mapSearchParam.value.labelCodes.push(item.labelCode) - }) - console.log('选中的标签code', mapSearchParam.value) - mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' - getCamera() } // 清空 const nullClick = () => {