Commit e9fa382b8345efe9e0b71f9ac9a7e0fb764964f4
1 parent
ab44ac83
v1.9 优化保养检查项修改bug
Showing
1 changed file
with
5 additions
and
11 deletions
src/components/inspection/editMaintainanceItem.vue
| @@ -88,18 +88,12 @@ export default { | @@ -88,18 +88,12 @@ export default { | ||
| 88 | }, | 88 | }, |
| 89 | methods: { | 89 | methods: { |
| 90 | open(data) { | 90 | open(data) { |
| 91 | - this.resetForm() | 91 | + //this.resetForm() |
| 92 | if (data) { | 92 | if (data) { |
| 93 | - this.form = { | ||
| 94 | - ...this.form, | ||
| 95 | - titleId: data.titleId, | ||
| 96 | - itemId: data.itemId, | ||
| 97 | - titleType: data.titleType, | ||
| 98 | - itemTitle: data.itemTitle, | ||
| 99 | - seq: data.seq, | ||
| 100 | - titleValues: data.titleValues || [], | ||
| 101 | - communityId: data.communityId | ||
| 102 | - } | 93 | + this.form = { ...data } |
| 94 | + this.form.titleValues = data.titleValues || [] | ||
| 95 | + console.log(this.form, data) | ||
| 96 | + | ||
| 103 | } | 97 | } |
| 104 | this.visible = true | 98 | this.visible = true |
| 105 | }, | 99 | }, |