update DialogJustForm
This commit is contained in:
		@@ -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
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user