[update] 修改bug78217
This commit is contained in:
@@ -294,7 +294,8 @@ export default {
|
||||
excludeStandardNumbers: '', // 不包含的标准号
|
||||
standardGradeClassification: [], // 企标级别映射
|
||||
innerDisabledField: [], // 内部不可编辑字段
|
||||
departSelectRange: [] // 选择部门的选择范围,传了就只能从这些里面选,不传就都能选
|
||||
departSelectRange: [], // 选择部门的选择范围,传了就只能从这些里面选,不传就都能选
|
||||
isEditSetData: false // 正在编辑回显数据
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -304,7 +305,7 @@ export default {
|
||||
},
|
||||
// 标准等级分类改变后授权部门需要自动带出
|
||||
'formInline.grade_classification' (val) {
|
||||
if (val && this.flag === '3') {
|
||||
if (val && this.flag === '3' && !this.isEditSetData) {
|
||||
if (val === StandardGradeClassify.ZERO_LEVEL.value) {
|
||||
// 选的是0级,授权部门带出不可编辑
|
||||
this.formInline.auth_dept = this.standardGradeClassification.find(item => item.level + '' === '0').deptIds
|
||||
@@ -382,6 +383,8 @@ export default {
|
||||
// type标识是新增表单还是详情页
|
||||
this.getDocumentInfoFunc({ id: item.id, type: this.type }).then((res) => {
|
||||
if (res.success) {
|
||||
// 设置正在编辑回显值
|
||||
this.isEditSetData = true
|
||||
// 处理树结构多选回显
|
||||
const formList = Object.values(this.dataList).reduce((acc, cur) => acc.concat(cur), [])
|
||||
const treeMultipleField = formList.filter(tt => tt.fieldShowType === FieldType.TREE.value)
|
||||
@@ -413,6 +416,9 @@ export default {
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
}).finally(() => {
|
||||
// 设置编辑回显值完成
|
||||
this.isEditSetData = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user