Sfoglia il codice sorgente

fix: 抢单后没刷新页面

seimin 1 anno fa
parent
commit
d7bb4384be
2 ha cambiato i file con 10 aggiunte e 4 eliminazioni
  1. 5 2
      src/views/IncidentNewList.vue
  2. 5 2
      src/views/incidentList.vue

+ 5 - 2
src/views/IncidentNewList.vue

@@ -420,7 +420,7 @@ export default {
420 420
             "service/bpm/bpm/claimAndCompletedTask/" + incident.taskId,
421 421
             { receive_code: "handler", userId: that.loginUser.id }
422 422
           )
423
-          .then(function (res) {
423
+          .then((res) => {
424 424
             console.log(res.data);
425 425
             if (res.data.status == 200) {
426 426
               that
@@ -430,7 +430,10 @@ export default {
430 430
                   content: "点击返回首页",
431 431
                   icon: "cubeic-right",
432 432
                   onConfirm: (e, promptValue) => {
433
-                    that.$router.push({ path: "/main" });
433
+                    this.loadShow = true;
434
+                    this.items = [];
435
+                    this.idx = 0;
436
+                    this.getData();
434 437
                   },
435 438
                 })
436 439
                 .show();

+ 5 - 2
src/views/incidentList.vue

@@ -354,7 +354,7 @@ export default {
354 354
             "service/bpm/bpm/claimAndCompletedTask/" + incident.taskId,
355 355
             { receive_code: "handler", userId: that.loginUser.id }
356 356
           )
357
-          .then(function (res) {
357
+          .then((res) => {
358 358
             console.log(res.data);
359 359
             if (res.data.status == 200) {
360 360
               that
@@ -364,7 +364,10 @@ export default {
364 364
                   content: "点击返回首页",
365 365
                   icon: "cubeic-right",
366 366
                   onConfirm: (e, promptValue) => {
367
-                    that.$router.push({ path: "/main" });
367
+                    this.loadShow = true;
368
+                    this.items = [];
369
+                    this.idx = 0;
370
+                    this.getData();
368 371
                   },
369 372
                 })
370 373
                 .show();