fig Bug:新建审批判断

This commit is contained in:
ChenXinXin committed 2024-05-07 14:13:45 +08:00
1 parent ce5cb62367
commit 7a327daedd
4 files changed
+11 -16

No files matched your search

-1
View File
@@ -446,7 +446,6 @@
this.$set(item, 'option', null) this.$set(item, 'option', null)
} }
this.$forceUpdate() this.$forceUpdate()
console.log('changeExpress', item, express);
}, },
closeConditionGroupDialog(){ closeConditionGroupDialog(){
this.$forceUpdate() this.$forceUpdate()
@@ -260,12 +260,11 @@ Vue.component("form-item-list-generator", {
return this.formItemList; return this.formItemList;
}, },
dataValidate(){ async dataValidate(){
console.log('formItemListGenerator-dataValidate', this.formItemList);
// 检查单选多选是否还有选项 // 检查单选多选是否还有选项
this.formItemList.forEach(async element => { this.formItemList.forEach(element => {
if(['single', 'multiple'].includes(element.type) && !(element.optionList && element.optionList.length)){ if(['single', 'multiple'].includes(element.type) && !(element.optionList && element.optionList.length)){
await window.vtoast.fail("存在选择题没有选项!"); window.vtoast.fail("存在选择题没有选项!");
throw new Error("存在选择题没有选项!") throw new Error("存在选择题没有选项!")
} }
}); });
+2 -2
View File
@@ -54,8 +54,8 @@
break; break;
} }
}, },
dataValidate(){ async dataValidate(){
this.$refs.formItemListGenerator.dataValidate() await this.$refs.formItemListGenerator.dataValidate()
} }
} }
}) })
+6 -9
View File
@@ -299,16 +299,13 @@ Vue.component("workflow-editor-drawer", {
}, 300) }, 300)
}, },
prepareValidate(){ async prepareValidate(){
const { id, workflowId, workflowInfo, workflowForm } = this.formObj; // 判断info的数据
var submitAble = false await this.$refs.basicInfo.doUiAction('dataValidate')
// 判断form的数据
// 判断info的数据 ==> await this.$refs.tplFormDesign.doUiAction('dataValidate')
this.$refs.basicInfo.doUiAction('dataValidate')
// 判断form的数据 ==> 判断单选多选是否有选项
this.$refs.tplFormDesign.doUiAction('dataValidate')
// 判断流程图的数据 // 判断流程图的数据
this.$refs.processFlow.doUiAction('dataValidate') await this.$refs.processFlow.doUiAction('dataValidate')
}, },
prepareFormSubmitData() { prepareFormSubmitData() {