Commit a1531a1b by zhangquan

bug修复

1 parent b7ce5611
......@@ -432,7 +432,6 @@ export default {
},
created() {
this.getMerchantList()
this.getRadarList()
},
mounted() {},
methods: {
......@@ -526,7 +525,6 @@ export default {
this.isBatch = false
if (this.batchForm.successCount) {
this.searchTable()
this.getRadarList()
}
this.batchForm = {
isUpload: false,
......@@ -609,24 +607,10 @@ export default {
}
})
},
getRadarList() {
this.$apis.parkingSpace.getRadarListApi({ pageNum: '1', pageSize: '1000', deviceStatus: 0 }).then(res => {
if (res?.list?.length) {
const _target = this.basicFormData.find(item => item.name == 'radarId')
_target.optionList = res.list
}
})
},
changeChannelImg(e) {
console.log(e, 'conpl')
},
closeDialogFn() {
this.collVisible = false
this.searchTable()
},
delParkingSpace(row) {
console.log(row)
this.$confirm('请再次确认是否要执行删除操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -643,10 +627,23 @@ export default {
}
})
},
addParkingPlaceFn() {
getRadarList(radarId) {
console.log(1111)
let params = { pageNum: '1', pageSize: '1000', bindingStatus: 0 }
if (radarId) params.radarId = radarId
this.$apis.parkingSpace.getRadarListApi(params).then(res => {
if (res?.list?.length) {
const _target = this.basicFormData.find(item => item.name == 'radarId')
_target.optionList = res.list
}
})
},
async addParkingPlaceFn() {
await this.getRadarList()
this.parkingPlaceVisible = true
},
updateParkingPlaceFn(row) {
async updateParkingPlaceFn(row) {
await this.getRadarList(row.radarId)
for (const key in this.basicForm) {
this.basicForm[key] = row[key]
}
......@@ -665,7 +662,6 @@ export default {
this.$message.success(`${params.id ? '修改' : '添加'}成功`)
this.handleCancel()
this.searchTable()
this.getRadarList()
}
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!