Browse Source

处理日志界面修改

seimin 3 years ago
parent
commit
8a2f210d25
7 changed files with 276 additions and 73 deletions
  1. 49 7
      src/views/againAssign.vue
  2. 43 13
      src/views/closed.vue
  3. 49 7
      src/views/grabSheet.vue
  4. 44 14
      src/views/order.vue
  5. 44 15
      src/views/processing.vue
  6. 3 3
      src/views/prompting.vue
  7. 44 14
      src/views/solved.vue

+ 49 - 7
src/views/againAssign.vue

@@ -114,6 +114,18 @@
114 114
               <span class="fl">逾期解决时间</span>
115 115
               <span class="fr">{{ model.incident.overdueTime }}</span>
116 116
             </p>
117
+            <p>
118
+                <span class="fl">区域</span>
119
+                <span class="fr">{{
120
+                  model.incident.place ? model.incident.place.area.area : "--"
121
+                }}</span>
122
+              </p>
123
+              <p>
124
+                <span class="fl">地点</span>
125
+                <span class="fr">{{
126
+                  model.incident.place ? model.incident.place.place : "--"
127
+                }}</span>
128
+              </p>
117 129
           </div>
118 130
           <p class="info_hide">
119 131
             <span class="fl hide" @click="hides()" v-if="!item_hides"
@@ -163,11 +175,16 @@
163 175
                   <i
164 176
                     :class="{
165 177
                       iconfont: true,
166
-                      'icon-icon_weizuo': item.endTime != '',
167
-                      'icon-icon_zhengzaijinx': item.endTime == ''
178
+                      'dsit-icon_weizuo': item.endTime != '',
179
+                      'dsit-icon_zhengzaijinx': item.endTime == ''
168 180
                     }"
169 181
                   ></i>
170
-                  <span class="text1">{{ item.startTime }}</span>
182
+                  <span class="text1">
183
+                      {{item.startTime | timeFormat("MM-dd HH:mm:ss")}}
184
+                      <template v-if="item.userName">
185
+                        ,{{item.userName}}
186
+                      </template>
187
+                      </span>
171 188
                 </div>
172 189
                 <div :class="{ cont: true, blue: item.endTime != '' }">
173 190
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -274,6 +291,7 @@ export default {
274 291
         .then(function(res) {
275 292
           console.log(res.data);
276 293
           that.model = res.data.model;
294
+          that.getProgressInfo();
277 295
         });
278 296
     },
279 297
     // 获取图片
@@ -302,7 +320,31 @@ export default {
302 320
         .then(function(res) {
303 321
           console.log(res.data);
304 322
           that.progressInfo = res.data.data;
305
-          that.progressInfo.reverse();
323
+          //处理日志startcaca
324
+          if(that.model.incident.handlerLogs){
325
+            //添加日志
326
+            that.model.incident.handlerLogs.forEach(v=>{
327
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
328
+            })
329
+
330
+          }
331
+          //处理数据
332
+          that.progressInfo.forEach((v)=>{
333
+            if(!v.endTime){
334
+              v.endTime = 1;
335
+            }
336
+            v.startTime = new Date(v.startTime).getTime();
337
+          })
338
+          var kaishi = that.progressInfo.shift();
339
+          var jiedan = that.progressInfo.shift();
340
+          that.progressInfo.sort(function(o,c){
341
+            return c.startTime - o.startTime;
342
+          });
343
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');
344
+          that.progressInfo.push(jiedan);
345
+          that.progressInfo.push(kaishi);
346
+          console.log(that.progressInfo)
347
+        //处理日志end
306 348
         });
307 349
     },
308 350
     //隐藏显示详情
@@ -434,7 +476,6 @@ export default {
434 476
     this.processInstanceId = this.$route.params.data.processInstanceId;
435 477
     this.id = this.$route.params.data.id;
436 478
     this.getParamsData();
437
-    this.getProgressInfo();
438 479
     this.getImgs();
439 480
     this.getHandlerUser();
440 481
     this.getCandidateGroups();
@@ -619,10 +660,10 @@ i.iconfont.blue {
619 660
               .time {
620 661
                 i {
621 662
                   margin-left: -0.15rem;
622
-                  &.icon-icon_weizuo {
663
+                  &.dsit-icon_weizuo {
623 664
                     color: #005495;
624 665
                   }
625
-                  &.icon-icon_zhengzaijinx {
666
+                  &.dsit-icon_zhengzaijinx {
626 667
                     color: #48a843;
627 668
                     font-size: 0.37rem;
628 669
                   }
@@ -645,6 +686,7 @@ i.iconfont.blue {
645 686
               }
646 687
               .text2 {
647 688
                 color: #666;
689
+                word-break: break-all;
648 690
               }
649 691
               p {
650 692
                 padding: 0;

+ 43 - 13
src/views/closed.vue

@@ -20,14 +20,14 @@
20 20
               >处理信息</a
21 21
             >
22 22
           </div>
23
-          <div class="fl">
23
+          <!-- <div class="fl">
24 24
             <a
25 25
               :class="{ active: actives == 'handlerLog' }"
26 26
               href="javascript:;"
27 27
               @click="toInfo('handlerLog')"
28 28
               >处理日志</a
29 29
             >
30
-          </div>
30
+          </div> -->
31 31
           <div class="fl">
32 32
             <a
33 33
               :class="{ active: actives == 'closeInfo' }"
@@ -216,7 +216,7 @@
216 216
               >隐藏详情<<</span
217 217
             >
218 218
           </p>
219
-          <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
219
+          <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
220 220
           <div class="label" id="closeInfo">关单信息</div>
221 221
           <p>
222 222
             <span class="fl">是否已解决</span>
@@ -255,11 +255,16 @@
255 255
                   <i
256 256
                     :class="{
257 257
                       iconfont: true,
258
-                      'icon-icon_weizuo': item.endTime != '',
259
-                      'icon-icon_zhengzaijinx': item.endTime == ''
258
+                      'dsit-icon_weizuo': item.endTime != '',
259
+                      'dsit-icon_zhengzaijinx': item.endTime == ''
260 260
                     }"
261 261
                   ></i>
262
-                  <span class="text1">{{ item.startTime }}</span>
262
+                  <span class="text1">
263
+                      {{item.startTime | timeFormat("MM-dd HH:mm:ss")}}
264
+                      <template v-if="item.userName">
265
+                        ,{{item.userName}}
266
+                      </template>
267
+                      </span>
263 268
                 </div>
264 269
                 <div :class="{ cont: true, blue: item.endTime != '' }">
265 270
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -280,7 +285,7 @@
280 285
 </template>
281 286
 <script>
282 287
 import LoadIng from "./../views/loading.vue";
283
-import HandlerLog from "./../views/handlerLog.vue";
288
+// import HandlerLog from "./../views/handlerLog.vue";
284 289
 export default {
285 290
   data() {
286 291
     return {
@@ -311,7 +316,7 @@ export default {
311 316
   },
312 317
   components: {
313 318
     LoadIng,
314
-    HandlerLog
319
+    // HandlerLog
315 320
   },
316 321
   methods: {
317 322
     //   获取事件数据
@@ -332,6 +337,7 @@ export default {
332 337
           that.model = res.data.model;
333 338
           //seimin
334 339
           localStorage.setItem("modelData", JSON.stringify(that.model));
340
+          that.getProgressInfo();
335 341
         });
336 342
     },
337 343
     // 获取图片
@@ -360,7 +366,31 @@ export default {
360 366
         .then(function(res) {
361 367
           console.log(res.data);
362 368
           that.progressInfo = res.data.data;
363
-          that.progressInfo.reverse();
369
+          //处理日志startcaca
370
+          if(that.model.incident.handlerLogs){
371
+            //添加日志
372
+            that.model.incident.handlerLogs.forEach(v=>{
373
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
374
+            })
375
+
376
+          }
377
+          //处理数据
378
+          that.progressInfo.forEach((v)=>{
379
+            if(!v.endTime){
380
+              v.endTime = 1;
381
+            }
382
+            v.startTime = new Date(v.startTime).getTime();
383
+          })
384
+          var kaishi = that.progressInfo.shift();
385
+          var jiedan = that.progressInfo.shift();
386
+          that.progressInfo.sort(function(o,c){
387
+            return c.startTime - o.startTime;
388
+          });
389
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');
390
+          that.progressInfo.push(jiedan);
391
+          that.progressInfo.push(kaishi);
392
+          console.log(that.progressInfo)
393
+        //处理日志end
364 394
         });
365 395
     },
366 396
     //隐藏显示详情
@@ -409,7 +439,6 @@ export default {
409 439
       ? this.$route.params.data.id
410 440
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
411 441
     this.getParamsData();
412
-    this.getProgressInfo();
413 442
     this.getImgs();
414 443
   }
415 444
 };
@@ -454,7 +483,7 @@ i.iconfont {
454 483
     position: fixed;
455 484
     top: 0.88rem;
456 485
     div {
457
-      width: 20%;
486
+      width: 25%;
458 487
       text-align: center;
459 488
       a {
460 489
         display: inline-block;
@@ -598,10 +627,10 @@ i.iconfont {
598 627
               .time {
599 628
                 i {
600 629
                   margin-left: -0.15rem;
601
-                  &.icon-icon_weizuo {
630
+                  &.dsit-icon_weizuo {
602 631
                     color: #005495;
603 632
                   }
604
-                  &.icon-icon_zhengzaijinx {
633
+                  &.dsit-icon_zhengzaijinx {
605 634
                     color: #48a843;
606 635
                     font-size: 0.37rem;
607 636
                   }
@@ -624,6 +653,7 @@ i.iconfont {
624 653
               }
625 654
               .text2 {
626 655
                 color: #666;
656
+                word-break: break-all;
627 657
               }
628 658
               p {
629 659
                 padding: 0;

+ 49 - 7
src/views/grabSheet.vue

@@ -115,6 +115,18 @@
115 115
                 <span class="fl">逾期解决时间</span>
116 116
                 <span class="fr">{{ model.incident.overdueTime || "" }}</span>
117 117
               </p>
118
+              <p>
119
+                <span class="fl">区域</span>
120
+                <span class="fr">{{
121
+                  model.incident.place ? model.incident.place.area.area : "--"
122
+                }}</span>
123
+              </p>
124
+              <p>
125
+                <span class="fl">地点</span>
126
+                <span class="fr">{{
127
+                  model.incident.place ? model.incident.place.place : "--"
128
+                }}</span>
129
+              </p>
118 130
             </div>
119 131
             <p class="info_hide">
120 132
               <span class="fl hide" @click="hides()" v-if="!item_hides"
@@ -157,11 +169,16 @@
157 169
                     <i
158 170
                       :class="{
159 171
                         iconfont: true,
160
-                        'icon-icon_weizuo': item.endTime != '',
161
-                        'icon-icon_zhengzaijinx': item.endTime == ''
172
+                        'dsit-icon_weizuo': item.endTime != '',
173
+                        'dsit-icon_zhengzaijinx': item.endTime == ''
162 174
                       }"
163 175
                     ></i>
164
-                    <span class="text1">{{ item.startTime }}</span>
176
+                    <span class="text1">
177
+                      {{item.startTime | timeFormat("MM-dd HH:mm:ss")}}
178
+                      <template v-if="item.userName">
179
+                        ,{{item.userName}}
180
+                      </template>
181
+                      </span>
165 182
                   </div>
166 183
                   <div :class="{ cont: true, blue: item.endTime != '' }">
167 184
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -244,6 +261,7 @@ export default {
244 261
           }
245 262
           //seimin
246 263
           localStorage.setItem("modelData", JSON.stringify(that.model));
264
+          that.getProgressInfo();
247 265
         });
248 266
     },
249 267
     // 获取图片
@@ -272,7 +290,31 @@ export default {
272 290
         .then(function(res) {
273 291
           console.log(res.data);
274 292
           that.progressInfo = res.data.data;
275
-          that.progressInfo.reverse();
293
+          //处理日志startcaca
294
+          if(that.model.incident.handlerLogs){
295
+            //添加日志
296
+            that.model.incident.handlerLogs.forEach(v=>{
297
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
298
+            })
299
+
300
+          }
301
+          //处理数据
302
+          that.progressInfo.forEach((v)=>{
303
+            if(!v.endTime){
304
+              v.endTime = 1;
305
+            }
306
+            v.startTime = new Date(v.startTime).getTime();
307
+          })
308
+          var kaishi = that.progressInfo.shift();
309
+          var jiedan = that.progressInfo.shift();
310
+          that.progressInfo.sort(function(o,c){
311
+            return c.startTime - o.startTime;
312
+          });
313
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');
314
+          that.progressInfo.push(jiedan);
315
+          that.progressInfo.push(kaishi);
316
+          console.log(that.progressInfo)
317
+        //处理日志end
276 318
         });
277 319
     },
278 320
     //隐藏显示详情
@@ -350,7 +392,6 @@ export default {
350 392
       ? this.$route.params.data.id
351 393
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
352 394
     this.getParamsData();
353
-    this.getProgressInfo();
354 395
     this.getImgs();
355 396
   }
356 397
 };
@@ -535,10 +576,10 @@ export default {
535 576
               .time {
536 577
                 i {
537 578
                   margin-left: -0.15rem;
538
-                  &.icon-icon_weizuo {
579
+                  &.dsit-icon_weizuo {
539 580
                     color: #005495;
540 581
                   }
541
-                  &.icon-icon_zhengzaijinx {
582
+                  &.dsit-icon_zhengzaijinx {
542 583
                     color: #48a843;
543 584
                     font-size: 0.37rem;
544 585
                   }
@@ -561,6 +602,7 @@ export default {
561 602
               }
562 603
               .text2 {
563 604
                 color: #666;
605
+                word-break: break-all;
564 606
               }
565 607
               p {
566 608
                 padding: 0;

+ 44 - 14
src/views/order.vue

@@ -16,7 +16,7 @@
16 16
                 >事件信息</a
17 17
               >
18 18
             </div>
19
-            <div
19
+            <!-- <div
20 20
               class="fl p50"
21 21
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
22 22
             >
@@ -26,7 +26,7 @@
26 26
                 @click="toInfo('handlerLog')"
27 27
                 >处理日志</a
28 28
               >
29
-            </div>
29
+            </div> -->
30 30
             <div
31 31
               class="fl p50"
32 32
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
@@ -209,7 +209,7 @@
209 209
                 </p>
210 210
               </div>
211 211
             </div>
212
-            <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
212
+            <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
213 213
             <div class="label" id="progress">处理进度</div>
214 214
             <div
215 215
               :class="{ progress: true, progressHide: !pro_hides }"
@@ -222,11 +222,16 @@
222 222
                     <i
223 223
                       :class="{
224 224
                         iconfont: true,
225
-                        'icon-icon_weizuo': item.endTime != '',
226
-                        'icon-icon_zhengzaijinx': item.endTime == ''
225
+                        'dsit-icon_weizuo': item.endTime != '',
226
+                        'dsit-icon_zhengzaijinx': item.endTime == ''
227 227
                       }"
228 228
                     ></i>
229
-                    <span class="text1">{{ item.startTime }}</span>
229
+                    <span class="text1">
230
+                      {{item.startTime | timeFormat("MM-dd HH:mm:ss")}}
231
+                      <template v-if="item.userName">
232
+                        ,{{item.userName}}
233
+                      </template>
234
+                      </span>
230 235
                   </div>
231 236
                   <div :class="{ cont: true, blue: item.endTime != '' }">
232 237
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -272,7 +277,7 @@
272 277
 <script>
273 278
 import LoadIng from "./../views/loading.vue";
274 279
 import PrompTing from "./../views/prompting.vue";
275
-import HandlerLog from "./../views/handlerLog.vue";
280
+// import HandlerLog from "./../views/handlerLog.vue";
276 281
 export default {
277 282
   data() {
278 283
     return {
@@ -305,7 +310,7 @@ export default {
305 310
   components: {
306 311
     LoadIng,
307 312
     PrompTing,
308
-    HandlerLog
313
+    // HandlerLog
309 314
   },
310 315
   methods: {
311 316
     //   获取事件数据
@@ -326,6 +331,7 @@ export default {
326 331
           that.model = res.data.model;
327 332
           //seimin
328 333
           localStorage.setItem("modelData", JSON.stringify(that.model));
334
+          that.getProgressInfo();
329 335
         });
330 336
     },
331 337
     // 获取图片
@@ -354,7 +360,31 @@ export default {
354 360
         .then(function(res) {
355 361
           console.log(res.data);
356 362
           that.progressInfo = res.data.data;
357
-          that.progressInfo.reverse();
363
+          //处理日志startcaca
364
+          if(that.model.incident.handlerLogs){
365
+            //添加日志
366
+            that.model.incident.handlerLogs.forEach(v=>{
367
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
368
+            })
369
+
370
+          }
371
+          //处理数据
372
+          that.progressInfo.forEach((v)=>{
373
+            if(!v.endTime){
374
+              v.endTime = 1;
375
+            }
376
+            v.startTime = new Date(v.startTime).getTime();
377
+          })
378
+          var kaishi = that.progressInfo.shift();
379
+          var jiedan = that.progressInfo.shift();
380
+          that.progressInfo.sort(function(o,c){
381
+            return c.startTime - o.startTime;
382
+          });
383
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');
384
+          that.progressInfo.push(jiedan);
385
+          that.progressInfo.push(kaishi);
386
+          console.log(that.progressInfo)
387
+        //处理日志end
358 388
         });
359 389
     },
360 390
     //隐藏显示详情
@@ -456,7 +486,6 @@ export default {
456 486
       ? this.$route.params.data.id
457 487
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
458 488
     this.getParamsData();
459
-    this.getProgressInfo();
460 489
     this.getImgs();
461 490
   }
462 491
 };
@@ -497,10 +526,10 @@ i.iconfont.blue {
497 526
     top: 0.88rem;
498 527
 
499 528
     div {
500
-      width: 25%;
529
+      width: 33.33%;
501 530
       text-align: center;
502 531
       &.p50 {
503
-        width: 33.33%;
532
+        width: 49.99%;
504 533
       }
505 534
       a {
506 535
         display: inline-block;
@@ -640,10 +669,10 @@ i.iconfont.blue {
640 669
               .time {
641 670
                 i {
642 671
                   margin-left: -0.15rem;
643
-                  &.icon-icon_weizuo {
672
+                  &.dsit-icon_weizuo {
644 673
                     color: #005495;
645 674
                   }
646
-                  &.icon-icon_zhengzaijinx {
675
+                  &.dsit-icon_zhengzaijinx {
647 676
                     color: #48a843;
648 677
                     font-size: 0.37rem;
649 678
                   }
@@ -666,6 +695,7 @@ i.iconfont.blue {
666 695
               }
667 696
               .text2 {
668 697
                 color: #666;
698
+                word-break: break-all;
669 699
               }
670 700
               p {
671 701
                 padding: 0;

+ 44 - 15
src/views/processing.vue

@@ -15,7 +15,7 @@
15 15
               >事件信息</a
16 16
             >
17 17
           </div>
18
-          <div
18
+          <!-- <div
19 19
             class="fl p50"
20 20
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
21 21
           >
@@ -25,7 +25,7 @@
25 25
               @click="toInfo('handlerLog')"
26 26
               >处理日志</a
27 27
             >
28
-          </div>
28
+          </div> -->
29 29
           <div
30 30
             class="fl p50"
31 31
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
@@ -197,7 +197,7 @@
197 197
               </p>
198 198
             </div>
199 199
           </div>
200
-          <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog>
200
+          <!-- <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
201 201
           <div class="label" id="progress">处理进度</div>
202 202
           <div
203 203
             :class="{ progress: true, progressHide: !pro_hides }"
@@ -210,11 +210,16 @@
210 210
                   <i
211 211
                     :class="{
212 212
                       iconfont: true,
213
-                      'icon-icon_weizuo': item.endTime != '',
214
-                      'icon-icon_zhengzaijinx': item.endTime == ''
213
+                      'dsit-icon_weizuo': item.endTime != '',
214
+                      'dsit-icon_zhengzaijinx': item.endTime == ''
215 215
                     }"
216 216
                   ></i>
217
-                  <span class="text1">{{ item.startTime }}</span>
217
+                  <span class="text1">
218
+                    {{ item.startTime | timeFormat("MM-dd HH:mm:ss") }}
219
+                    <template v-if="item.userName">
220
+                      ,{{item.userName}}
221
+                    </template>
222
+                  </span>
218 223
                 </div>
219 224
                 <div :class="{ cont: true, blue: item.endTime != '' }">
220 225
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -369,7 +374,7 @@ import CubeButtonGroup from "./../components/cube-button-group.vue";
369 374
 import DatePicker from "./../components/date-picker.vue";
370 375
 import CubeExtendPopup from "./../components/extend-popup.vue";
371 376
 import LoadIng from "./../views/loading.vue";
372
-import HandlerLog from "./../views/handlerLog.vue";
377
+// import HandlerLog from "./../views/handlerLog.vue";
373 378
 import PrompTing from "./../views/prompting.vue";
374 379
 // import host from '../request/host'
375 380
 
@@ -799,7 +804,7 @@ export default {
799 804
   },
800 805
   components: {
801 806
     LoadIng,
802
-    HandlerLog
807
+    // HandlerLog
803 808
   },
804 809
   methods: {
805 810
     //获取区域
@@ -976,7 +981,30 @@ export default {
976 981
         .then(function(res) {
977 982
           console.log(res.data);
978 983
           that.progressInfo = res.data.data;
979
-          that.progressInfo.reverse();
984
+          //处理日志startcaca
985
+          if(that.modelData.incident.handlerLogs){
986
+            //添加日志
987
+            that.modelData.incident.handlerLogs.forEach(v=>{
988
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
989
+            })
990
+          }
991
+          //处理数据
992
+          that.progressInfo.forEach((v)=>{
993
+            if(!v.endTime){
994
+              v.endTime = 1;
995
+            }
996
+            v.startTime = new Date(v.startTime).getTime();
997
+          })
998
+          var kaishi = that.progressInfo.shift();
999
+          var jiedan = that.progressInfo.shift();
1000
+          that.progressInfo.sort(function(o,c){
1001
+            return c.startTime - o.startTime;
1002
+          });
1003
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');;
1004
+          that.progressInfo.push(jiedan);
1005
+          that.progressInfo.push(kaishi);
1006
+          console.log(that.progressInfo)
1007
+        //处理日志end
980 1008
         });
981 1009
     },
982 1010
     //隐藏显示详情
@@ -1168,6 +1196,7 @@ export default {
1168 1196
           localStorage.getItem("selectedCategoryTxt")
1169 1197
         );
1170 1198
       }
1199
+      that.getProgressInfo();
1171 1200
     },
1172 1201
     // 事件分类
1173 1202
     showCategoryPicker() {
@@ -1606,7 +1635,6 @@ export default {
1606 1635
 
1607 1636
     this.action.target += this.processInstanceId;
1608 1637
     this.getParamsData();
1609
-    this.getProgressInfo();
1610 1638
     this.getImgs();
1611 1639
     // 处理方式
1612 1640
     this.getHandleCategory();
@@ -1650,7 +1678,7 @@ export default {
1650 1678
     // JsonView
1651 1679
     CubeExtendPopup,
1652 1680
     LoadIng,
1653
-    HandlerLog,
1681
+    // HandlerLog,
1654 1682
     PrompTing
1655 1683
   }
1656 1684
 };
@@ -1826,10 +1854,10 @@ i.iconfont.blue {
1826 1854
     top: 0.88rem;
1827 1855
     z-index: 9;
1828 1856
     div {
1829
-      width: 25%;
1857
+      width: 33.33%;
1830 1858
       text-align: center;
1831 1859
       &.p50 {
1832
-        width: 33.33%;
1860
+        width: 49.99%;
1833 1861
       }
1834 1862
       a {
1835 1863
         display: inline-block;
@@ -1969,10 +1997,10 @@ i.iconfont.blue {
1969 1997
               .time {
1970 1998
                 i {
1971 1999
                   margin-left: -0.15rem;
1972
-                  &.icon-icon_weizuo {
2000
+                  &.dsit-icon_weizuo {
1973 2001
                     color: #005495;
1974 2002
                   }
1975
-                  &.icon-icon_zhengzaijinx {
2003
+                  &.dsit-icon_zhengzaijinx {
1976 2004
                     color: #48a843;
1977 2005
                     font-size: 0.37rem;
1978 2006
                   }
@@ -1995,6 +2023,7 @@ i.iconfont.blue {
1995 2023
               }
1996 2024
               .text2 {
1997 2025
                 color: #666;
2026
+                word-break: break-all;
1998 2027
               }
1999 2028
               p {
2000 2029
                 padding: 0;

+ 3 - 3
src/views/prompting.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
     <div id="fade" class="bgColor">
3 3
         <div class="success" v-if="status">
4
-            <i class="iconfont icon-icon_zhengzaijinx"></i>
4
+            <i class="iconfont dsit-icon_zhengzaijinx"></i>
5 5
             <span class="conentBox">成功提示:<span class="conent">{{conents}}</span></span>
6 6
         </div>
7 7
         <div class="error" v-else>
@@ -41,7 +41,7 @@ export default {
41 41
     line-height: .64rem;
42 42
     padding: 0 .24rem;
43 43
     background-color: #bae6b8;
44
-    z-index: 99999 
44
+    z-index: 99999
45 45
 }
46 46
 .success i{
47 47
     font-size: .35rem;
@@ -88,4 +88,4 @@ export default {
88 88
     color: rgb(153,31,0);
89 89
     font-weight: bold
90 90
 }
91
-</style>
91
+</style>

+ 44 - 14
src/views/solved.vue

@@ -20,14 +20,14 @@
20 20
               >处理信息</a
21 21
             >
22 22
           </div>
23
-          <div class="fl">
23
+          <!-- <div class="fl">
24 24
             <a
25 25
               :class="{ active: actives == 'handlerLog' }"
26 26
               href="javascript:;"
27 27
               @click="toInfo('handlerLog')"
28 28
               >处理日志</a
29 29
             >
30
-          </div>
30
+          </div> -->
31 31
           <div class="fl">
32 32
             <a
33 33
               :class="{ active: actives == 'progress' }"
@@ -220,7 +220,7 @@
220 220
                 <span class="fl">转派原因</span>
221 221
                 <span class="fr" >{{model.transferReason}}</span>
222 222
               </p> -->
223
-          <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
223
+          <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
224 224
           <div class="label" id="progress">处理进度</div>
225 225
           <div
226 226
             :class="{ progress: true, progressHide: !pro_hides }"
@@ -233,11 +233,16 @@
233 233
                   <i
234 234
                     :class="{
235 235
                       iconfont: true,
236
-                      'icon-icon_weizuo': item.endTime != '',
237
-                      'icon-icon_zhengzaijinx': item.endTime == ''
236
+                      'dsit-icon_weizuo': item.endTime != '',
237
+                      'dsit-icon_zhengzaijinx': item.endTime == ''
238 238
                     }"
239 239
                   ></i>
240
-                  <span class="text1">{{ item.startTime }}</span>
240
+                  <span class="text1">
241
+                      {{item.startTime | timeFormat("MM-dd HH:mm:ss")}}
242
+                      <template v-if="item.userName">
243
+                        ,{{item.userName}}
244
+                      </template>
245
+                      </span>
241 246
                 </div>
242 247
                 <div :class="{ cont: true, blue: item.endTime != '' }">
243 248
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -300,7 +305,7 @@
300 305
 </template>
301 306
 <script>
302 307
 import LoadIng from "./../views/loading.vue";
303
-import HandlerLog from "./../views/handlerLog.vue";
308
+// import HandlerLog from "./../views/handlerLog.vue";
304 309
 export default {
305 310
   data() {
306 311
     return {
@@ -336,7 +341,7 @@ export default {
336 341
   },
337 342
   components: {
338 343
     LoadIng,
339
-    HandlerLog
344
+    // HandlerLog
340 345
   },
341 346
   methods: {
342 347
     //   获取事件数据
@@ -358,6 +363,7 @@ export default {
358 363
           that.model.msgflag = "已解决";
359 364
           //seimin
360 365
           localStorage.setItem("modelData", JSON.stringify(that.model));
366
+          that.getProgressInfo();
361 367
         });
362 368
     },
363 369
     // 获取图片
@@ -386,7 +392,31 @@ export default {
386 392
         .then(function(res) {
387 393
           console.log(res.data);
388 394
           that.progressInfo = res.data.data;
389
-          that.progressInfo.reverse();
395
+          //处理日志startcaca
396
+          if(that.model.incident.handlerLogs){
397
+            //添加日志
398
+            that.model.incident.handlerLogs.forEach(v=>{
399
+              that.progressInfo.push({startTime:v.opTime,endTime:1,desc:v.opValue,userName:v.userName,activityName:'事件处理'});
400
+            })
401
+
402
+          }
403
+          //处理数据
404
+          that.progressInfo.forEach((v)=>{
405
+            if(!v.endTime){
406
+              v.endTime = 1;
407
+            }
408
+            v.startTime = new Date(v.startTime).getTime();
409
+          })
410
+          var kaishi = that.progressInfo.shift();
411
+          var jiedan = that.progressInfo.shift();
412
+          that.progressInfo.sort(function(o,c){
413
+            return c.startTime - o.startTime;
414
+          });
415
+          that.progressInfo.length && (that.progressInfo[0].endTime = '');
416
+          that.progressInfo.push(jiedan);
417
+          that.progressInfo.push(kaishi);
418
+          console.log(that.progressInfo)
419
+        //处理日志end
390 420
         });
391 421
     },
392 422
     // 获取结果类型
@@ -527,7 +557,6 @@ export default {
527 557
       ? this.$route.params.data.id
528 558
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
529 559
     this.getParamsData();
530
-    this.getProgressInfo();
531 560
     this.getImgs();
532 561
     this.getHandlerRes();
533 562
     this.getDegree();
@@ -574,10 +603,10 @@ i.iconfont {
574 603
     position: fixed;
575 604
     top: 0.88rem;
576 605
     div {
577
-      width: 25%;
606
+      width: 33.33%;
578 607
       text-align: center;
579 608
       &.p50 {
580
-        width: 33.33%;
609
+        width: 49.99%;
581 610
       }
582 611
       a {
583 612
         display: inline-block;
@@ -740,10 +769,10 @@ i.iconfont {
740 769
               .time {
741 770
                 i {
742 771
                   margin-left: -0.15rem;
743
-                  &.icon-icon_weizuo {
772
+                  &.dsit-icon_weizuo {
744 773
                     color: #005495;
745 774
                   }
746
-                  &.icon-icon_zhengzaijinx {
775
+                  &.dsit-icon_zhengzaijinx {
747 776
                     color: #48a843;
748 777
                     font-size: 0.37rem;
749 778
                   }
@@ -766,6 +795,7 @@ i.iconfont {
766 795
               }
767 796
               .text2 {
768 797
                 color: #666;
798
+                word-break: break-all;
769 799
               }
770 800
               p {
771 801
                 padding: 0;