排查处理

main
limingtao 11 months ago
parent a754c9b8b1
commit 9a691ac7fb
  1. 4
      pages/governance/index.vue
  2. 4
      pages/index/index.vue
  3. 4
      pages/investigation/index.vue
  4. 50
      pages/investigation/task.vue

@ -272,8 +272,8 @@ page {
box-shadow: 1px 1px 3px #ccc; box-shadow: 1px 1px 3px #ccc;
.trapezoidal { .trapezoidal {
position: absolute; position: absolute;
top: -4px; top: 0px;
right: 0; right: 0px;
color: #ffffff; color: #ffffff;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;

@ -331,8 +331,8 @@ page {
box-shadow: 1px 1px 3px #ccc; box-shadow: 1px 1px 3px #ccc;
.trapezoidal { .trapezoidal {
position: absolute; position: absolute;
top: -4px; top: 0px;
right: 0; right: 0px;
color: #ffffff; color: #ffffff;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;

@ -275,8 +275,8 @@
box-shadow: 1px 1px 3px #ccc; box-shadow: 1px 1px 3px #ccc;
.trapezoidal { .trapezoidal {
position: absolute; position: absolute;
top: -4px; top: -0px;
right: 0; right: 4px;
color: #ffffff; color: #ffffff;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;

@ -892,15 +892,15 @@
} }
}, },
submit(temporary) { submit(temporary) {
console.log(this.formData); // console.log(this.formData);
console.log(this.investigationSelectList); // console.log(this.investigationSelectList);
console.log({ // console.log({
...this.formData, // ...this.formData,
businessId: this.businessId, // businessId: this.businessId,
extraConfigs: extraConfigs, // extraConfigs: extraConfigs,
describe: this.hiddenDangerList, // describe: this.hiddenDangerList,
temporary, // temporary,
}); // });
let extraConfigs = []; let extraConfigs = [];
this.investigationSelectList.map((r) => { this.investigationSelectList.map((r) => {
r.extraConfigs.map((s) => { r.extraConfigs.map((s) => {
@ -914,13 +914,33 @@
extraConfigs.push(s); 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 this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/saveManualInvestigation", { "/hiddenDanger/highDanger/saveManualInvestigation", {
...this.formData, ...this.formData,
businessId: this.businessId, businessId: this.businessId,
extraConfigs: extraConfigs, extraConfigs: extraConfigs,
describe: this.hiddenDangerList, describe: describe,
temporary, temporary,
}, },
"POST" "POST"
@ -929,11 +949,11 @@
console.log(res); console.log(res);
if (res.code === 200) { if (res.code === 200) {
this.$.toast("保存成功"); this.$.toast("保存成功");
setTimeout(() => { // setTimeout(() => {
uni.navigateBack({ // uni.navigateBack({
delta: 1, // 1 // delta: 1, // 1
}); // });
}, 1000); // }, 1000);
// this.data = res.result; // this.data = res.result;
// this.rname = this.data[0].name; // this.rname = this.data[0].name;

Loading…
Cancel
Save