seimin пре 1 година
родитељ
комит
cd076bb5fd
2 измењених фајлова са 9 додато и 3 уклоњено
  1. 3 3
      src/views/IncidentNewList.vue
  2. 6 0
      src/views/order.vue

+ 3 - 3
src/views/IncidentNewList.vue

@@ -1088,15 +1088,15 @@ export default {
1088 1088
             this.$refs.scroll.forceUpdate();
1089 1089
           }
1090 1090
           if(this.searchState === undefined){
1091
-            this.tabTypes[0].num = res.data.resultCount;
1091
+            this.tabTypes[0].num = res.data.data.resultCount;
1092 1092
             this.getNum(1543);
1093 1093
             this.getNum(1544);
1094 1094
           }else if(this.searchState == 1543){
1095
-            this.tabTypes[1].num = res.data.resultCount;
1095
+            this.tabTypes[1].num = res.data.data.resultCount;
1096 1096
             this.getNum();
1097 1097
             this.getNum(1544);
1098 1098
           }else if(this.searchState == 1544){
1099
-            this.tabTypes[2].num = res.data.resultCount;
1099
+            this.tabTypes[2].num = res.data.data.resultCount;
1100 1100
             this.getNum();
1101 1101
             this.getNum(1543);
1102 1102
           }

+ 6 - 0
src/views/order.vue

@@ -286,6 +286,11 @@ export default {
286 286
         }
287 287
       }
288 288
       console.log(that.model);
289
+      const toast = this.$createToast({
290
+        txt: "Loading...",
291
+        mask: true
292
+      });
293
+      toast.show();
289 294
       that.$http
290 295
         .post(
291 296
           "service/bpm/bpm/completeTask/" +
@@ -295,6 +300,7 @@ export default {
295 300
           that.model
296 301
         )
297 302
         .then(function (res) {
303
+          toast.hide();
298 304
           console.log(res.data);
299 305
           if (res.data) {
300 306
             $("#fade").fadeIn();