Parcourir la source

处理日志界面修改

seimin il y a 3 ans
Parent
commit
8a2f210d25

+ 49 - 7
src/views/againAssign.vue

@@ -114,6 +114,18 @@
114
               <span class="fl">逾期解决时间</span>
114
               <span class="fl">逾期解决时间</span>
115
               <span class="fr">{{ model.incident.overdueTime }}</span>
115
               <span class="fr">{{ model.incident.overdueTime }}</span>
116
             </p>
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
           </div>
129
           </div>
118
           <p class="info_hide">
130
           <p class="info_hide">
119
             <span class="fl hide" @click="hides()" v-if="!item_hides"
131
             <span class="fl hide" @click="hides()" v-if="!item_hides"
@@ -163,11 +175,16 @@
163
                   <i
175
                   <i
164
                     :class="{
176
                     :class="{
165
                       iconfont: true,
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
                   ></i>
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
                 </div>
188
                 </div>
172
                 <div :class="{ cont: true, blue: item.endTime != '' }">
189
                 <div :class="{ cont: true, blue: item.endTime != '' }">
173
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
190
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -274,6 +291,7 @@ export default {
274
         .then(function(res) {
291
         .then(function(res) {
275
           console.log(res.data);
292
           console.log(res.data);
276
           that.model = res.data.model;
293
           that.model = res.data.model;
294
+          that.getProgressInfo();
277
         });
295
         });
278
     },
296
     },
279
     // 获取图片
297
     // 获取图片
@@ -302,7 +320,31 @@ export default {
302
         .then(function(res) {
320
         .then(function(res) {
303
           console.log(res.data);
321
           console.log(res.data);
304
           that.progressInfo = res.data.data;
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
     this.processInstanceId = this.$route.params.data.processInstanceId;
476
     this.processInstanceId = this.$route.params.data.processInstanceId;
435
     this.id = this.$route.params.data.id;
477
     this.id = this.$route.params.data.id;
436
     this.getParamsData();
478
     this.getParamsData();
437
-    this.getProgressInfo();
438
     this.getImgs();
479
     this.getImgs();
439
     this.getHandlerUser();
480
     this.getHandlerUser();
440
     this.getCandidateGroups();
481
     this.getCandidateGroups();
@@ -619,10 +660,10 @@ i.iconfont.blue {
619
               .time {
660
               .time {
620
                 i {
661
                 i {
621
                   margin-left: -0.15rem;
662
                   margin-left: -0.15rem;
622
-                  &.icon-icon_weizuo {
663
+                  &.dsit-icon_weizuo {
623
                     color: #005495;
664
                     color: #005495;
624
                   }
665
                   }
625
-                  &.icon-icon_zhengzaijinx {
666
+                  &.dsit-icon_zhengzaijinx {
626
                     color: #48a843;
667
                     color: #48a843;
627
                     font-size: 0.37rem;
668
                     font-size: 0.37rem;
628
                   }
669
                   }
@@ -645,6 +686,7 @@ i.iconfont.blue {
645
               }
686
               }
646
               .text2 {
687
               .text2 {
647
                 color: #666;
688
                 color: #666;
689
+                word-break: break-all;
648
               }
690
               }
649
               p {
691
               p {
650
                 padding: 0;
692
                 padding: 0;

+ 43 - 13
src/views/closed.vue

@@ -20,14 +20,14 @@
20
               >处理信息</a
20
               >处理信息</a
21
             >
21
             >
22
           </div>
22
           </div>
23
-          <div class="fl">
23
+          <!-- <div class="fl">
24
             <a
24
             <a
25
               :class="{ active: actives == 'handlerLog' }"
25
               :class="{ active: actives == 'handlerLog' }"
26
               href="javascript:;"
26
               href="javascript:;"
27
               @click="toInfo('handlerLog')"
27
               @click="toInfo('handlerLog')"
28
               >处理日志</a
28
               >处理日志</a
29
             >
29
             >
30
-          </div>
30
+          </div> -->
31
           <div class="fl">
31
           <div class="fl">
32
             <a
32
             <a
33
               :class="{ active: actives == 'closeInfo' }"
33
               :class="{ active: actives == 'closeInfo' }"
@@ -216,7 +216,7 @@
216
               >隐藏详情<<</span
216
               >隐藏详情<<</span
217
             >
217
             >
218
           </p>
218
           </p>
219
-          <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
219
+          <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
220
           <div class="label" id="closeInfo">关单信息</div>
220
           <div class="label" id="closeInfo">关单信息</div>
221
           <p>
221
           <p>
222
             <span class="fl">是否已解决</span>
222
             <span class="fl">是否已解决</span>
@@ -255,11 +255,16 @@
255
                   <i
255
                   <i
256
                     :class="{
256
                     :class="{
257
                       iconfont: true,
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
                   ></i>
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
                 </div>
268
                 </div>
264
                 <div :class="{ cont: true, blue: item.endTime != '' }">
269
                 <div :class="{ cont: true, blue: item.endTime != '' }">
265
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
270
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -280,7 +285,7 @@
280
 </template>
285
 </template>
281
 <script>
286
 <script>
282
 import LoadIng from "./../views/loading.vue";
287
 import LoadIng from "./../views/loading.vue";
283
-import HandlerLog from "./../views/handlerLog.vue";
288
+// import HandlerLog from "./../views/handlerLog.vue";
284
 export default {
289
 export default {
285
   data() {
290
   data() {
286
     return {
291
     return {
@@ -311,7 +316,7 @@ export default {
311
   },
316
   },
312
   components: {
317
   components: {
313
     LoadIng,
318
     LoadIng,
314
-    HandlerLog
319
+    // HandlerLog
315
   },
320
   },
316
   methods: {
321
   methods: {
317
     //   获取事件数据
322
     //   获取事件数据
@@ -332,6 +337,7 @@ export default {
332
           that.model = res.data.model;
337
           that.model = res.data.model;
333
           //seimin
338
           //seimin
334
           localStorage.setItem("modelData", JSON.stringify(that.model));
339
           localStorage.setItem("modelData", JSON.stringify(that.model));
340
+          that.getProgressInfo();
335
         });
341
         });
336
     },
342
     },
337
     // 获取图片
343
     // 获取图片
@@ -360,7 +366,31 @@ export default {
360
         .then(function(res) {
366
         .then(function(res) {
361
           console.log(res.data);
367
           console.log(res.data);
362
           that.progressInfo = res.data.data;
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
       ? this.$route.params.data.id
439
       ? this.$route.params.data.id
410
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
440
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
411
     this.getParamsData();
441
     this.getParamsData();
412
-    this.getProgressInfo();
413
     this.getImgs();
442
     this.getImgs();
414
   }
443
   }
415
 };
444
 };
@@ -454,7 +483,7 @@ i.iconfont {
454
     position: fixed;
483
     position: fixed;
455
     top: 0.88rem;
484
     top: 0.88rem;
456
     div {
485
     div {
457
-      width: 20%;
486
+      width: 25%;
458
       text-align: center;
487
       text-align: center;
459
       a {
488
       a {
460
         display: inline-block;
489
         display: inline-block;
@@ -598,10 +627,10 @@ i.iconfont {
598
               .time {
627
               .time {
599
                 i {
628
                 i {
600
                   margin-left: -0.15rem;
629
                   margin-left: -0.15rem;
601
-                  &.icon-icon_weizuo {
630
+                  &.dsit-icon_weizuo {
602
                     color: #005495;
631
                     color: #005495;
603
                   }
632
                   }
604
-                  &.icon-icon_zhengzaijinx {
633
+                  &.dsit-icon_zhengzaijinx {
605
                     color: #48a843;
634
                     color: #48a843;
606
                     font-size: 0.37rem;
635
                     font-size: 0.37rem;
607
                   }
636
                   }
@@ -624,6 +653,7 @@ i.iconfont {
624
               }
653
               }
625
               .text2 {
654
               .text2 {
626
                 color: #666;
655
                 color: #666;
656
+                word-break: break-all;
627
               }
657
               }
628
               p {
658
               p {
629
                 padding: 0;
659
                 padding: 0;

+ 49 - 7
src/views/grabSheet.vue

@@ -115,6 +115,18 @@
115
                 <span class="fl">逾期解决时间</span>
115
                 <span class="fl">逾期解决时间</span>
116
                 <span class="fr">{{ model.incident.overdueTime || "" }}</span>
116
                 <span class="fr">{{ model.incident.overdueTime || "" }}</span>
117
               </p>
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
             </div>
130
             </div>
119
             <p class="info_hide">
131
             <p class="info_hide">
120
               <span class="fl hide" @click="hides()" v-if="!item_hides"
132
               <span class="fl hide" @click="hides()" v-if="!item_hides"
@@ -157,11 +169,16 @@
157
                     <i
169
                     <i
158
                       :class="{
170
                       :class="{
159
                         iconfont: true,
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
                     ></i>
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
                   </div>
182
                   </div>
166
                   <div :class="{ cont: true, blue: item.endTime != '' }">
183
                   <div :class="{ cont: true, blue: item.endTime != '' }">
167
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
184
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -244,6 +261,7 @@ export default {
244
           }
261
           }
245
           //seimin
262
           //seimin
246
           localStorage.setItem("modelData", JSON.stringify(that.model));
263
           localStorage.setItem("modelData", JSON.stringify(that.model));
264
+          that.getProgressInfo();
247
         });
265
         });
248
     },
266
     },
249
     // 获取图片
267
     // 获取图片
@@ -272,7 +290,31 @@ export default {
272
         .then(function(res) {
290
         .then(function(res) {
273
           console.log(res.data);
291
           console.log(res.data);
274
           that.progressInfo = res.data.data;
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
       ? this.$route.params.data.id
392
       ? this.$route.params.data.id
351
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
393
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
352
     this.getParamsData();
394
     this.getParamsData();
353
-    this.getProgressInfo();
354
     this.getImgs();
395
     this.getImgs();
355
   }
396
   }
356
 };
397
 };
@@ -535,10 +576,10 @@ export default {
535
               .time {
576
               .time {
536
                 i {
577
                 i {
537
                   margin-left: -0.15rem;
578
                   margin-left: -0.15rem;
538
-                  &.icon-icon_weizuo {
579
+                  &.dsit-icon_weizuo {
539
                     color: #005495;
580
                     color: #005495;
540
                   }
581
                   }
541
-                  &.icon-icon_zhengzaijinx {
582
+                  &.dsit-icon_zhengzaijinx {
542
                     color: #48a843;
583
                     color: #48a843;
543
                     font-size: 0.37rem;
584
                     font-size: 0.37rem;
544
                   }
585
                   }
@@ -561,6 +602,7 @@ export default {
561
               }
602
               }
562
               .text2 {
603
               .text2 {
563
                 color: #666;
604
                 color: #666;
605
+                word-break: break-all;
564
               }
606
               }
565
               p {
607
               p {
566
                 padding: 0;
608
                 padding: 0;

+ 44 - 14
src/views/order.vue

@@ -16,7 +16,7 @@
16
                 >事件信息</a
16
                 >事件信息</a
17
               >
17
               >
18
             </div>
18
             </div>
19
-            <div
19
+            <!-- <div
20
               class="fl p50"
20
               class="fl p50"
21
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
21
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
22
             >
22
             >
@@ -26,7 +26,7 @@
26
                 @click="toInfo('handlerLog')"
26
                 @click="toInfo('handlerLog')"
27
                 >处理日志</a
27
                 >处理日志</a
28
               >
28
               >
29
-            </div>
29
+            </div> -->
30
             <div
30
             <div
31
               class="fl p50"
31
               class="fl p50"
32
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
32
               :class="{ p50: model.incident.handlerUser.id != loginUser.id }"
@@ -209,7 +209,7 @@
209
                 </p>
209
                 </p>
210
               </div>
210
               </div>
211
             </div>
211
             </div>
212
-            <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
212
+            <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
213
             <div class="label" id="progress">处理进度</div>
213
             <div class="label" id="progress">处理进度</div>
214
             <div
214
             <div
215
               :class="{ progress: true, progressHide: !pro_hides }"
215
               :class="{ progress: true, progressHide: !pro_hides }"
@@ -222,11 +222,16 @@
222
                     <i
222
                     <i
223
                       :class="{
223
                       :class="{
224
                         iconfont: true,
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
                     ></i>
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
                   </div>
235
                   </div>
231
                   <div :class="{ cont: true, blue: item.endTime != '' }">
236
                   <div :class="{ cont: true, blue: item.endTime != '' }">
232
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
237
                     <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -272,7 +277,7 @@
272
 <script>
277
 <script>
273
 import LoadIng from "./../views/loading.vue";
278
 import LoadIng from "./../views/loading.vue";
274
 import PrompTing from "./../views/prompting.vue";
279
 import PrompTing from "./../views/prompting.vue";
275
-import HandlerLog from "./../views/handlerLog.vue";
280
+// import HandlerLog from "./../views/handlerLog.vue";
276
 export default {
281
 export default {
277
   data() {
282
   data() {
278
     return {
283
     return {
@@ -305,7 +310,7 @@ export default {
305
   components: {
310
   components: {
306
     LoadIng,
311
     LoadIng,
307
     PrompTing,
312
     PrompTing,
308
-    HandlerLog
313
+    // HandlerLog
309
   },
314
   },
310
   methods: {
315
   methods: {
311
     //   获取事件数据
316
     //   获取事件数据
@@ -326,6 +331,7 @@ export default {
326
           that.model = res.data.model;
331
           that.model = res.data.model;
327
           //seimin
332
           //seimin
328
           localStorage.setItem("modelData", JSON.stringify(that.model));
333
           localStorage.setItem("modelData", JSON.stringify(that.model));
334
+          that.getProgressInfo();
329
         });
335
         });
330
     },
336
     },
331
     // 获取图片
337
     // 获取图片
@@ -354,7 +360,31 @@ export default {
354
         .then(function(res) {
360
         .then(function(res) {
355
           console.log(res.data);
361
           console.log(res.data);
356
           that.progressInfo = res.data.data;
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
       ? this.$route.params.data.id
486
       ? this.$route.params.data.id
457
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
487
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
458
     this.getParamsData();
488
     this.getParamsData();
459
-    this.getProgressInfo();
460
     this.getImgs();
489
     this.getImgs();
461
   }
490
   }
462
 };
491
 };
@@ -497,10 +526,10 @@ i.iconfont.blue {
497
     top: 0.88rem;
526
     top: 0.88rem;
498
 
527
 
499
     div {
528
     div {
500
-      width: 25%;
529
+      width: 33.33%;
501
       text-align: center;
530
       text-align: center;
502
       &.p50 {
531
       &.p50 {
503
-        width: 33.33%;
532
+        width: 49.99%;
504
       }
533
       }
505
       a {
534
       a {
506
         display: inline-block;
535
         display: inline-block;
@@ -640,10 +669,10 @@ i.iconfont.blue {
640
               .time {
669
               .time {
641
                 i {
670
                 i {
642
                   margin-left: -0.15rem;
671
                   margin-left: -0.15rem;
643
-                  &.icon-icon_weizuo {
672
+                  &.dsit-icon_weizuo {
644
                     color: #005495;
673
                     color: #005495;
645
                   }
674
                   }
646
-                  &.icon-icon_zhengzaijinx {
675
+                  &.dsit-icon_zhengzaijinx {
647
                     color: #48a843;
676
                     color: #48a843;
648
                     font-size: 0.37rem;
677
                     font-size: 0.37rem;
649
                   }
678
                   }
@@ -666,6 +695,7 @@ i.iconfont.blue {
666
               }
695
               }
667
               .text2 {
696
               .text2 {
668
                 color: #666;
697
                 color: #666;
698
+                word-break: break-all;
669
               }
699
               }
670
               p {
700
               p {
671
                 padding: 0;
701
                 padding: 0;

+ 44 - 15
src/views/processing.vue

@@ -15,7 +15,7 @@
15
               >事件信息</a
15
               >事件信息</a
16
             >
16
             >
17
           </div>
17
           </div>
18
-          <div
18
+          <!-- <div
19
             class="fl p50"
19
             class="fl p50"
20
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
20
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
21
           >
21
           >
@@ -25,7 +25,7 @@
25
               @click="toInfo('handlerLog')"
25
               @click="toInfo('handlerLog')"
26
               >处理日志</a
26
               >处理日志</a
27
             >
27
             >
28
-          </div>
28
+          </div> -->
29
           <div
29
           <div
30
             class="fl p50"
30
             class="fl p50"
31
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
31
             :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
@@ -197,7 +197,7 @@
197
               </p>
197
               </p>
198
             </div>
198
             </div>
199
           </div>
199
           </div>
200
-          <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog>
200
+          <!-- <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
201
           <div class="label" id="progress">处理进度</div>
201
           <div class="label" id="progress">处理进度</div>
202
           <div
202
           <div
203
             :class="{ progress: true, progressHide: !pro_hides }"
203
             :class="{ progress: true, progressHide: !pro_hides }"
@@ -210,11 +210,16 @@
210
                   <i
210
                   <i
211
                     :class="{
211
                     :class="{
212
                       iconfont: true,
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
                   ></i>
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
                 </div>
223
                 </div>
219
                 <div :class="{ cont: true, blue: item.endTime != '' }">
224
                 <div :class="{ cont: true, blue: item.endTime != '' }">
220
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
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
 import DatePicker from "./../components/date-picker.vue";
374
 import DatePicker from "./../components/date-picker.vue";
370
 import CubeExtendPopup from "./../components/extend-popup.vue";
375
 import CubeExtendPopup from "./../components/extend-popup.vue";
371
 import LoadIng from "./../views/loading.vue";
376
 import LoadIng from "./../views/loading.vue";
372
-import HandlerLog from "./../views/handlerLog.vue";
377
+// import HandlerLog from "./../views/handlerLog.vue";
373
 import PrompTing from "./../views/prompting.vue";
378
 import PrompTing from "./../views/prompting.vue";
374
 // import host from '../request/host'
379
 // import host from '../request/host'
375
 
380
 
@@ -799,7 +804,7 @@ export default {
799
   },
804
   },
800
   components: {
805
   components: {
801
     LoadIng,
806
     LoadIng,
802
-    HandlerLog
807
+    // HandlerLog
803
   },
808
   },
804
   methods: {
809
   methods: {
805
     //获取区域
810
     //获取区域
@@ -976,7 +981,30 @@ export default {
976
         .then(function(res) {
981
         .then(function(res) {
977
           console.log(res.data);
982
           console.log(res.data);
978
           that.progressInfo = res.data.data;
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
           localStorage.getItem("selectedCategoryTxt")
1196
           localStorage.getItem("selectedCategoryTxt")
1169
         );
1197
         );
1170
       }
1198
       }
1199
+      that.getProgressInfo();
1171
     },
1200
     },
1172
     // 事件分类
1201
     // 事件分类
1173
     showCategoryPicker() {
1202
     showCategoryPicker() {
@@ -1606,7 +1635,6 @@ export default {
1606
 
1635
 
1607
     this.action.target += this.processInstanceId;
1636
     this.action.target += this.processInstanceId;
1608
     this.getParamsData();
1637
     this.getParamsData();
1609
-    this.getProgressInfo();
1610
     this.getImgs();
1638
     this.getImgs();
1611
     // 处理方式
1639
     // 处理方式
1612
     this.getHandleCategory();
1640
     this.getHandleCategory();
@@ -1650,7 +1678,7 @@ export default {
1650
     // JsonView
1678
     // JsonView
1651
     CubeExtendPopup,
1679
     CubeExtendPopup,
1652
     LoadIng,
1680
     LoadIng,
1653
-    HandlerLog,
1681
+    // HandlerLog,
1654
     PrompTing
1682
     PrompTing
1655
   }
1683
   }
1656
 };
1684
 };
@@ -1826,10 +1854,10 @@ i.iconfont.blue {
1826
     top: 0.88rem;
1854
     top: 0.88rem;
1827
     z-index: 9;
1855
     z-index: 9;
1828
     div {
1856
     div {
1829
-      width: 25%;
1857
+      width: 33.33%;
1830
       text-align: center;
1858
       text-align: center;
1831
       &.p50 {
1859
       &.p50 {
1832
-        width: 33.33%;
1860
+        width: 49.99%;
1833
       }
1861
       }
1834
       a {
1862
       a {
1835
         display: inline-block;
1863
         display: inline-block;
@@ -1969,10 +1997,10 @@ i.iconfont.blue {
1969
               .time {
1997
               .time {
1970
                 i {
1998
                 i {
1971
                   margin-left: -0.15rem;
1999
                   margin-left: -0.15rem;
1972
-                  &.icon-icon_weizuo {
2000
+                  &.dsit-icon_weizuo {
1973
                     color: #005495;
2001
                     color: #005495;
1974
                   }
2002
                   }
1975
-                  &.icon-icon_zhengzaijinx {
2003
+                  &.dsit-icon_zhengzaijinx {
1976
                     color: #48a843;
2004
                     color: #48a843;
1977
                     font-size: 0.37rem;
2005
                     font-size: 0.37rem;
1978
                   }
2006
                   }
@@ -1995,6 +2023,7 @@ i.iconfont.blue {
1995
               }
2023
               }
1996
               .text2 {
2024
               .text2 {
1997
                 color: #666;
2025
                 color: #666;
2026
+                word-break: break-all;
1998
               }
2027
               }
1999
               p {
2028
               p {
2000
                 padding: 0;
2029
                 padding: 0;

+ 3 - 3
src/views/prompting.vue

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

+ 44 - 14
src/views/solved.vue

@@ -20,14 +20,14 @@
20
               >处理信息</a
20
               >处理信息</a
21
             >
21
             >
22
           </div>
22
           </div>
23
-          <div class="fl">
23
+          <!-- <div class="fl">
24
             <a
24
             <a
25
               :class="{ active: actives == 'handlerLog' }"
25
               :class="{ active: actives == 'handlerLog' }"
26
               href="javascript:;"
26
               href="javascript:;"
27
               @click="toInfo('handlerLog')"
27
               @click="toInfo('handlerLog')"
28
               >处理日志</a
28
               >处理日志</a
29
             >
29
             >
30
-          </div>
30
+          </div> -->
31
           <div class="fl">
31
           <div class="fl">
32
             <a
32
             <a
33
               :class="{ active: actives == 'progress' }"
33
               :class="{ active: actives == 'progress' }"
@@ -220,7 +220,7 @@
220
                 <span class="fl">转派原因</span>
220
                 <span class="fl">转派原因</span>
221
                 <span class="fr" >{{model.transferReason}}</span>
221
                 <span class="fr" >{{model.transferReason}}</span>
222
               </p> -->
222
               </p> -->
223
-          <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog>
223
+          <!-- <HandlerLog :data="model.incident.handlerLogs" id="handlerLog"></HandlerLog> -->
224
           <div class="label" id="progress">处理进度</div>
224
           <div class="label" id="progress">处理进度</div>
225
           <div
225
           <div
226
             :class="{ progress: true, progressHide: !pro_hides }"
226
             :class="{ progress: true, progressHide: !pro_hides }"
@@ -233,11 +233,16 @@
233
                   <i
233
                   <i
234
                     :class="{
234
                     :class="{
235
                       iconfont: true,
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
                   ></i>
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
                 </div>
246
                 </div>
242
                 <div :class="{ cont: true, blue: item.endTime != '' }">
247
                 <div :class="{ cont: true, blue: item.endTime != '' }">
243
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
248
                   <p class="text2" v-if="item.desc" v-html="item.desc"></p>
@@ -300,7 +305,7 @@
300
 </template>
305
 </template>
301
 <script>
306
 <script>
302
 import LoadIng from "./../views/loading.vue";
307
 import LoadIng from "./../views/loading.vue";
303
-import HandlerLog from "./../views/handlerLog.vue";
308
+// import HandlerLog from "./../views/handlerLog.vue";
304
 export default {
309
 export default {
305
   data() {
310
   data() {
306
     return {
311
     return {
@@ -336,7 +341,7 @@ export default {
336
   },
341
   },
337
   components: {
342
   components: {
338
     LoadIng,
343
     LoadIng,
339
-    HandlerLog
344
+    // HandlerLog
340
   },
345
   },
341
   methods: {
346
   methods: {
342
     //   获取事件数据
347
     //   获取事件数据
@@ -358,6 +363,7 @@ export default {
358
           that.model.msgflag = "已解决";
363
           that.model.msgflag = "已解决";
359
           //seimin
364
           //seimin
360
           localStorage.setItem("modelData", JSON.stringify(that.model));
365
           localStorage.setItem("modelData", JSON.stringify(that.model));
366
+          that.getProgressInfo();
361
         });
367
         });
362
     },
368
     },
363
     // 获取图片
369
     // 获取图片
@@ -386,7 +392,31 @@ export default {
386
         .then(function(res) {
392
         .then(function(res) {
387
           console.log(res.data);
393
           console.log(res.data);
388
           that.progressInfo = res.data.data;
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
       ? this.$route.params.data.id
557
       ? this.$route.params.data.id
528
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
558
       : JSON.parse(localStorage.getItem("modelData")).incident.id;
529
     this.getParamsData();
559
     this.getParamsData();
530
-    this.getProgressInfo();
531
     this.getImgs();
560
     this.getImgs();
532
     this.getHandlerRes();
561
     this.getHandlerRes();
533
     this.getDegree();
562
     this.getDegree();
@@ -574,10 +603,10 @@ i.iconfont {
574
     position: fixed;
603
     position: fixed;
575
     top: 0.88rem;
604
     top: 0.88rem;
576
     div {
605
     div {
577
-      width: 25%;
606
+      width: 33.33%;
578
       text-align: center;
607
       text-align: center;
579
       &.p50 {
608
       &.p50 {
580
-        width: 33.33%;
609
+        width: 49.99%;
581
       }
610
       }
582
       a {
611
       a {
583
         display: inline-block;
612
         display: inline-block;
@@ -740,10 +769,10 @@ i.iconfont {
740
               .time {
769
               .time {
741
                 i {
770
                 i {
742
                   margin-left: -0.15rem;
771
                   margin-left: -0.15rem;
743
-                  &.icon-icon_weizuo {
772
+                  &.dsit-icon_weizuo {
744
                     color: #005495;
773
                     color: #005495;
745
                   }
774
                   }
746
-                  &.icon-icon_zhengzaijinx {
775
+                  &.dsit-icon_zhengzaijinx {
747
                     color: #48a843;
776
                     color: #48a843;
748
                     font-size: 0.37rem;
777
                     font-size: 0.37rem;
749
                   }
778
                   }
@@ -766,6 +795,7 @@ i.iconfont {
766
               }
795
               }
767
               .text2 {
796
               .text2 {
768
                 color: #666;
797
                 color: #666;
798
+                word-break: break-all;
769
               }
799
               }
770
               p {
800
               p {
771
                 padding: 0;
801
                 padding: 0;