seimin 1 年之前
父节点
当前提交
7f466de315
共有 7 个文件被更改,包括 63 次插入56 次删除
  1. 9 8
      src/views/againAssign.vue
  2. 9 8
      src/views/closed.vue
  3. 9 8
      src/views/grabSheet.vue
  4. 9 8
      src/views/order.vue
  5. 9 8
      src/views/processing.vue
  6. 9 8
      src/views/solved.vue
  7. 9 8
      src/views/waitConfirm.vue

+ 9 - 8
src/views/againAssign.vue

@@ -224,14 +224,15 @@ export default {
224 224
             }
225 225
             v.startTime = new Date(v.startTime).getTime();
226 226
           });
227
-          var kaishi = that.progressInfo.shift();
228
-          var jiedan = that.progressInfo.shift();
229
-          that.progressInfo.sort(function(o, c) {
230
-            return c.startTime - o.startTime;
231
-          });
232
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
233
-          that.progressInfo.push(jiedan);
234
-          that.progressInfo.push(kaishi);
227
+          that.progressInfo.reverse();
228
+          // var kaishi = that.progressInfo.shift();
229
+          // var jiedan = that.progressInfo.shift();
230
+          // that.progressInfo.sort(function(o, c) {
231
+          //   return c.startTime - o.startTime;
232
+          // });
233
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
234
+          // that.progressInfo.push(jiedan);
235
+          // that.progressInfo.push(kaishi);
235 236
           console.log(that.progressInfo);
236 237
           //维修记录end
237 238
         });

+ 9 - 8
src/views/closed.vue

@@ -276,14 +276,15 @@ export default {
276 276
             }
277 277
             v.startTime = new Date(v.startTime).getTime();
278 278
           });
279
-          var kaishi = that.progressInfo.shift();
280
-          var jiedan = that.progressInfo.shift();
281
-          that.progressInfo.sort(function(o, c) {
282
-            return c.startTime - o.startTime;
283
-          });
284
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
285
-          that.progressInfo.push(jiedan);
286
-          that.progressInfo.push(kaishi);
279
+          that.progressInfo.reverse();
280
+          // var kaishi = that.progressInfo.shift();
281
+          // var jiedan = that.progressInfo.shift();
282
+          // that.progressInfo.sort(function(o, c) {
283
+          //   return c.startTime - o.startTime;
284
+          // });
285
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
286
+          // that.progressInfo.push(jiedan);
287
+          // that.progressInfo.push(kaishi);
287 288
           console.log(that.progressInfo);
288 289
           //维修记录end
289 290
         });

+ 9 - 8
src/views/grabSheet.vue

@@ -185,14 +185,15 @@ export default {
185 185
             }
186 186
             v.startTime = new Date(v.startTime).getTime();
187 187
           });
188
-          var kaishi = that.progressInfo.shift();
189
-          var jiedan = that.progressInfo.shift();
190
-          that.progressInfo.sort(function(o, c) {
191
-            return c.startTime - o.startTime;
192
-          });
193
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
194
-          that.progressInfo.push(jiedan);
195
-          that.progressInfo.push(kaishi);
188
+          that.progressInfo.reverse();
189
+          // var kaishi = that.progressInfo.shift();
190
+          // var jiedan = that.progressInfo.shift();
191
+          // that.progressInfo.sort(function(o, c) {
192
+          //   return c.startTime - o.startTime;
193
+          // });
194
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
195
+          // that.progressInfo.push(jiedan);
196
+          // that.progressInfo.push(kaishi);
196 197
           console.log(that.progressInfo);
197 198
           //维修记录end
198 199
         });

+ 9 - 8
src/views/order.vue

@@ -230,14 +230,15 @@ export default {
230 230
             }
231 231
             v.startTime = new Date(v.startTime).getTime();
232 232
           });
233
-          var kaishi = that.progressInfo.shift();
234
-          var jiedan = that.progressInfo.shift();
235
-          that.progressInfo.sort(function(o, c) {
236
-            return c.startTime - o.startTime;
237
-          });
238
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
239
-          that.progressInfo.push(jiedan);
240
-          that.progressInfo.push(kaishi);
233
+          that.progressInfo.reverse();
234
+          // var kaishi = that.progressInfo.shift();
235
+          // var jiedan = that.progressInfo.shift();
236
+          // that.progressInfo.sort(function(o, c) {
237
+          //   return c.startTime - o.startTime;
238
+          // });
239
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
240
+          // that.progressInfo.push(jiedan);
241
+          // that.progressInfo.push(kaishi);
241 242
           console.log(that.progressInfo);
242 243
           //维修记录end
243 244
         });

+ 9 - 8
src/views/processing.vue

@@ -1110,14 +1110,15 @@ export default {
1110 1110
             }
1111 1111
             v.startTime = new Date(v.startTime).getTime();
1112 1112
           });
1113
-          var kaishi = that.progressInfo.shift();
1114
-          var jiedan = that.progressInfo.shift();
1115
-          that.progressInfo.sort(function(o, c) {
1116
-            return c.startTime - o.startTime;
1117
-          });
1118
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
1119
-          that.progressInfo.push(jiedan);
1120
-          that.progressInfo.push(kaishi);
1113
+          that.progressInfo.reverse();
1114
+          // var kaishi = that.progressInfo.shift();
1115
+          // var jiedan = that.progressInfo.shift();
1116
+          // that.progressInfo.sort(function(o, c) {
1117
+          //   return c.startTime - o.startTime;
1118
+          // });
1119
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
1120
+          // that.progressInfo.push(jiedan);
1121
+          // that.progressInfo.push(kaishi);
1121 1122
           console.log(that.progressInfo);
1122 1123
           //维修记录end
1123 1124
         });

+ 9 - 8
src/views/solved.vue

@@ -309,14 +309,15 @@ export default {
309 309
             }
310 310
             v.startTime = new Date(v.startTime).getTime();
311 311
           });
312
-          var kaishi = that.progressInfo.shift();
313
-          var jiedan = that.progressInfo.shift();
314
-          that.progressInfo.sort(function(o, c) {
315
-            return c.startTime - o.startTime;
316
-          });
317
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
318
-          that.progressInfo.push(jiedan);
319
-          that.progressInfo.push(kaishi);
312
+          that.progressInfo.reverse();
313
+          // var kaishi = that.progressInfo.shift();
314
+          // var jiedan = that.progressInfo.shift();
315
+          // that.progressInfo.sort(function(o, c) {
316
+          //   return c.startTime - o.startTime;
317
+          // });
318
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
319
+          // that.progressInfo.push(jiedan);
320
+          // that.progressInfo.push(kaishi);
320 321
           console.log(that.progressInfo);
321 322
           //维修记录end
322 323
         });

+ 9 - 8
src/views/waitConfirm.vue

@@ -316,14 +316,15 @@ export default {
316 316
             }
317 317
             v.startTime = new Date(v.startTime).getTime();
318 318
           });
319
-          var kaishi = that.progressInfo.shift();
320
-          var jiedan = that.progressInfo.shift();
321
-          that.progressInfo.sort(function(o, c) {
322
-            return c.startTime - o.startTime;
323
-          });
324
-          that.progressInfo.length && (that.progressInfo[0].endTime = "");
325
-          that.progressInfo.push(jiedan);
326
-          that.progressInfo.push(kaishi);
319
+          that.progressInfo.reverse();
320
+          // var kaishi = that.progressInfo.shift();
321
+          // var jiedan = that.progressInfo.shift();
322
+          // that.progressInfo.sort(function(o, c) {
323
+          //   return c.startTime - o.startTime;
324
+          // });
325
+          // that.progressInfo.length && (that.progressInfo[0].endTime = "");
326
+          // that.progressInfo.push(jiedan);
327
+          // that.progressInfo.push(kaishi);
327 328
           console.log(that.progressInfo);
328 329
           //维修记录end
329 330
         });