seimin 1 年之前
父节点
当前提交
bedcda945a
共有 1 个文件被更改,包括 14 次插入8 次删除
  1. 14 8
      src/views/incidentList.vue

+ 14 - 8
src/views/incidentList.vue

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