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