|
@@ -20,6 +20,16 @@
|
20
|
20
|
:class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
|
21
|
21
|
>
|
22
|
22
|
<a
|
|
23
|
+ :class="{ active: actives == 'handlerLog' }"
|
|
24
|
+ href="javascript:;"
|
|
25
|
+ @click="toInfo('handlerLog')"
|
|
26
|
+ >处理日志</a>
|
|
27
|
+ </div>
|
|
28
|
+ <div
|
|
29
|
+ class="fl"
|
|
30
|
+ :class="{ p50: modelData.incident.handlerUser.id != loginUser.id }"
|
|
31
|
+ >
|
|
32
|
+ <a
|
23
|
33
|
:class="{ active: actives == 'progress' }"
|
24
|
34
|
href="javascript:;"
|
25
|
35
|
@click="toInfo('progress')"
|
|
@@ -202,7 +212,7 @@
|
202
|
212
|
</p>
|
203
|
213
|
</div>
|
204
|
214
|
</div>
|
205
|
|
-
|
|
215
|
+ <HandlerLog :data="modelData.incident.handlerLogs" id="handlerLog"></HandlerLog>
|
206
|
216
|
<div class="label" id="progress">处理进度</div>
|
207
|
217
|
<div
|
208
|
218
|
:class="{ progress: true, progressHide: !pro_hides }"
|
|
@@ -292,6 +302,7 @@
|
292
|
302
|
>
|
293
|
303
|
</div>
|
294
|
304
|
</cube-form-item>
|
|
305
|
+
|
295
|
306
|
<div class="label formLabel" v-if="order == 1">
|
296
|
307
|
报修图片
|
297
|
308
|
<span>(最多可上传3张JPG或PNG,每张不能超过10M)</span>
|
|
@@ -354,6 +365,19 @@
|
354
|
365
|
:field="fields[9]"
|
355
|
366
|
v-if="order == 3"
|
356
|
367
|
></cube-form-item>
|
|
368
|
+ <cube-form-item
|
|
369
|
+ :field="fields[16]"
|
|
370
|
+ class="incidentTitle"
|
|
371
|
+ >
|
|
372
|
+ <div class="titleRefer">
|
|
373
|
+ <textarea
|
|
374
|
+ style="margin-top:0.1rem;width:100%;"
|
|
375
|
+ class="titleTxtArea fl"
|
|
376
|
+ placeholder="请输入处理日志"
|
|
377
|
+ v-model="handlerLog"
|
|
378
|
+ ></textarea>
|
|
379
|
+ </div>
|
|
380
|
+ </cube-form-item>
|
357
|
381
|
</cube-form-group>
|
358
|
382
|
<cube-form-group class="sub">
|
359
|
383
|
<cube-button type="submit" @click="subVali()"
|
|
@@ -380,6 +404,7 @@ import DatePicker from "./../components/date-picker.vue";
|
380
|
404
|
import CubeExtendPopup from "./../components/extend-popup.vue";
|
381
|
405
|
import LoadIng from "./../views/loading.vue";
|
382
|
406
|
import PrompTing from "./../views/prompting.vue";
|
|
407
|
+import HandlerLog from "./../views/handlerLog.vue";
|
383
|
408
|
// import host from '../request/host'
|
384
|
409
|
|
385
|
410
|
// 知识库类型
|
|
@@ -516,6 +541,7 @@ export default {
|
516
|
541
|
incident: {}
|
517
|
542
|
}, //上传的model
|
518
|
543
|
incidentTitle: "", //处理方案
|
|
544
|
+ handlerLog: "", //处理日志
|
519
|
545
|
referenceInfo: {}, //引用信息
|
520
|
546
|
selectedCategoryTxt: "", //事件分类选中展示
|
521
|
547
|
selectedAreaId: "", //区域选中id--seimin
|
|
@@ -794,6 +820,18 @@ export default {
|
794
|
820
|
rules: {
|
795
|
821
|
required: true
|
796
|
822
|
}
|
|
823
|
+ },
|
|
824
|
+ {
|
|
825
|
+ type: "textarea",
|
|
826
|
+ modelKey: "handlerLog",
|
|
827
|
+ label: "处理日志:",
|
|
828
|
+ props: {
|
|
829
|
+ placeholder: "请填写处理日志"
|
|
830
|
+ },
|
|
831
|
+ rules: {
|
|
832
|
+ required: false
|
|
833
|
+ },
|
|
834
|
+ debounce: 100
|
797
|
835
|
}
|
798
|
836
|
]
|
799
|
837
|
};
|
|
@@ -807,7 +845,8 @@ export default {
|
807
|
845
|
}
|
808
|
846
|
},
|
809
|
847
|
components: {
|
810
|
|
- LoadIng
|
|
848
|
+ LoadIng,
|
|
849
|
+ HandlerLog
|
811
|
850
|
},
|
812
|
851
|
methods: {
|
813
|
852
|
//获取区域
|
|
@@ -1427,24 +1466,8 @@ export default {
|
1427
|
1466
|
params: { data: that.model.handleDescription }
|
1428
|
1467
|
});
|
1429
|
1468
|
},
|
1430
|
|
-
|
1431
|
|
- // 提交
|
1432
|
|
- submitHandler() {
|
1433
|
|
- var that = this;
|
1434
|
|
-
|
1435
|
|
- that.setLocalStroageData();
|
1436
|
|
- // that.modelData.incident.place = {
|
1437
|
|
- // area:{
|
1438
|
|
- // id:this.selectedAreaId,
|
1439
|
|
- // area:this.selectedAreaName
|
1440
|
|
- // },
|
1441
|
|
- // id:this.selectedPlaceId,
|
1442
|
|
- // place:this.selectedPlaceName
|
1443
|
|
- // };//增加区域地点
|
1444
|
|
- console.log(that.model, 11111);
|
1445
|
|
- // console.log(this.selectedPlaceId,this.selectedAreaId,8888);//2020年4月25日16:12:55
|
1446
|
|
- that.model.fileUrl = "url";
|
1447
|
|
- that.loadShow = true;
|
|
1469
|
+ basePost(){
|
|
1470
|
+ let that = this;
|
1448
|
1471
|
if (this.order == 5) {
|
1449
|
1472
|
that.$http
|
1450
|
1473
|
.post(
|
|
@@ -1556,6 +1579,37 @@ export default {
|
1556
|
1579
|
}
|
1557
|
1580
|
});
|
1558
|
1581
|
}
|
|
1582
|
+ },
|
|
1583
|
+ // 提交
|
|
1584
|
+ submitHandler() {
|
|
1585
|
+ var that = this;
|
|
1586
|
+
|
|
1587
|
+ that.setLocalStroageData();
|
|
1588
|
+ // that.modelData.incident.place = {
|
|
1589
|
+ // area:{
|
|
1590
|
+ // id:this.selectedAreaId,
|
|
1591
|
+ // area:this.selectedAreaName
|
|
1592
|
+ // },
|
|
1593
|
+ // id:this.selectedPlaceId,
|
|
1594
|
+ // place:this.selectedPlaceName
|
|
1595
|
+ // };//增加区域地点
|
|
1596
|
+ console.log(that.model,that.modelData, 11111);
|
|
1597
|
+ // console.log(this.selectedPlaceId,this.selectedAreaId,8888);//2020年4月25日16:12:55
|
|
1598
|
+ that.model.fileUrl = "url";
|
|
1599
|
+ that.loadShow = true;
|
|
1600
|
+ //填写了处理日志,并且是处理中状态
|
|
1601
|
+ if(that.handlerLog&&that.handlerLog.trim()&&that.modelData.incident.state.value == 'handler'){
|
|
1602
|
+ that.$http
|
|
1603
|
+ .post(
|
|
1604
|
+ "service/bpm/data/addData/operationLog",
|
|
1605
|
+ {operationLog:{opType:'handlerLog',opValue:that.handlerLog,extra1:that.modelData.incident.id}}
|
|
1606
|
+ )
|
|
1607
|
+ .then(function(result1) {
|
|
1608
|
+ that.basePost();
|
|
1609
|
+ })
|
|
1610
|
+ }else{
|
|
1611
|
+ that.basePost();
|
|
1612
|
+ }
|
1559
|
1613
|
event.preventDefault();
|
1560
|
1614
|
},
|
1561
|
1615
|
validateHandler(result) {
|
|
@@ -1658,7 +1712,8 @@ export default {
|
1658
|
1712
|
// JsonView
|
1659
|
1713
|
CubeExtendPopup,
|
1660
|
1714
|
LoadIng,
|
1661
|
|
- PrompTing
|
|
1715
|
+ PrompTing,
|
|
1716
|
+ HandlerLog
|
1662
|
1717
|
}
|
1663
|
1718
|
};
|
1664
|
1719
|
</script>
|
|
@@ -1833,10 +1888,10 @@ i.iconfont.blue {
|
1833
|
1888
|
top: 0.88rem;
|
1834
|
1889
|
z-index: 9;
|
1835
|
1890
|
div {
|
1836
|
|
- width: 33.33%;
|
|
1891
|
+ width: 25%;
|
1837
|
1892
|
text-align: center;
|
1838
|
1893
|
&.p50 {
|
1839
|
|
- width: 49.99%;
|
|
1894
|
+ width: 33.33%;
|
1840
|
1895
|
}
|
1841
|
1896
|
a {
|
1842
|
1897
|
display: inline-block;
|