|
|
|
@ -389,7 +389,8 @@ |
|
|
|
|
hiddenDangerList2 = []; |
|
|
|
|
describe.hdDesc = ''; |
|
|
|
|
describe.hdInfo = ''; |
|
|
|
|
">取消</view> |
|
|
|
|
">取消 |
|
|
|
|
</view> |
|
|
|
|
<view class="title">存在隐患</view> |
|
|
|
|
<view class="right" @click="investigationHandle2">确认</view> |
|
|
|
|
</view> |
|
|
|
@ -941,7 +942,7 @@ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
showInvestigationTag2(v) { |
|
|
|
|
// console.log(v, this.investigationSelectList) |
|
|
|
|
console.log('gxh查看1', v, this.investigationSelectList, this.hiddenDangerList) |
|
|
|
|
if (this.checked.includes(v.id)) { |
|
|
|
|
this.showInvestigation2 = true; |
|
|
|
|
this.showInvestigation2Item = v |
|
|
|
@ -997,6 +998,7 @@ |
|
|
|
|
this.showPicker = true |
|
|
|
|
}, |
|
|
|
|
select2(v, list, list2) { |
|
|
|
|
console.log('select2') |
|
|
|
|
list.dangerItems.forEach(item => { |
|
|
|
|
// 假设this.troubleshootingData中没有与当前item.id相同的id |
|
|
|
|
let found = false; |
|
|
|
@ -1064,6 +1066,7 @@ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
select3(v) { |
|
|
|
|
console.log('select3') |
|
|
|
|
// this.investigationSelectList.map((r) => { |
|
|
|
|
// if (r.nid == v.nid) { |
|
|
|
|
// r = v; |
|
|
|
@ -1291,15 +1294,7 @@ |
|
|
|
|
}, |
|
|
|
|
// "/hiddenDanger/highDanger/getSectionInfo", |
|
|
|
|
getBaseData(businessId) { |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getSectionInfo", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionInfo", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
for (let k in res.result) { |
|
|
|
|
if (res.result[k] == 0) { |
|
|
|
@ -1320,15 +1315,7 @@ |
|
|
|
|
this.getBaseDefaultData() |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getSectionTraffic", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionTraffic", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
this.formData = { |
|
|
|
@ -1337,15 +1324,7 @@ |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangerDisplay", { |
|
|
|
|
sid: "02", |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangerDisplay", {sid: "02", businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
for (let items of res.result) { |
|
|
|
@ -1399,42 +1378,18 @@ |
|
|
|
|
// }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangers", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangers", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.investigationList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getUserHiddenDangerList", { |
|
|
|
|
// nuserid: this.$.getData("token"), |
|
|
|
|
pcType: 2, |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getUserHiddenDangerList", {pcType: 2, businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.hiddenDangerList.push(...res.result) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getDangerItems", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getDangerItems", {nuserid: this.$.getData("token"), businessId}, "GET") |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.problemTreeSelectConfirmList = res.result; |
|
|
|
@ -1465,7 +1420,7 @@ |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200 && res.result.length != 0) { |
|
|
|
|
this.hiddenDangerList.push(...res.result) |
|
|
|
|
// this.hiddenDangerList.push(...res.result) |
|
|
|
|
console.log(this.troubleshootingData, 123) |
|
|
|
|
console.log(res.result, 321) |
|
|
|
|
|
|
|
|
@ -1861,7 +1816,7 @@ |
|
|
|
|
this.extraConfigs = extraConfigs |
|
|
|
|
this.describeArr = describe |
|
|
|
|
this.temporary = temporary |
|
|
|
|
console.log(this.extraConfigs, this.describeArr) |
|
|
|
|
console.log('describeArrdescribeArrdescribeArr', this.extraConfigs, this.describeArr) |
|
|
|
|
if (!temporary) { |
|
|
|
|
this.postSaveManualInvestigation() |
|
|
|
|
return |
|
|
|
|