Commit ffbacab0 by zhangquan

bug修复

1 parent 034b580c
...@@ -634,13 +634,12 @@ export default { ...@@ -634,13 +634,12 @@ export default {
} }
}) })
}, },
getRadarList(radarId) { getRadarList(radarObj) {
let params = { pageNum: '1', pageSize: '1000', bindingStatus: 0 } let params = { pageNum: '1', pageSize: '1000', bindingStatus: 0 }
if (radarId) params.radarId = radarId
this.$apis.parkingSpace.getRadarListApi(params).then(res => { this.$apis.parkingSpace.getRadarListApi(params).then(res => {
if (res?.list?.length) { if (res?.list?.length) {
const _target = this.basicFormData.find(item => item.name == 'radarId') const _target = this.basicFormData.find(item => item.name == 'radarId')
_target.optionList = res.list _target.optionList = [radarObj, ...res.list]
} }
}) })
}, },
...@@ -649,7 +648,8 @@ export default { ...@@ -649,7 +648,8 @@ export default {
this.openParkingDialog() this.openParkingDialog()
}, },
async updateParkingPlaceFn(row) { async updateParkingPlaceFn(row) {
await this.getRadarList(row.radarId) let radarObj = { radarNumber: row.radarNumber, id: row.radarId }
await this.getRadarList(radarObj)
for (const key in this.basicForm) { for (const key in this.basicForm) {
this.basicForm[key] = row[key] this.basicForm[key] = row[key]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!