Browse Source

拆分接口

seimin 1 year ago
parent
commit
9e580de66b
1 changed files with 21 additions and 2 deletions
  1. 21 2
      src/views/my.vue

+ 21 - 2
src/views/my.vue

@@ -137,7 +137,14 @@ export default {
137 137
       loginUser: JSON.parse(localStorage.getItem("loginUser")),
138 138
       valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
139 139
       ifWorking: localStorage.getItem("ifWorking"), //是否开通上下班
140
-      incidentCount: "",
140
+      incidentCount: {
141
+        todoCount: 0,
142
+        doingCount: 0,
143
+        irelateCount: 0,
144
+        idoCount: 0,
145
+        inspectionTodo: 0,
146
+        inspectionDone: 0,
147
+      },
141 148
       promptingConent: "",
142 149
       promptingStatus: "",
143 150
       groups: "", //工作组
@@ -320,7 +327,19 @@ export default {
320 327
           candidateGroups: that.candidateGroups,
321 328
         })
322 329
         .then(function (res) {
323
-          that.incidentCount = res.data;
330
+          that.incidentCount.inspectionTodo = res.data.inspectionTodo;
331
+          that.incidentCount.inspectionDone = res.data.inspectionDone;
332
+        });
333
+    this.$http
334
+        .post("service/bpm/data/getIncidentCount4", {
335
+          assignee: that.loginUser.id,
336
+          candidateGroups: that.candidateGroups,
337
+        })
338
+        .then(function (res) {
339
+          that.incidentCount.todoCount = res.data.todoCount;
340
+          that.incidentCount.doingCount = res.data.doingCount;
341
+          that.incidentCount.irelateCount = res.data.irelateCount;
342
+          that.incidentCount.idoCount = res.data.idoCount;
324 343
         });
325 344
     },
326 345
     //获取展示可以上下班人员列表