Commit 3d2d285d authored by 旭艳's avatar 旭艳

修改站位计划维护sorties

parent c15fb86a
......@@ -103,7 +103,7 @@ export default {
'form.sorties': {
immediate: true,
handler(val) {
const sorties = this.sortiesData.find(r => r.id === val)
const sorties = this.sortiesData.find(r => r.value === val)
this.$set(this.form, 'positionNumber', '')
this.$set(this.form, 'sortiesName', sorties && sorties.defName || '')
this.search()
......@@ -141,7 +141,8 @@ export default {
this.sortiesData = res.items.content.map(row => {
return {
value: `${row.sourceId}:${row.targetId}`,
label: this.getSoritesLabel(row)
label: this.getSoritesLabel(row),
defName: row.source.defName
}
})
this.$set(this.form, 'sorties', this.sortiesData[0].value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment