验证指定项

nextBtn(formName) {
      const {
        projectId,
        type,
        account,
        userName,
        contactWay,
        email,
        password,
        againPassword,
      } = this.ruleForm;
      if (
        projectId &&
        type &&
        account &&
        userName &&
        contactWay &&
        email &&
        password &&
        againPassword
      ) {
        // 执行校验成功的相关操作-跳到下一步
        this.showFlag = false;
        this.stepsNum = 1;
        console.log()
      } else {
        // 验证
        this.$refs[formName].validateField([
          "projectId",
          "type",
          "account",
          "userName",
          "contactWay",
          "email",
          "password",
          "againPassword",
          "avatarPath",
        ]);
      }
    },

 

posted @ 2022-05-19 14:28  abcByme  阅读(15)  评论(0编辑  收藏  举报