|
|
|
@ -892,15 +892,15 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
submit(temporary) { |
|
|
|
|
console.log(this.formData); |
|
|
|
|
console.log(this.investigationSelectList); |
|
|
|
|
console.log({ |
|
|
|
|
...this.formData, |
|
|
|
|
businessId: this.businessId, |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe: this.hiddenDangerList, |
|
|
|
|
temporary, |
|
|
|
|
}); |
|
|
|
|
// console.log(this.formData); |
|
|
|
|
// console.log(this.investigationSelectList); |
|
|
|
|
// console.log({ |
|
|
|
|
// ...this.formData, |
|
|
|
|
// businessId: this.businessId, |
|
|
|
|
// extraConfigs: extraConfigs, |
|
|
|
|
// describe: this.hiddenDangerList, |
|
|
|
|
// temporary, |
|
|
|
|
// }); |
|
|
|
|
let extraConfigs = []; |
|
|
|
|
this.investigationSelectList.map((r) => { |
|
|
|
|
r.extraConfigs.map((s) => { |
|
|
|
@ -914,13 +914,33 @@ |
|
|
|
|
extraConfigs.push(s); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
let describe = JSON.parse(JSON.stringify(this.hiddenDangerList)) |
|
|
|
|
try { |
|
|
|
|
for (let item of describe) { |
|
|
|
|
if (item.nid) { |
|
|
|
|
delete item.nid |
|
|
|
|
} |
|
|
|
|
if (item.businessId) { |
|
|
|
|
delete item.businessId |
|
|
|
|
} |
|
|
|
|
if (item.pcCount||item.pcCount==null) { |
|
|
|
|
delete item.pcCount |
|
|
|
|
} |
|
|
|
|
if (item.dangerProblem) { |
|
|
|
|
delete item.dangerProblem |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
//TODO handle the exception |
|
|
|
|
} |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/saveManualInvestigation", { |
|
|
|
|
...this.formData, |
|
|
|
|
businessId: this.businessId, |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe: this.hiddenDangerList, |
|
|
|
|
describe: describe, |
|
|
|
|
temporary, |
|
|
|
|
}, |
|
|
|
|
"POST" |
|
|
|
@ -929,11 +949,11 @@ |
|
|
|
|
console.log(res); |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.$.toast("保存成功"); |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta: 1, // 默认值是1,表示返回的页面层数 |
|
|
|
|
}); |
|
|
|
|
}, 1000); |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// uni.navigateBack({ |
|
|
|
|
// delta: 1, // 默认值是1,表示返回的页面层数 |
|
|
|
|
// }); |
|
|
|
|
// }, 1000); |
|
|
|
|
|
|
|
|
|
// this.data = res.result; |
|
|
|
|
// this.rname = this.data[0].name; |
|
|
|
|