赋能场景 基础设施标签查询传参

This commit is contained in:
guoyue 2022-07-29 09:27:04 +08:00
parent 488dbfbe5f
commit 42bad9af8e
2 changed files with 13 additions and 2 deletions

View File

@ -40,6 +40,9 @@
<el-button type="primary" style="margin-left:10px;margin-top:4px" size="small" @click="getData">
搜索
</el-button>
<el-button type="primary" style="margin-left:10px;margin-top:4px" size="small" @click="clear">
重置
</el-button>
</div>
</div>
@ -252,6 +255,8 @@ export default {
} else {
this.checkList.push(item.labelCode)
}
console.log('this.checkList------------>', this.checkList);
this.getData()
},
//
getData(parentId = '') {
@ -265,7 +270,7 @@ export default {
gpsX: '',
gpsY: '',
radius: '',
labelCodes: '',
labelCodes: this.checkList.join(),
}
return new Promise((resolve, reject) => {
this.$http.get('/api/project/selectByParentIdNew', { params: postData }).then(res => {
@ -283,6 +288,7 @@ export default {
},
changeParentId(parentId) {
console.log('parentId------------>', parentId);
this.getData(parentId)
},
confirmSubmitHandle() {
@ -312,6 +318,11 @@ export default {
this.transferData = [];
this.$emit('closeModal');
},
clear() {
this.cameraName = ''
this.selectedArray = [];
this.getData()
},
}
}

View File

@ -96,7 +96,7 @@ export default {
})
},
onSelect(item, val, child) {
// mybus.emit('getListByParentId', val.id)
this.$emit('changeParentId', val.id)
this.getCameraAllOrgan({ parentId: val.id }).then((res) => {
if (res.data.code !== 1) {
return this.$message.error(res.msg);