Commit a1531a1b by zhangquan

bug修复

1 parent b7ce5611
...@@ -432,7 +432,6 @@ export default { ...@@ -432,7 +432,6 @@ export default {
}, },
created() { created() {
this.getMerchantList() this.getMerchantList()
this.getRadarList()
}, },
mounted() {}, mounted() {},
methods: { methods: {
...@@ -526,7 +525,6 @@ export default { ...@@ -526,7 +525,6 @@ export default {
this.isBatch = false this.isBatch = false
if (this.batchForm.successCount) { if (this.batchForm.successCount) {
this.searchTable() this.searchTable()
this.getRadarList()
} }
this.batchForm = { this.batchForm = {
isUpload: false, isUpload: false,
...@@ -609,24 +607,10 @@ export default { ...@@ -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) { changeChannelImg(e) {
console.log(e, 'conpl') console.log(e, 'conpl')
}, },
closeDialogFn() {
this.collVisible = false
this.searchTable()
},
delParkingSpace(row) { delParkingSpace(row) {
console.log(row)
this.$confirm('请再次确认是否要执行删除操作', '提示', { this.$confirm('请再次确认是否要执行删除操作', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -643,10 +627,23 @@ export default { ...@@ -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 this.parkingPlaceVisible = true
}, },
updateParkingPlaceFn(row) { async updateParkingPlaceFn(row) {
await this.getRadarList(row.radarId)
for (const key in this.basicForm) { for (const key in this.basicForm) {
this.basicForm[key] = row[key] this.basicForm[key] = row[key]
} }
...@@ -665,7 +662,6 @@ export default { ...@@ -665,7 +662,6 @@ export default {
this.$message.success(`${params.id ? '修改' : '添加'}成功`) this.$message.success(`${params.id ? '修改' : '添加'}成功`)
this.handleCancel() this.handleCancel()
this.searchTable() 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!