fig Bug:新建审批判断
This commit is contained in:
1 parent
ce5cb62367
commit
7a327daedd
4 files changed
+11
-16
No files matched your search
@@ -446,7 +446,6 @@
|
||||
this.$set(item, 'option', null)
|
||||
}
|
||||
this.$forceUpdate()
|
||||
console.log('changeExpress', item, express);
|
||||
},
|
||||
closeConditionGroupDialog(){
|
||||
this.$forceUpdate()
|
||||
|
||||
@@ -260,12 +260,11 @@ Vue.component("form-item-list-generator", {
|
||||
return this.formItemList;
|
||||
},
|
||||
|
||||
dataValidate(){
|
||||
console.log('formItemListGenerator-dataValidate', this.formItemList);
|
||||
async dataValidate(){
|
||||
// 检查单选多选是否还有选项
|
||||
this.formItemList.forEach(async element => {
|
||||
this.formItemList.forEach(element => {
|
||||
if(['single', 'multiple'].includes(element.type) && !(element.optionList && element.optionList.length)){
|
||||
await window.vtoast.fail("存在选择题没有选项!");
|
||||
window.vtoast.fail("存在选择题没有选项!");
|
||||
throw new Error("存在选择题没有选项!")
|
||||
}
|
||||
});
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
break;
|
||||
}
|
||||
},
|
||||
dataValidate(){
|
||||
this.$refs.formItemListGenerator.dataValidate()
|
||||
async dataValidate(){
|
||||
await this.$refs.formItemListGenerator.dataValidate()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -299,16 +299,13 @@ Vue.component("workflow-editor-drawer", {
|
||||
}, 300)
|
||||
},
|
||||
|
||||
prepareValidate(){
|
||||
const { id, workflowId, workflowInfo, workflowForm } = this.formObj;
|
||||
var submitAble = false
|
||||
|
||||
// 判断info的数据 ==>
|
||||
this.$refs.basicInfo.doUiAction('dataValidate')
|
||||
// 判断form的数据 ==> 判断单选多选是否有选项
|
||||
this.$refs.tplFormDesign.doUiAction('dataValidate')
|
||||
async prepareValidate(){
|
||||
// 判断info的数据
|
||||
await this.$refs.basicInfo.doUiAction('dataValidate')
|
||||
// 判断form的数据
|
||||
await this.$refs.tplFormDesign.doUiAction('dataValidate')
|
||||
// 判断流程图的数据
|
||||
this.$refs.processFlow.doUiAction('dataValidate')
|
||||
await this.$refs.processFlow.doUiAction('dataValidate')
|
||||
|
||||
},
|
||||
prepareFormSubmitData() {
|
||||
|
||||
Reference in new issue
Block a user