seimin před 1 rokem
rodič
revize
bedcda945a
1 změnil soubory, kde provedl 14 přidání a 8 odebrání
  1. 14 8
      src/views/incidentList.vue

+ 14 - 8
src/views/incidentList.vue

@@ -184,7 +184,7 @@ export default {
184
               value: v.id,
184
               value: v.id,
185
             }));
185
             }));
186
             this.stateData = [...[{text: '全部', value: 0}], ...stateData];
186
             this.stateData = [...[{text: '全部', value: 0}], ...stateData];
187
-            this.getData(this.idx, this.sum);
187
+            this.getData();
188
         })
188
         })
189
     },
189
     },
190
     changeTab(tab){
190
     changeTab(tab){
@@ -217,14 +217,16 @@ export default {
217
       var that = this;
217
       var that = this;
218
       this.loadShow = true;
218
       this.loadShow = true;
219
       that.items = [];
219
       that.items = [];
220
+      this.idx = 0;
220
       this.$http
221
       this.$http
221
         .post("service/user/data/fetchDataList/incident", {
222
         .post("service/user/data/fetchDataList/incident", {
222
-          idx: 0,
223
-          sum: 10,
223
+          idx: this.idx,
224
+          sum: this.sum,
224
           incident: {
225
           incident: {
225
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
226
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
226
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
227
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
227
             statusId: that.stateValue || undefined,
228
             statusId: that.stateValue || undefined,
229
+            source: {value: "im"},
228
           }
230
           }
229
         })
231
         })
230
         .then((res) => {
232
         .then((res) => {
@@ -254,14 +256,16 @@ export default {
254
       setTimeout(() => {
256
       setTimeout(() => {
255
         var that = this;
257
         var that = this;
256
         // that.items=[];
258
         // that.items=[];
259
+        this.idx = 0;
257
         this.$http
260
         this.$http
258
           .post("service/user/data/fetchDataList/incident", {
261
           .post("service/user/data/fetchDataList/incident", {
259
-            idx: 0,
260
-            sum: 10,
262
+            idx: this.idx,
263
+            sum: this.sum,
261
             incident: {
264
             incident: {
262
               requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
265
               requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
263
               department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
266
               department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
264
               statusId: that.stateValue || undefined,
267
               statusId: that.stateValue || undefined,
268
+              source: {value: "im"},
265
             }
269
             }
266
           })
270
           })
267
           .then((res) => {
271
           .then((res) => {
@@ -277,16 +281,17 @@ export default {
277
           });
281
           });
278
       }, 1000);
282
       }, 1000);
279
     },
283
     },
280
-    getData(idx, sum) {
284
+    getData() {
281
       var that = this;
285
       var that = this;
282
       this.$http
286
       this.$http
283
         .post("service/user/data/fetchDataList/incident", {
287
         .post("service/user/data/fetchDataList/incident", {
284
-          idx: idx,
285
-          sum: sum,
288
+          idx: this.idx,
289
+          sum: this.sum,
286
           incident: {
290
           incident: {
287
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
291
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
288
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
292
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
289
             statusId: that.stateValue || undefined,
293
             statusId: that.stateValue || undefined,
294
+            source: {value: "im"},
290
           }
295
           }
291
         })
296
         })
292
         .then((res) => {
297
         .then((res) => {
@@ -313,6 +318,7 @@ export default {
313
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
318
             requester: this.avtiveTabId == -1 ? { id: this.loginUser.id } : undefined,
314
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
319
             department: this.avtiveTabId == -2 ? { id: this.loginUser.dept.id } : undefined,
315
             statusId: that.stateValue || undefined,
320
             statusId: that.stateValue || undefined,
321
+            source: {value: "im"},
316
           }
322
           }
317
         })
323
         })
318
         .then((res) => {
324
         .then((res) => {