Pārlūkot izejas kodu

智能选址,分析加载中修改

maxiaoxiao 10 mēneši atpakaļ
vecāks
revīzija
889ce9216a
1 mainītis faili ar 13 papildinājumiem un 9 dzēšanām
  1. 13 9
      src/views/siteselection/components/fzxz.vue

+ 13 - 9
src/views/siteselection/components/fzxz.vue

@@ -180,7 +180,11 @@ export default {
         // xzmj: [{ required: true, message: "请绘制选址范围" }],
         xmmc: [
           { required: true, message: "请输入项目名称", trigger: "blur" },
-          { min: 1,message: "请输入至少为一个字符的项目名称", trigger: "blur" },
+          {
+            min: 1,
+            message: "请输入至少为一个字符的项目名称",
+            trigger: "blur",
+          },
         ],
         // jsdw: [{ required: true, message: "请输入建设单位", trigger: "blur" }],
         // xmlx: [{ required: true, message: "请输入项目类型", trigger: "blur" }],
@@ -353,14 +357,14 @@ export default {
             useLandType: this.ruleForm.useLandType, //是否与控规用地性质一致
             multipleDistance: this.ruleForm.multipleDistance, //多地块最大距离
           };
+          const loading = this.$loading({
+            lock: true,
+            text: "分析中",
+            spinner: "el-icon-loading",
+            background: "rgba(0, 0, 0, 0.7)",
+          });
           AddFzxz(obj).then((res) => {
-            const loading = this.$loading({
-              lock: true,
-              text: "分析中",
-              spinner: "el-icon-loading",
-              background: "rgba(0, 0, 0, 0.7)",
-            });
-            setTimeout(() => {
+            // setTimeout(() => {
               loading.close();
               this.activeTabs = "lsju";
               this.$emit("updateParent", "activeTabs", "lsju");
@@ -369,7 +373,7 @@ export default {
                 type: res.success ? "success" : "warning",
               });
               this.reset();
-            }, 2000);
+            // }, 2000);
             // }
           });
         } else {