Преглед на файлове

合规性分析项目信息数据

maxiaoxiao преди 1 година
родител
ревизия
b04442357e
променени са 1 файла, в които са добавени 2 реда и са изтрити 26 реда
  1. 2 26
      src/views/complianceAnalysis/components/hgxsc.vue

+ 2 - 26
src/views/complianceAnalysis/components/hgxsc.vue

@@ -216,6 +216,7 @@ export default {
       this.ruleForm.xzmj = _temp.xzmj || hgxfx.xzmj;
       this.$refs.ruleForm.validate((valid) => {
         if (valid) {
+          this.getCheckedNodes();
           if (this.ruleForm.scxs.length == 0) {
             Message.warning("至少选择一个项目信息");
           }
@@ -246,36 +247,11 @@ export default {
           Message.warning(res);
         }
       });
-
-      this.is_form()
-        .then((res) => {})
-        .catch((res) => {});
     },
-    is_form() {
+    getCheckedNodes() {
       this.ruleForm.scxs = this.$refs.tree.getCheckedNodes(true).map((item) => {
         return item.id;
       });
-      return new Promise((resolve, reject) => {
-        if (this.ruleForm.xzmj == 0) {
-          reject("请填写范围的数据!");
-        }
-        if (this.ruleForm.xmmc == "") {
-          reject("请填写项目名称");
-        }
-        if (this.ruleForm.jsdw == "") {
-          reject("请填写建设单位");
-        }
-        if (this.ruleForm.xmlx == "") {
-          reject("请填写项目类型");
-        }
-        // if (this.ruleForm.ydxz_bsm ==  ("" || null)) {
-        //    reject("请选择用地性质");
-        // }
-        if (this.ruleForm.scxs.length == 0) {
-          reject("至少选择一个项目信息");
-        }
-        resolve(true);
-      });
     },
   },
   watch: {},