Commit fc83cdf4 authored by jingnan's avatar jingnan 👀

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents 132b2c71 3d2d285d
...@@ -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