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

修改站位计划维护sorties

parent c15fb86a
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
'form.sorties': { 'form.sorties': {
immediate: true, immediate: true,
handler(val) { 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, 'positionNumber', '')
this.$set(this.form, 'sortiesName', sorties && sorties.defName || '') this.$set(this.form, 'sortiesName', sorties && sorties.defName || '')
this.search() this.search()
...@@ -141,7 +141,8 @@ export default { ...@@ -141,7 +141,8 @@ export default {
this.sortiesData = res.items.content.map(row => { this.sortiesData = res.items.content.map(row => {
return { return {
value: `${row.sourceId}:${row.targetId}`, 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) 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