|
@@ -71,7 +71,7 @@
|
71
|
71
|
<cube-form-item :field="fields[3]"></cube-form-item>
|
72
|
72
|
<cube-form-item :field="fields[4]" class="btn_plcaeholde">
|
73
|
73
|
<cube-button @click="showCategoryPicker()">{{
|
74
|
|
- selectedCategoryTxt ? selectedCategoryTxt : "请选择事件分类"
|
|
74
|
+ selectedCategoryTxt ? selectedCategoryTxt : "请选择故障现象"
|
75
|
75
|
}}</cube-button>
|
76
|
76
|
</cube-form-item>
|
77
|
77
|
<cube-form-item
|
|
@@ -253,7 +253,7 @@ const solution = {
|
253
|
253
|
this.$emit("input", selectedVal);
|
254
|
254
|
localStorage.setItem("solution", JSON.stringify(selectedIndex));
|
255
|
255
|
},
|
256
|
|
- // 获取事件分类数据
|
|
256
|
+ // 获取故障现象数据
|
257
|
257
|
getTree() {
|
258
|
258
|
let that = this;
|
259
|
259
|
that.$http
|
|
@@ -360,7 +360,7 @@ export default {
|
360
|
360
|
address: "", //故障地点
|
361
|
361
|
requester: "", //报修科室
|
362
|
362
|
houseNumber: "", //详细地址
|
363
|
|
- description: "", //事件描述
|
|
363
|
+ description: "", //故障描述
|
364
|
364
|
// bxcode: "",
|
365
|
365
|
assetId: "", //资产
|
366
|
366
|
category: [],
|
|
@@ -379,7 +379,7 @@ export default {
|
379
|
379
|
handleUserOrGroup: false, //处理人or处理组
|
380
|
380
|
room: "" //房间号
|
381
|
381
|
},
|
382
|
|
- selectedCategoryTxt: "", //事件分类选中展示
|
|
382
|
+ selectedCategoryTxt: "", //故障现象选中展示
|
383
|
383
|
selectedPlaceTxt: "", //区域地点选中展示
|
384
|
384
|
// showPrompting:false,
|
385
|
385
|
promptingConent: "",
|
|
@@ -454,12 +454,12 @@ export default {
|
454
|
454
|
{
|
455
|
455
|
component: "button",
|
456
|
456
|
modelKey: "category",
|
457
|
|
- label: "事件分类:",
|
|
457
|
+ label: "故障现象:",
|
458
|
458
|
rules: {
|
459
|
459
|
required: true
|
460
|
460
|
}
|
461
|
461
|
// messages: {
|
462
|
|
- // required: "请选择事件分类"
|
|
462
|
+ // required: "请选择故障现象"
|
463
|
463
|
// }
|
464
|
464
|
},
|
465
|
465
|
{
|
|
@@ -490,7 +490,7 @@ export default {
|
490
|
490
|
{
|
491
|
491
|
type: "textarea",
|
492
|
492
|
modelKey: "description",
|
493
|
|
- label: "事件描述:",
|
|
493
|
+ label: "故障描述:",
|
494
|
494
|
props: {
|
495
|
495
|
placeholder: "请详细描述故障,并上传故障图片,例如:网络故障。"
|
496
|
496
|
},
|
|
@@ -779,7 +779,7 @@ export default {
|
779
|
779
|
this.model.assetId = ress1;
|
780
|
780
|
});
|
781
|
781
|
},
|
782
|
|
- // 输入事件描述
|
|
782
|
+ // 输入故障描述
|
783
|
783
|
inpTitle() {
|
784
|
784
|
this.model.title = this.incidentTitle;
|
785
|
785
|
},
|
|
@@ -1408,14 +1408,14 @@ export default {
|
1408
|
1408
|
fileSubmitted1(files) {
|
1409
|
1409
|
this.action1.data = { fileName: files.name };
|
1410
|
1410
|
},
|
1411
|
|
- // 展示事件分类选择器
|
|
1411
|
+ // 展示故障现象选择器
|
1412
|
1412
|
showCategoryPicker() {
|
1413
|
1413
|
this.categoryPicker.show();
|
1414
|
1414
|
},
|
1415
|
|
- // 选择事件分类
|
|
1415
|
+ // 选择故障现象
|
1416
|
1416
|
selectCategoryHandler(selectedVal, selectedIndex, selectedTxt) {
|
1417
|
|
- // console.log(this.initSjList, "事件分类列表");
|
1418
|
|
- // console.log(this.model.category.slice(-1)[0], "事件分类");
|
|
1417
|
+ // console.log(this.initSjList, "故障现象列表");
|
|
1418
|
+ // console.log(this.model.category.slice(-1)[0], "故障现象");
|
1419
|
1419
|
var selected = [];
|
1420
|
1420
|
selectedTxt.forEach(function(v, i) {
|
1421
|
1421
|
if (v != "") {
|
|
@@ -1508,7 +1508,7 @@ export default {
|
1508
|
1508
|
this.isShowDes = true;
|
1509
|
1509
|
}
|
1510
|
1510
|
},
|
1511
|
|
- // 事件分类
|
|
1511
|
+ // 故障现象
|
1512
|
1512
|
getIncidentcategory() {
|
1513
|
1513
|
this.loadShow = true;
|
1514
|
1514
|
var that = this;
|
|
@@ -1556,7 +1556,7 @@ export default {
|
1556
|
1556
|
|
1557
|
1557
|
that.selectData = tree;
|
1558
|
1558
|
that.categoryPicker = that.$createCascadePicker({
|
1559
|
|
- title: "事件分类选择",
|
|
1559
|
+ title: "故障现象选择",
|
1560
|
1560
|
data: that.selectData,
|
1561
|
1561
|
// selectedIndex: localStorage.getItem("category")
|
1562
|
1562
|
// ? JSON.parse(localStorage.getItem("category")).index
|
|
@@ -1595,8 +1595,8 @@ export default {
|
1595
|
1595
|
selectPlaceHandler(selectedVal, selectedIndex, selectedTxt) {
|
1596
|
1596
|
console.log(selectedVal, selectedIndex, selectedTxt);
|
1597
|
1597
|
console.log(selectedVal[0], "区域");
|
1598
|
|
- console.log(this.initSjList, "事件分类列表");
|
1599
|
|
- console.log(this.model.category.slice(-1)[0], "事件分类");
|
|
1598
|
+ console.log(this.initSjList, "故障现象列表");
|
|
1599
|
+ console.log(this.model.category.slice(-1)[0], "故障现象");
|
1600
|
1600
|
if (this.ifRoom == 1) {
|
1601
|
1601
|
this.getRoomData(selectedVal[1]);
|
1602
|
1602
|
}
|
|
@@ -1606,7 +1606,7 @@ export default {
|
1606
|
1606
|
// --------------------start---------------------
|
1607
|
1607
|
let categoryId = this.model.category.slice(-1)[0];
|
1608
|
1608
|
if (categoryId) {
|
1609
|
|
- // 选择了事件分类 liaomingming
|
|
1609
|
+ // 选择了故障现象 liaomingming
|
1610
|
1610
|
let categoryObj = this.initSjList.find(v => v.id == categoryId);
|
1611
|
1611
|
if (categoryObj) {
|
1612
|
1612
|
if (categoryObj.branchType == 1) {
|
|
@@ -1873,7 +1873,7 @@ export default {
|
1873
|
1873
|
this.getMessage();
|
1874
|
1874
|
// 事件单号
|
1875
|
1875
|
this.getsjnum();
|
1876
|
|
- // 事件分类
|
|
1876
|
+ // 故障现象
|
1877
|
1877
|
this.getIncidentcategory();
|
1878
|
1878
|
this.getAreaData();
|
1879
|
1879
|
this.getPlaceData();
|