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

@@ -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("存在选择题没有选项!")
}
});
+2 -2
View File
@@ -54,8 +54,8 @@
break;
}
},
dataValidate(){
this.$refs.formItemListGenerator.dataValidate()
async dataValidate(){
await this.$refs.formItemListGenerator.dataValidate()
}
}
})