|
@ -154,10 +154,14 @@ export default { |
|
|
if (this.index == 1) { |
|
|
if (this.index == 1) { |
|
|
formData.dcEventVehicleAccident.laneOccupancy = formData.dcEventVehicleAccident.laneOccupancy.join(',') |
|
|
formData.dcEventVehicleAccident.laneOccupancy = formData.dcEventVehicleAccident.laneOccupancy.join(',') |
|
|
} |
|
|
} |
|
|
// console.log('formData',formData) |
|
|
if (this.index == 8) { |
|
|
// return; |
|
|
let endStakeMark = formData.endStakeMark; |
|
|
|
|
|
formData.dcEventAbnormalWeather.endStakeMark = (endStakeMark && endStakeMark.length > 0) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : ''; |
|
|
|
|
|
} |
|
|
|
|
|
console.log('formData',formData) |
|
|
|
|
|
return; |
|
|
let stakeMark = formData.stakeMark; |
|
|
let stakeMark = formData.stakeMark; |
|
|
let endStakeMark = formData.endStakeMark; |
|
|
|
|
|
request({ |
|
|
request({ |
|
|
url: `/dc/system/event`, |
|
|
url: `/dc/system/event`, |
|
|
method: "post", |
|
|
method: "post", |
|
@ -165,7 +169,6 @@ export default { |
|
|
...formData, |
|
|
...formData, |
|
|
eventType: Number(this.index) + 1, |
|
|
eventType: Number(this.index) + 1, |
|
|
stakeMark: (stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '', |
|
|
stakeMark: (stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '', |
|
|
endStakeMark: (endStakeMark && endStakeMark.length > 0) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : '', |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.then((result) => { |
|
|
.then((result) => { |
|
|