[update 标准解读流程] 完善
This commit is contained in:
+8
@@ -303,8 +303,15 @@ export default {
|
||||
this.model = Object.assign({}, record)
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
// 是否与上一版相同(多个值就不回显)
|
||||
if (!this.model.isSameAsPrevVersion || this.model.isSameAsPrevVersion.split(',').length > 1) {
|
||||
delete this.model.isSameAsPrevVersion
|
||||
}
|
||||
// 专业领域
|
||||
if (typeof this.model.domainArea === 'string' && this.model.domainArea.length) {
|
||||
this.model.domainArea = this.model.domainArea.split(',').map(item => ({ value: item }))
|
||||
} else {
|
||||
this.model.domainArea = []
|
||||
}
|
||||
this.form.setFieldsValue(this.model)
|
||||
})
|
||||
@@ -319,6 +326,7 @@ export default {
|
||||
if (Array.isArray(formData.domainArea)) {
|
||||
formData.domainArea = formData.domainArea.map(item => item.value).join(',')
|
||||
}
|
||||
console.log(formData)
|
||||
this.$emit('ok', formData)
|
||||
this.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user