Commit 40f185c7 authored by 胡占生's avatar 胡占生 🇨🇳

fix: 风险 变更接口请求参数

parent 4cb6b496
Pipeline #9930 passed with stage
...@@ -806,7 +806,7 @@ export default { ...@@ -806,7 +806,7 @@ export default {
this.source = ""; this.source = "";
this.trouble = ""; this.trouble = "";
// 请求风险源 // 请求风险源
postHdSource(`/riskMain/showSourceName/${this.factor}`).then( postHdSource(`/riskMain/showSourceName?factorType=${this.factor}`).then(
(res) => { (res) => {
this.columnsSource = res.data; this.columnsSource = res.data;
} }
...@@ -823,7 +823,7 @@ export default { ...@@ -823,7 +823,7 @@ export default {
this.trouble = ""; this.trouble = "";
// 请求事故类型 // 请求事故类型
postHdType( postHdType(
`/riskMain/showaccidentType/${this.factor}/${this.source}` `/riskMain/showaccidentType?factorType=${this.factor}&sourceName=${this.source}`
).then((res) => { ).then((res) => {
this.columnsTrouble = res.data; this.columnsTrouble = res.data;
}); });
...@@ -838,7 +838,7 @@ export default { ...@@ -838,7 +838,7 @@ export default {
this.showTrouble = false; this.showTrouble = false;
// 请求三个措施 // 请求三个措施
postRiskShowMeasures( postRiskShowMeasures(
`/riskMain/showmeasures/${this.factor}/${this.source}/${this.trouble}` `/riskMain/showmeasures?factorType=${this.factor}&sourceName=${this.source}&accidentType=${this.trouble}`
).then((res) => { ).then((res) => {
this.technology = res.data[0].measuresProject; this.technology = res.data[0].measuresProject;
this.administration = res.data[0].measuresAdministration; this.administration = res.data[0].measuresAdministration;
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
duration: 0 duration: 0
}); });
postCalRiskLevel( postCalRiskLevel(
`/riskMain/calRiskLevel/${possibilityLevel}/${consequenceLevel}` `/riskMain/calRiskLevel?possibilityLevel=${possibilityLevel}&consequenceLevel=${consequenceLevel}`
) )
.then(res => { .then(res => {
this.$toast.clear(); this.$toast.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment