From f79b43d2619bef1099f5019a89263b490338d9c5 Mon Sep 17 00:00:00 2001 From: guoyue Date: Wed, 28 Sep 2022 14:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E8=AE=BE=E6=96=BD--=E9=BB=98=E8=AE=A4=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 3015273f..e5ef35d3 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -905,6 +905,7 @@ mapSearchParam.value.cameraName = props.searchValue } onMounted(() => { + // 获取用户信息 handleUser() if (jcssType.value) { @@ -913,8 +914,16 @@ getCamera() } } else { - tabClick(0, '政务云资源') - // getCamera() + if(isXiHaiAn) { + let _obj = { + title: '视频标签', + content: ['视频资源'] + } + clickList.value.push(_obj) + tabClick(0, '视频资源') + }else { + tabClick(0, '政务云资源') + } } mybus.off('getListByParentId') @@ -940,6 +949,7 @@ : ['政务云资源', '视频资源', '感知资源', '城市云脑会客厅'], }, ]) + let clickList = ref([]) //存储点击的tab if (!isXiHaiAn) { tabList.value.push({ title: '视频标签', @@ -1042,7 +1052,7 @@ console.log('获取到的列表数据') }) } - let clickList = ref([]) //存储点击的tab + init() //点击会议室左侧切换 const result = () => { @@ -1371,6 +1381,7 @@ name, clickList.value[indexFather] ) + selectedRowKeys.value = [] selectedList.value = [] if (clickList.value[indexFather].content.indexOf(name) != -1) { @@ -1586,8 +1597,6 @@ return message.error(res.data.msg) } let { list = [], total = 0 } = res.data.data - console.log('total------------>', total) - pagination.value.total = total if (name == '无人机') { list.map((wrj) => { @@ -1718,7 +1727,6 @@ } mapSearchParam.value.labelCodes = '' getCamera() - console.log('hhhhhhhh') } // 重置 const clean = () => { @@ -2013,7 +2021,6 @@ const handleUser = () => { getUser() .then((res) => { - console.log('res-----获取用户信息------->', res) if (res.data.code != 0) { return message.warning(res.data.msg) }