西海岸:基础设施--默认选中视频资源

This commit is contained in:
guoyue 2022-09-28 14:05:12 +08:00
parent 9c93864e38
commit f79b43d261
1 changed files with 14 additions and 7 deletions

View File

@ -905,6 +905,7 @@
mapSearchParam.value.cameraName = props.searchValue
}
onMounted(() => {
//
handleUser()
if (jcssType.value) {
@ -912,9 +913,17 @@
if (jcssType.value == '视频资源') {
getCamera()
}
} else {
if(isXiHaiAn) {
let _obj = {
title: '视频标签',
content: ['视频资源']
}
clickList.value.push(_obj)
tabClick(0, '视频资源')
}else {
tabClick(0, '政务云资源')
// getCamera()
}
}
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)
}