|
|
|
@ -385,11 +385,12 @@ |
|
|
|
|
<u-popup :show="showProblem" @close="showProblem = false"> |
|
|
|
|
<view class="custom-pop-head"> |
|
|
|
|
<view class="left" @click=" |
|
|
|
|
showProblem = false; |
|
|
|
|
hiddenDangerList2 = []; |
|
|
|
|
describe.hdDesc = ''; |
|
|
|
|
describe.hdInfo = ''; |
|
|
|
|
">取消</view> |
|
|
|
|
showProblem = false; |
|
|
|
|
hiddenDangerList2 = []; |
|
|
|
|
describe.hdDesc = ''; |
|
|
|
|
describe.hdInfo = ''; |
|
|
|
|
">取消 |
|
|
|
|
</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,155 +1294,107 @@ |
|
|
|
|
}, |
|
|
|
|
// "/hiddenDanger/highDanger/getSectionInfo", |
|
|
|
|
getBaseData(businessId) { |
|
|
|
|
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) { |
|
|
|
|
res.result[k] = "" |
|
|
|
|
} |
|
|
|
|
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) { |
|
|
|
|
res.result[k] = "" |
|
|
|
|
} |
|
|
|
|
this.formData = { |
|
|
|
|
...this.formData, |
|
|
|
|
...res.result |
|
|
|
|
}; |
|
|
|
|
console.log('this.columnsdlPicker', this.columnsdlPicker) |
|
|
|
|
this.columnsdlPicker[0]?.forEach(item => { |
|
|
|
|
if(item.enumvalue == this.formData.roadType) { |
|
|
|
|
this.$set(this.formData, 'roadTypeName', item.enumName) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.getStreetCommunityByXq() |
|
|
|
|
this.getBaseDefaultData() |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getSectionTraffic", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
this.formData = { |
|
|
|
|
...this.formData, |
|
|
|
|
...res.result |
|
|
|
|
}; |
|
|
|
|
this.formData = { |
|
|
|
|
...this.formData, |
|
|
|
|
...res.result |
|
|
|
|
}; |
|
|
|
|
console.log('this.columnsdlPicker', this.columnsdlPicker) |
|
|
|
|
this.columnsdlPicker[0]?.forEach(item => { |
|
|
|
|
if(item.enumvalue == this.formData.roadType) { |
|
|
|
|
this.$set(this.formData, 'roadTypeName', item.enumName) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.getStreetCommunityByXq() |
|
|
|
|
this.getBaseDefaultData() |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionTraffic", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
this.formData = { |
|
|
|
|
...this.formData, |
|
|
|
|
...res.result |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangerDisplay", {sid: "02", businessId}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
for (let items of res.result) { |
|
|
|
|
for (let item of items.dangerItems) { |
|
|
|
|
item.nid = items.nid |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangerDisplay", { |
|
|
|
|
sid: "02", |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
for (let items of res.result) { |
|
|
|
|
for (let item of items.dangerItems) { |
|
|
|
|
item.nid = items.nid |
|
|
|
|
} |
|
|
|
|
// console.log(res.result,11111) |
|
|
|
|
this.investigationSelectList = res.result; |
|
|
|
|
this.investigationSelectList.map((r) => { |
|
|
|
|
this.troubleshootingData = [...this.troubleshootingData, ...r.dangerItems] |
|
|
|
|
}); |
|
|
|
|
console.log('this.troubleshootingData', this.troubleshootingData) |
|
|
|
|
// console.log(this.troubleshootingData, 11111) |
|
|
|
|
this.checked = this.troubleshootingData.map(r => { |
|
|
|
|
if (r.checked == 1) { |
|
|
|
|
return r.id |
|
|
|
|
} |
|
|
|
|
// console.log(res.result,11111) |
|
|
|
|
this.investigationSelectList = res.result; |
|
|
|
|
this.investigationSelectList.map((r) => { |
|
|
|
|
this.troubleshootingData = [...this.troubleshootingData, ...r.dangerItems] |
|
|
|
|
}); |
|
|
|
|
console.log('this.troubleshootingData', this.troubleshootingData) |
|
|
|
|
// console.log(this.troubleshootingData, 11111) |
|
|
|
|
this.checked = this.troubleshootingData.map(r => { |
|
|
|
|
if (r.checked == 1) { |
|
|
|
|
return r.id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.checked = this.checked.filter(item => item !== undefined); |
|
|
|
|
for (let i in this.troubleshootingData) { |
|
|
|
|
if (this.troubleshootingData[i].checked == 1) { |
|
|
|
|
// alert(111) |
|
|
|
|
|
|
|
|
|
this.initTroubleshootingData(this.troubleshootingData[i].id, i) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.checked = this.checked.filter(item => item !== undefined); |
|
|
|
|
for (let i in this.troubleshootingData) { |
|
|
|
|
if (this.troubleshootingData[i].checked == 1) { |
|
|
|
|
// alert(111) |
|
|
|
|
|
|
|
|
|
this.initTroubleshootingData(this.troubleshootingData[i].id, i) |
|
|
|
|
} |
|
|
|
|
this.initCheckedSelect() |
|
|
|
|
// console.log(this.troubleshootingData) |
|
|
|
|
// this.$request |
|
|
|
|
// .globalRequest( |
|
|
|
|
// "/hiddenDanger/highDanger/getImportDangerDisplayDetail", { |
|
|
|
|
// nuserid: this.$.getData("token"), |
|
|
|
|
// businessId, |
|
|
|
|
// dangerId: '26' |
|
|
|
|
// }, |
|
|
|
|
// "GET" |
|
|
|
|
// ) |
|
|
|
|
// .then((res) => { |
|
|
|
|
// if (res.code === 200) { |
|
|
|
|
// this.investigationSelectList.map((r) => { |
|
|
|
|
// r.extraConfigs = []; |
|
|
|
|
// res.result.map((m) => { |
|
|
|
|
// if (r.nid == m.scenesId) { |
|
|
|
|
// r.extraConfigs.push(m); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
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) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.hiddenDangerList.push(...res.result) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getDangerItems", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.problemTreeSelectConfirmList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.initCheckedSelect() |
|
|
|
|
// console.log(this.troubleshootingData) |
|
|
|
|
// this.$request |
|
|
|
|
// .globalRequest( |
|
|
|
|
// "/hiddenDanger/highDanger/getImportDangerDisplayDetail", { |
|
|
|
|
// nuserid: this.$.getData("token"), |
|
|
|
|
// businessId, |
|
|
|
|
// dangerId: '26' |
|
|
|
|
// }, |
|
|
|
|
// "GET" |
|
|
|
|
// ) |
|
|
|
|
// .then((res) => { |
|
|
|
|
// if (res.code === 200) { |
|
|
|
|
// this.investigationSelectList.map((r) => { |
|
|
|
|
// r.extraConfigs = []; |
|
|
|
|
// res.result.map((m) => { |
|
|
|
|
// if (r.nid == m.scenesId) { |
|
|
|
|
// r.extraConfigs.push(m); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
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", {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") |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.problemTreeSelectConfirmList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleSelectProblem(item, index) { |
|
|
|
|
// this.problemTreeSelectConfirmList.push(item) |
|
|
|
@ -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 |
|
|
|
|