From 8655d9d767394071dd267c20f9f190e1f436bde3 Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 7 Mar 2023 09:19:39 +0800 Subject: [PATCH] update DialogJustForm --- src/components/DialogJustForm.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/DialogJustForm.vue b/src/components/DialogJustForm.vue index 54406bd..4aa30a1 100644 --- a/src/components/DialogJustForm.vue +++ b/src/components/DialogJustForm.vue @@ -249,8 +249,9 @@ export default { /** init **/ init(id, detailMode) { + // console.log("[DialogJustForm] init", this.dataForm, id, detailMode); if (this.$refs.dataForm) { - console.log("[DialogJustForm] clearing form validation..."); + // console.log("[DialogJustForm] clearing form validation..."); // 当不是首次渲染dialog的时候,一开始就清空验证信息,本组件的循环里只有一个 dataForm 所以只用取 [0] 即可 this.$refs.dataForm.clearValidate(); } @@ -275,12 +276,20 @@ export default { url: file.fileUrl, })); } - console.log("[DialogJustForm] init():", this.dataForm); + // console.log("[DialogJustForm] init():", this.dataForm); } this.loadingStatus = false; + }).catch(err => { + this.loadingStatus = false; + this.$message({ + message: `${err}`, + type: 'error', + duration: 1500 + }) }); } else { // 如果不是编辑 + this.loadingStatus = false } }); },