This commit is contained in:
刘仕伟
2022-06-28 15:08:20 +08:00
3 changed files with 6 additions and 17 deletions

View File

@@ -421,7 +421,7 @@ export default {
this.formDataList.map((item) => { this.formDataList.map((item) => {
if (item.length) { if (item.length) {
item.map((items) => { item.map((items) => {
if (items.type == 'checkbox' && this.formData[items.fieldDbName].length) { //多选 if (items.type == 'checkbox') { //多选
this.formData[items.fieldDbName] = this.formData[items.fieldDbName]?.toString() this.formData[items.fieldDbName] = this.formData[items.fieldDbName]?.toString()
} }
if (items.type == 'upload') { if (items.type == 'upload') {

View File

@@ -112,14 +112,7 @@ export default {
isSelectImg: false, isSelectImg: false,
isSelectUnit: false, isSelectUnit: false,
isSelectPerson: false, isSelectPerson: false,
nodeObj: { nodeObj: {},
candidateApproverType: '1',
candidateList: [],
nodeIndex: '',
nodeName: '',
nodeType: '',
scopeCandidates: ''
},
indexType: '', indexType: '',
titleType: '', titleType: '',
bomIndex: '', bomIndex: '',
@@ -173,9 +166,7 @@ export default {
this.nodeObj = JSON.parse(JSON.stringify(item)); this.nodeObj = JSON.parse(JSON.stringify(item));
} else { } else {
this.titleType = '添加审批步骤'; this.titleType = '添加审批步骤';
if (this.form.processNodeList.length > 0) { this.init();
this.init();
}
} }
}, },
// 确定添加审批步骤 // 确定添加审批步骤
@@ -200,7 +191,7 @@ export default {
nodeIndex: '', nodeIndex: '',
nodeName: '', nodeName: '',
nodeType: '', nodeType: '',
scopeCandidates: '1' scopeCandidates: '1',
}; };
this.$refs['addForm'].resetFields(); this.$refs['addForm'].resetFields();
}, },

View File

@@ -117,7 +117,7 @@ export default {
isSelectImg: false, isSelectImg: false,
isSelectUnit: false, isSelectUnit: false,
isSelectPerson: false, isSelectPerson: false,
nodeObj: {areaFilter: [], annexEnable: null, pictureEnable: null}, nodeObj: {},
indexType: '', indexType: '',
titleType: '', titleType: '',
bomIndex: '', bomIndex: '',
@@ -173,9 +173,7 @@ export default {
this.nodeObj = this.$copy(item) this.nodeObj = this.$copy(item)
} else { } else {
this.titleType = '添加审批步骤'; this.titleType = '添加审批步骤';
if (this.form.processNodeList.length > 0) { this.init();
this.init();
}
} }
}, },
// 确定添加审批步骤 // 确定添加审批步骤