西海岸--基础设施:去掉视频标签

This commit is contained in:
guoyue 2022-09-22 15:08:02 +08:00
parent 05d2ad1a45
commit fe3eb0aa68
1 changed files with 79 additions and 49 deletions

View File

@ -635,11 +635,13 @@ const tabList = ref([
title: '设施类型', title: '设施类型',
content: isXiHaiAn ? ['视频资源'] : ['视频资源', '云资源', '感知资源', '城市云脑会客厅'], content: isXiHaiAn ? ['视频资源'] : ['视频资源', '云资源', '感知资源', '城市云脑会客厅'],
}, },
{ ])
if (!isXiHaiAn) {
tabList.value.push({
title: '视频标签', title: '视频标签',
content: [], content: [],
}, })
]) }
const wrjVisible = ref(false) const wrjVisible = ref(false)
const wrjName = ref('') const wrjName = ref('')
const wrjData = ref([]) const wrjData = ref([])
@ -1065,7 +1067,10 @@ const tabClick = (indexFather, name) => {
room.value = true room.value = true
tableHeight.value = 330 tableHeight.value = 330
showMap.value = true showMap.value = true
tabList.value[1].title = '视频标签' if (tabList.value[1]) {
tabList.value[1].title = '视频标签'
}
} else if (name == '云资源') { } else if (name == '云资源') {
room.value = true room.value = true
tableHeight.value = 600 tableHeight.value = 600
@ -1073,7 +1078,9 @@ const tabClick = (indexFather, name) => {
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
pagination.value.total = 0 pagination.value.total = 0
tabList.value[1].title = '云资源分类' if (tabList.value[1]) {
tabList.value[1].title = '云资源分类'
}
} else if (name == '感知资源') { } else if (name == '感知资源') {
room.value = true room.value = true
tableHeight.value = 330 tableHeight.value = 330
@ -1100,26 +1107,34 @@ const tabClick = (indexFather, name) => {
wrjFlag.value = false wrjFlag.value = false
tableHeight.value = 330 tableHeight.value = 330
showMap.value = true showMap.value = true
tabList.value[1].content = [] if (tabList.value[1]) {
clickList.value[1].content = [] tabList.value[1].content = []
tabList.value[1].title = '视频标签' tabList.value[1].title = '视频标签'
}
if (clickList.value[1]) {
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name clickList.value[indexFather].content[0] = name
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
room.value = true room.value = true
getCameraAllLabel().then((res) => { getCameraAllLabel().then((res) => {
res.data.data.forEach((val) => { res.data.data.forEach((val) => {
tabList.value[1].content.push({ if (tabList.value[1]) {
labelCode: val.labelCode, tabList.value[1].content.push({
labelName: val.labelName, labelCode: val.labelCode,
}) labelName: val.labelName,
})
}
}) })
}) })
// labelCode // labelCode
mapSearchParam.value.labelCodes = [] mapSearchParam.value.labelCodes = []
clickList.value[1].content.map((item) => { if (clickList.value[1]) {
mapSearchParam.value.labelCodes.push(item.labelCode) clickList.value[1].content.map((item) => {
}) mapSearchParam.value.labelCodes.push(item.labelCode)
})
}
console.log('选中的标签code', mapSearchParam.value) console.log('选中的标签code', mapSearchParam.value)
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
emits('add', 1) emits('add', 1)
@ -1130,30 +1145,38 @@ const tabClick = (indexFather, name) => {
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
pagination.value.total = 0 pagination.value.total = 0
clickList.value[1].content = [] if (clickList.value[1]) {
tabList.value[1].title = '云资源分类' clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name clickList.value[indexFather].content[0] = name
tabList.value[1].content = [ if (tabList.value[1]) {
'云主机', tabList.value[1].title = '云资源分类'
'算力主机', tabList.value[1].content = [
'对象存储', '云主机',
'堡垒机', '算力主机',
'防火墙', '对象存储',
'网闸', '堡垒机',
'负载均衡', '防火墙',
'公网IP', '网闸',
] '负载均衡',
'公网IP',
]
}
room.value = true room.value = true
wrjFlag.value = false wrjFlag.value = false
emits('add', 2) emits('add', 2)
} else if (name == '感知资源') { } else if (name == '感知资源') {
tableHeight.value = 330 tableHeight.value = 330
showMap.value = true showMap.value = true
clickList.value[1].content = [] if (clickList.value[1]) {
clickList.value[1].content = []
}
pagination.value.total = 0 pagination.value.total = 0
tabList.value[1].title = '感知资源分类'
clickList.value[indexFather].content[0] = name clickList.value[indexFather].content[0] = name
tabList.value[1].content = [] if (tabList.value[1]) {
tabList.value[1].content = []
tabList.value[1].title = '感知资源分类'
}
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
room.value = true room.value = true
@ -1170,28 +1193,33 @@ const tabClick = (indexFather, name) => {
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
pagination.value.total = 0 pagination.value.total = 0
clickList.value[1].content = [] if (clickList.value[1]) {
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name clickList.value[indexFather].content[0] = name
tabList.value[1].title = '' if (tabList.value[1]) {
tabList.value[1].content = [] tabList.value[1].content = []
tabList.value[1].title = ''
}
wrjFlag.value = true wrjFlag.value = true
room.value = false room.value = false
// wrjFlag.value = true
// showMap.value = false
roomYuyue.value = true roomYuyue.value = true
roomResult.value = false roomResult.value = false
// tabList.value[1] = []
emits('add', 6) emits('add', 6)
searchData() searchData()
} else { } else {
clickList.value[indexFather].content.push(name) if (clickList.value[indexFather]) {
clickList.value[indexFather].content.push(name)
}
} }
} }
// labelCode // labelCode
mapSearchParam.value.labelCodes = [] mapSearchParam.value.labelCodes = []
clickList.value[1].content.map((item) => { if (clickList.value[1]) {
mapSearchParam.value.labelCodes.push(item.labelCode) clickList.value[1].content.map((item) => {
}) mapSearchParam.value.labelCodes.push(item.labelCode)
})
}
console.log('选中的标签code', mapSearchParam.value) console.log('选中的标签code', mapSearchParam.value)
mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + ''
@ -1220,10 +1248,14 @@ const getSoldierData = (indexFather, name) => {
showMap.value = false showMap.value = false
dataSource.value = [] dataSource.value = []
dataSource2.value = [] dataSource2.value = []
clickList.value[1].content = [] if (clickList.value[1]) {
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name clickList.value[indexFather].content[0] = name
tabList.value[1].title = '' if (tabList.value[1]) {
tabList.value[1].content = [] tabList.value[1].title = ''
tabList.value[1].content = []
}
wrjFlag.value = true wrjFlag.value = true
let _params = { let _params = {
@ -1362,7 +1394,9 @@ const batchPicturePreview = async function (page) {
} }
// //
const nullClick = () => { const nullClick = () => {
clickList.value[1].content = [] if (clickList.value[1]) {
clickList.value[1].content = []
}
mapSearchParam.value.labelCodes = '' mapSearchParam.value.labelCodes = ''
getCamera() getCamera()
console.log('hhhhhhhh') console.log('hhhhhhhh')
@ -1655,11 +1689,7 @@ const videoShowMsg = () => {
} }
.tabBox { .tabBox {
margin-bottom: 0.16rem; padding-bottom: 0.16rem;
}
.tabBox:last-of-type {
margin-bottom: 0;
} }
} }