|
@ -88,7 +88,7 @@ export default { |
|
|
this.roads.push({ key: it.id, label: it.roadName }) |
|
|
this.roads.push({ key: it.id, label: it.roadName }) |
|
|
}) |
|
|
}) |
|
|
}).catch((err) => { |
|
|
}).catch((err) => { |
|
|
Message.error("查询失败", err); |
|
|
Message.error("查询失败4", err); |
|
|
}), |
|
|
}), |
|
|
//方向字典 |
|
|
//方向字典 |
|
|
request({ |
|
|
request({ |
|
@ -100,7 +100,7 @@ export default { |
|
|
this.direction.push({ key: it.dictValue, label: it.dictLabel }) |
|
|
this.direction.push({ key: it.dictValue, label: it.dictLabel }) |
|
|
}) |
|
|
}) |
|
|
}).catch((err) => { |
|
|
}).catch((err) => { |
|
|
Message.error("查询失败", err); |
|
|
Message.error("查询失败5", err); |
|
|
}), |
|
|
}), |
|
|
//路网设施 1 收费站 2 桥梁 3 互通立交 4 枢纽立交 5 隧道 6 服务区 |
|
|
//路网设施 1 收费站 2 桥梁 3 互通立交 4 枢纽立交 5 隧道 6 服务区 |
|
|
request({ |
|
|
request({ |
|
@ -108,9 +108,10 @@ export default { |
|
|
method: "get" |
|
|
method: "get" |
|
|
}).then((result) => { |
|
|
}).then((result) => { |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
result.data.forEach(it => this.lwss.push({ key: it.id, label: it.facilityName, type: facilityType })) |
|
|
result.data.forEach(it => this.lwss.push({ key: it.id, label: it.facilityName, type: it.facilityType })) |
|
|
}).catch((err) => { |
|
|
}).catch((err) => { |
|
|
Message.error("查询失败", err); |
|
|
console.log('err', err) |
|
|
|
|
|
Message.error("查询失败6", err); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
]) |
|
|
]) |
|
@ -148,9 +149,15 @@ export default { |
|
|
if (this.index == 0 || this.index == 1) { |
|
|
if (this.index == 0 || this.index == 1) { |
|
|
formData.lang = formData.lang.join(',') |
|
|
formData.lang = formData.lang.join(',') |
|
|
} |
|
|
} |
|
|
if (this.index == 9) { |
|
|
if (formData.endStakeMark) { |
|
|
let endStakeMark = formData.endStakeMark; |
|
|
let endStakeMark = formData.endStakeMark; |
|
|
formData.dcEventAbnormalWeather.endStakeMark = (endStakeMark && endStakeMark.length > 0) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : ''; |
|
|
let strMark = (endStakeMark && endStakeMark.length > 0) ? ('K' + endStakeMark[0] + '+' + endStakeMark[1]) : ''; |
|
|
|
|
|
if (this.index == 3) { |
|
|
|
|
|
formData.dcEventTrafficCongestion.endStakeMark = strMark; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.index == 9) { |
|
|
|
|
|
formData.dcEventAbnormalWeather.endStakeMark = strMark; |
|
|
|
|
|
} |
|
|
formData.endStakeMark = ''; |
|
|
formData.endStakeMark = ''; |
|
|
} |
|
|
} |
|
|
// console.log('formData',formData) |
|
|
// console.log('formData',formData) |
|
@ -163,19 +170,17 @@ export default { |
|
|
data: { |
|
|
data: { |
|
|
...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 && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', |
|
|
} |
|
|
} |
|
|
|
|
|
}).then((result) => { |
|
|
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
|
|
Message.success("提交成功"); |
|
|
|
|
|
this.modelVisible = false; |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
Message.error("提交失败"); |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.submitting = false; |
|
|
}) |
|
|
}) |
|
|
.then((result) => { |
|
|
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
|
|
Message.success("提交成功"); |
|
|
|
|
|
this.modelVisible = false; |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
Message.error("提交失败"); |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.submitting = false; |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|