[update 标准解读流程] 完善

This commit is contained in:
danshihao
2024-07-16 13:52:54 +08:00
parent 14e287c749
commit 2cd3640aa7
8 changed files with 76 additions and 17 deletions
@@ -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()
}