update DialogJustForm

This commit is contained in:
lb 2023-03-07 09:19:39 +08:00
parent b9434ab765
commit 8655d9d767

View File

@ -249,8 +249,9 @@ export default {
/** init **/ /** init **/
init(id, detailMode) { init(id, detailMode) {
// console.log("[DialogJustForm] init", this.dataForm, id, detailMode);
if (this.$refs.dataForm) { if (this.$refs.dataForm) {
console.log("[DialogJustForm] clearing form validation..."); // console.log("[DialogJustForm] clearing form validation...");
// dialog dataForm [0] // dialog dataForm [0]
this.$refs.dataForm.clearValidate(); this.$refs.dataForm.clearValidate();
} }
@ -275,12 +276,20 @@ export default {
url: file.fileUrl, url: file.fileUrl,
})); }));
} }
console.log("[DialogJustForm] init():", this.dataForm); // console.log("[DialogJustForm] init():", this.dataForm);
} }
this.loadingStatus = false; this.loadingStatus = false;
}).catch(err => {
this.loadingStatus = false;
this.$message({
message: `${err}`,
type: 'error',
duration: 1500
})
}); });
} else { } else {
// //
this.loadingStatus = false
} }
}); });
}, },