Compare commits

...

2 Commits

Author SHA1 Message Date
chenchenzai 5a98693b05 Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev 2022-11-22 18:27:13 +08:00
chenchenzai 3aed6a86ac 左侧树点击上图 2022-11-22 18:27:03 +08:00
1 changed files with 6 additions and 3 deletions

View File

@ -193,10 +193,11 @@ import { ElMessage } from 'element-plus'
// parentId // parentId
mybus.off('getCameraByParentId') mybus.off('getCameraByParentId')
mybus.on('getCameraByParentId', (parentId) => { mybus.on('getCameraByParentId', (parentId) => {
debugger
this.mapSearchParam.parentId = parentId this.mapSearchParam.parentId = parentId
this.mapSearchParam.type = "1" this.mapSearchParam.type = "1"
this.mapSearchParam.pageSize = 10000 this.mapSearchParam.pageSize = 10000
this.getCameraByParentId() this.getCameraByParentId('','department')
}) })
// //
mybus.off('selectTablePoint') mybus.off('selectTablePoint')
@ -398,7 +399,7 @@ import { ElMessage } from 'element-plus'
} }
}) })
}, },
getCameraByParentId(type) { getCameraByParentId(type,dataName) {
if (!this.whoShow1.itShowXiHaiAn) { if (!this.whoShow1.itShowXiHaiAn) {
getCameraByParentId(this.mapSearchParam).then((res) => { getCameraByParentId(this.mapSearchParam).then((res) => {
console.log('根据parent查询摄像头', res.data.data) console.log('根据parent查询摄像头', res.data.data)
@ -434,7 +435,9 @@ import { ElMessage } from 'element-plus'
} }
} }
} }
//params.type='0'; if(dataName){
params.type='0';
}
getCameraByCondition(params).then((res) => { getCameraByCondition(params).then((res) => {
//console.log('parent44444', res.data.data) //console.log('parent44444', res.data.data)
if(type=='map'){ if(type=='map'){