seimin 2 年之前
父節點
當前提交
c87daad131
共有 1 個文件被更改,包括 15 次插入11 次删除
  1. 15 11
      src/views/processing.vue

+ 15 - 11
src/views/processing.vue

@@ -939,30 +939,34 @@ export default {
939
     },
939
     },
940
     //   获取事件数据
940
     //   获取事件数据
941
     getParamsData() {
941
     getParamsData() {
942
-      var that = this;
943
-      that.$http
942
+      this.loadShow = true;
943
+      this.$http
944
         .get(
944
         .get(
945
           "/service/form/renderForm/handlerform/" +
945
           "/service/form/renderForm/handlerform/" +
946
-            that.processInstanceId +
946
+            this.processInstanceId +
947
             "/" +
947
             "/" +
948
-            that.loginUser.id +
948
+            this.loginUser.id +
949
             "/" +
949
             "/" +
950
-            that.id,
950
+            this.id,
951
           {}
951
           {}
952
         )
952
         )
953
         .then(res => {
953
         .then(res => {
954
+          this.loadShow = false;
954
           console.log(res.data, 666);
955
           console.log(res.data, 666);
955
-          that.modelData = res.data.model;
956
+          this.modelData = res.data.model;
956
           if (
957
           if (
957
-            that.modelData.incident.category.hasSimple == 1 &&
958
+            this.modelData.incident.category.hasSimple == 1 &&
958
             this.order == 1
959
             this.order == 1
959
           ) {
960
           ) {
960
             this.isShowDes = false;
961
             this.isShowDes = false;
961
           } else {
962
           } else {
962
             this.isShowDes = true;
963
             this.isShowDes = true;
963
           }
964
           }
964
-          //seimin
965
-          localStorage.setItem("modelData", JSON.stringify(that.modelData));
965
+          localStorage.setItem("modelData", JSON.stringify(this.modelData));
966
+          // 获取页面数据
967
+          this.getMessage();
968
+          // 事件分类
969
+          this.getIncidentcategory();
966
         });
970
         });
967
     },
971
     },
968
     //展示图片
972
     //展示图片
@@ -1987,9 +1991,9 @@ export default {
1987
     // 协同对象
1991
     // 协同对象
1988
     this.getSynerUser();
1992
     this.getSynerUser();
1989
     // 获取页面数据
1993
     // 获取页面数据
1990
-    this.getMessage();
1994
+    // this.getMessage();
1991
     // 事件分类
1995
     // 事件分类
1992
-    this.getIncidentcategory();
1996
+    // this.getIncidentcategory();
1993
   },
1997
   },
1994
   mounted() {
1998
   mounted() {
1995
     console.log(this.modelData, this.model, 999);
1999
     console.log(this.modelData, this.model, 999);