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 941
     getParamsData() {
942
-      var that = this;
943
-      that.$http
942
+      this.loadShow = true;
943
+      this.$http
944 944
         .get(
945 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 953
         .then(res => {
954
+          this.loadShow = false;
954 955
           console.log(res.data, 666);
955
-          that.modelData = res.data.model;
956
+          this.modelData = res.data.model;
956 957
           if (
957
-            that.modelData.incident.category.hasSimple == 1 &&
958
+            this.modelData.incident.category.hasSimple == 1 &&
958 959
             this.order == 1
959 960
           ) {
960 961
             this.isShowDes = false;
961 962
           } else {
962 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 1992
     this.getSynerUser();
1989 1993
     // 获取页面数据
1990
-    this.getMessage();
1994
+    // this.getMessage();
1991 1995
     // 事件分类
1992
-    this.getIncidentcategory();
1996
+    // this.getIncidentcategory();
1993 1997
   },
1994 1998
   mounted() {
1995 1999
     console.log(this.modelData, this.model, 999);