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 = () => {