This commit is contained in:
bb_pan 2025-05-27 09:19:22 +08:00
parent 9d283094ee
commit 0d02adec03
1 changed files with 8 additions and 7 deletions

View File

@ -1365,16 +1365,17 @@ export default {
parentId, parentId,
maTypeProperties:this.maTypeProperties, maTypeProperties:this.maTypeProperties,
}; };
this.$refs["addFormParamsRef"].validate( async(valid) => { this.$refs["addFormParamsRef"].validate( async(valid) => {
if (valid) { if (valid) {
await this.$refs["maTypeRef"].forEach((formRef)=>{ if (this.$refs["maTypeRef"] && this.$refs["maTypeRef"].length > 0) {
formRef.validate((validTemp)=>{ await this.$refs["maTypeRef"].forEach((formRef)=>{
if(!validTemp){ formRef.validate((validTemp)=>{
this.allPass = false; if(!validTemp){
} this.allPass = false;
}
})
}) })
}) }
if(this.allPass==true){ if(this.allPass==true){
if (this.addTitle === "新增") { if (this.addTitle === "新增") {
const res = await addMaType(addParams); const res = await addMaType(addParams);