西海岸--基础设施:去掉视频标签
This commit is contained in:
parent
05d2ad1a45
commit
fe3eb0aa68
|
@ -635,11 +635,13 @@ const tabList = ref([
|
|||
title: '设施类型',
|
||||
content: isXiHaiAn ? ['视频资源'] : ['视频资源', '云资源', '感知资源', '城市云脑会客厅'],
|
||||
},
|
||||
{
|
||||
])
|
||||
if (!isXiHaiAn) {
|
||||
tabList.value.push({
|
||||
title: '视频标签',
|
||||
content: [],
|
||||
},
|
||||
])
|
||||
})
|
||||
}
|
||||
const wrjVisible = ref(false)
|
||||
const wrjName = ref('')
|
||||
const wrjData = ref([])
|
||||
|
@ -1065,7 +1067,10 @@ const tabClick = (indexFather, name) => {
|
|||
room.value = true
|
||||
tableHeight.value = 330
|
||||
showMap.value = true
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].title = '视频标签'
|
||||
}
|
||||
|
||||
} else if (name == '云资源') {
|
||||
room.value = true
|
||||
tableHeight.value = 600
|
||||
|
@ -1073,7 +1078,9 @@ const tabClick = (indexFather, name) => {
|
|||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
pagination.value.total = 0
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].title = '云资源分类'
|
||||
}
|
||||
} else if (name == '感知资源') {
|
||||
room.value = true
|
||||
tableHeight.value = 330
|
||||
|
@ -1100,26 +1107,34 @@ const tabClick = (indexFather, name) => {
|
|||
wrjFlag.value = false
|
||||
tableHeight.value = 330
|
||||
showMap.value = true
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].content = []
|
||||
clickList.value[1].content = []
|
||||
tabList.value[1].title = '视频标签'
|
||||
}
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
}
|
||||
clickList.value[indexFather].content[0] = name
|
||||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
room.value = true
|
||||
getCameraAllLabel().then((res) => {
|
||||
res.data.data.forEach((val) => {
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].content.push({
|
||||
labelCode: val.labelCode,
|
||||
labelName: val.labelName,
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
// 改变查询摄像头接口的labelCode数组
|
||||
mapSearchParam.value.labelCodes = []
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content.map((item) => {
|
||||
mapSearchParam.value.labelCodes.push(item.labelCode)
|
||||
})
|
||||
}
|
||||
console.log('选中的标签code', mapSearchParam.value)
|
||||
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
|
||||
emits('add', 1)
|
||||
|
@ -1130,9 +1145,12 @@ const tabClick = (indexFather, name) => {
|
|||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
pagination.value.total = 0
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
tabList.value[1].title = '云资源分类'
|
||||
}
|
||||
clickList.value[indexFather].content[0] = name
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].title = '云资源分类'
|
||||
tabList.value[1].content = [
|
||||
'云主机',
|
||||
'算力主机',
|
||||
|
@ -1143,17 +1161,22 @@ const tabClick = (indexFather, name) => {
|
|||
'负载均衡',
|
||||
'公网IP',
|
||||
]
|
||||
}
|
||||
room.value = true
|
||||
wrjFlag.value = false
|
||||
emits('add', 2)
|
||||
} else if (name == '感知资源') {
|
||||
tableHeight.value = 330
|
||||
showMap.value = true
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
}
|
||||
pagination.value.total = 0
|
||||
tabList.value[1].title = '感知资源分类'
|
||||
clickList.value[indexFather].content[0] = name
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].content = []
|
||||
tabList.value[1].title = '感知资源分类'
|
||||
}
|
||||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
room.value = true
|
||||
|
@ -1170,28 +1193,33 @@ const tabClick = (indexFather, name) => {
|
|||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
pagination.value.total = 0
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
}
|
||||
clickList.value[indexFather].content[0] = name
|
||||
tabList.value[1].title = ''
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].content = []
|
||||
tabList.value[1].title = ''
|
||||
}
|
||||
wrjFlag.value = true
|
||||
room.value = false
|
||||
// wrjFlag.value = true
|
||||
// showMap.value = false
|
||||
roomYuyue.value = true
|
||||
roomResult.value = false
|
||||
// tabList.value[1] = []
|
||||
emits('add', 6)
|
||||
searchData()
|
||||
} else {
|
||||
if (clickList.value[indexFather]) {
|
||||
clickList.value[indexFather].content.push(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
// 改变查询摄像头接口的labelCode数组
|
||||
mapSearchParam.value.labelCodes = []
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content.map((item) => {
|
||||
mapSearchParam.value.labelCodes.push(item.labelCode)
|
||||
})
|
||||
}
|
||||
console.log('选中的标签code', mapSearchParam.value)
|
||||
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
|
||||
|
||||
|
@ -1220,10 +1248,14 @@ const getSoldierData = (indexFather, name) => {
|
|||
showMap.value = false
|
||||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
}
|
||||
clickList.value[indexFather].content[0] = name
|
||||
if (tabList.value[1]) {
|
||||
tabList.value[1].title = ''
|
||||
tabList.value[1].content = []
|
||||
}
|
||||
wrjFlag.value = true
|
||||
|
||||
let _params = {
|
||||
|
@ -1362,7 +1394,9 @@ const batchPicturePreview = async function (page) {
|
|||
}
|
||||
// 清空
|
||||
const nullClick = () => {
|
||||
if (clickList.value[1]) {
|
||||
clickList.value[1].content = []
|
||||
}
|
||||
mapSearchParam.value.labelCodes = ''
|
||||
getCamera()
|
||||
console.log('hhhhhhhh')
|
||||
|
@ -1655,11 +1689,7 @@ const videoShowMsg = () => {
|
|||
}
|
||||
|
||||
.tabBox {
|
||||
margin-bottom: 0.16rem;
|
||||
}
|
||||
|
||||
.tabBox:last-of-type {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0.16rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue