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

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 mapSearchParam.value.cameraName = props.searchValue
} }
onMounted(() => { onMounted(() => {
//
handleUser() handleUser()
if (jcssType.value) { if (jcssType.value) {
@ -913,8 +914,16 @@
getCamera() getCamera()
} }
} else { } else {
tabClick(0, '政务云资源') if(isXiHaiAn) {
// getCamera() let _obj = {
title: '视频标签',
content: ['视频资源']
}
clickList.value.push(_obj)
tabClick(0, '视频资源')
}else {
tabClick(0, '政务云资源')
}
} }
mybus.off('getListByParentId') mybus.off('getListByParentId')
@ -940,6 +949,7 @@
: ['政务云资源', '视频资源', '感知资源', '城市云脑会客厅'], : ['政务云资源', '视频资源', '感知资源', '城市云脑会客厅'],
}, },
]) ])
let clickList = ref([]) //tab
if (!isXiHaiAn) { if (!isXiHaiAn) {
tabList.value.push({ tabList.value.push({
title: '视频标签', title: '视频标签',
@ -1042,7 +1052,7 @@
console.log('获取到的列表数据') console.log('获取到的列表数据')
}) })
} }
let clickList = ref([]) //tab
init() init()
// //
const result = () => { const result = () => {
@ -1371,6 +1381,7 @@
name, name,
clickList.value[indexFather] clickList.value[indexFather]
) )
selectedRowKeys.value = [] selectedRowKeys.value = []
selectedList.value = [] selectedList.value = []
if (clickList.value[indexFather].content.indexOf(name) != -1) { if (clickList.value[indexFather].content.indexOf(name) != -1) {
@ -1586,8 +1597,6 @@
return message.error(res.data.msg) return message.error(res.data.msg)
} }
let { list = [], total = 0 } = res.data.data let { list = [], total = 0 } = res.data.data
console.log('total------------>', total)
pagination.value.total = total pagination.value.total = total
if (name == '无人机') { if (name == '无人机') {
list.map((wrj) => { list.map((wrj) => {
@ -1718,7 +1727,6 @@
} }
mapSearchParam.value.labelCodes = '' mapSearchParam.value.labelCodes = ''
getCamera() getCamera()
console.log('hhhhhhhh')
} }
// //
const clean = () => { const clean = () => {
@ -2013,7 +2021,6 @@
const handleUser = () => { const handleUser = () => {
getUser() getUser()
.then((res) => { .then((res) => {
console.log('res-----获取用户信息------->', res)
if (res.data.code != 0) { if (res.data.code != 0) {
return message.warning(res.data.msg) return message.warning(res.data.msg)
} }