fix:融合服务-详情

This commit is contained in:
guoyue 2022-08-09 13:13:01 +08:00
parent 2e79549ae1
commit b3769f2415
1 changed files with 6 additions and 5 deletions

View File

@ -162,6 +162,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.selectCheckbox() this.selectCheckbox()
}) })
if (this.modalType == 'add') {
this.clear()
}
} }
} }
}, },
@ -246,8 +249,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.currentList = this.tabData.find(v => v.tabName == this.activeBtn).list || []; this.currentList = this.tabData.find(v => v.tabName == this.activeBtn).list || [];
if (this.modalType == 'add') { if (this.modalType == 'add') {
// this.clear()
this.getData()
} }
}) })
}).catch(err => { }).catch(err => {
@ -276,7 +278,7 @@ export default {
}, },
// //
getData() { getData() {
let postData = Object.assign({ let postData = Object.assign({}, {
checkStatus: 1, checkStatus: 1,
gpsX: '', gpsX: '',
gpsY: '', gpsY: '',
@ -311,11 +313,10 @@ export default {
this.dataList.map(v => { this.dataList.map(v => {
if (idtCameraChannelArray.includes(v.idtCameraChannel)) { if (idtCameraChannelArray.includes(v.idtCameraChannel)) {
this.displayList.push({ this.displayList.push({
name: v.channelName channelName: v.channelName
}) })
} }
}) })
this.$emit('update', { this.$emit('update', {
title: this.type, title: this.type,
list: this.selectedArray.map(v => v.idtCameraChannel) list: this.selectedArray.map(v => v.idtCameraChannel)