Loading src/views/riskProject/add/addCurrent.vue +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1363,7 +1363,9 @@ export default { this.$router.push({ this.$router.push({ name: "resultPage", name: "resultPage", params: { params: { score: this.severityScore * this.possibleScore score: this.severityScore * this.possibleScore, possibleValue:this.possibleValue, severityValue:this.severityValue, } } }); }); }, }, Loading src/views/riskProject/add/resultPage.vue +7 −7 Original line number Original line Diff line number Diff line Loading @@ -37,15 +37,16 @@ import LHeader from "@/components/header.vue"; result:null, result:null, backgroundColor:'', backgroundColor:'', possibleValue:'', possibleValue:'', severityValue:'' severityValue:'', level:'' } } }, }, created(){ created(){ // this.score = this.$route.query.score-''; // this.score = this.$route.query.score-''; const route = this.$route.params; const route = this.$route.params; console.log(route); this.possibleValue = route.possibleValue; this.possibleValue = route.possibleValue; this.severityValue = route.severityValue this.severityValue = route.severityValue; this.score = route.score; this.getResult() this.getResult() }, }, methods:{ methods:{ Loading Loading @@ -85,16 +86,15 @@ import LHeader from "@/components/header.vue"; case "较小风险": case "较小风险": return "#0091EA"; return "#0091EA"; case "较大风险": case "较大风险": return "FF9800"; return "#FF9800"; case "重大风险": case "重大风险": return "FF4433"; return "#FF4433"; default: default: return "orange" return "orange" } } } } getFun(`/risk/plan/matrix/score/${this.$route.params.score}`).then(res=>{ getFun(`/risk/plan/matrix/score/${this.$route.params.score}`).then(res=>{ this.level = res.data.level this.level = res.data.level this.score = res.data.max this.backgroundColor=bgColor() this.backgroundColor=bgColor() }) }) }, }, Loading Loading
src/views/riskProject/add/addCurrent.vue +3 −1 Original line number Original line Diff line number Diff line Loading @@ -1363,7 +1363,9 @@ export default { this.$router.push({ this.$router.push({ name: "resultPage", name: "resultPage", params: { params: { score: this.severityScore * this.possibleScore score: this.severityScore * this.possibleScore, possibleValue:this.possibleValue, severityValue:this.severityValue, } } }); }); }, }, Loading
src/views/riskProject/add/resultPage.vue +7 −7 Original line number Original line Diff line number Diff line Loading @@ -37,15 +37,16 @@ import LHeader from "@/components/header.vue"; result:null, result:null, backgroundColor:'', backgroundColor:'', possibleValue:'', possibleValue:'', severityValue:'' severityValue:'', level:'' } } }, }, created(){ created(){ // this.score = this.$route.query.score-''; // this.score = this.$route.query.score-''; const route = this.$route.params; const route = this.$route.params; console.log(route); this.possibleValue = route.possibleValue; this.possibleValue = route.possibleValue; this.severityValue = route.severityValue this.severityValue = route.severityValue; this.score = route.score; this.getResult() this.getResult() }, }, methods:{ methods:{ Loading Loading @@ -85,16 +86,15 @@ import LHeader from "@/components/header.vue"; case "较小风险": case "较小风险": return "#0091EA"; return "#0091EA"; case "较大风险": case "较大风险": return "FF9800"; return "#FF9800"; case "重大风险": case "重大风险": return "FF4433"; return "#FF4433"; default: default: return "orange" return "orange" } } } } getFun(`/risk/plan/matrix/score/${this.$route.params.score}`).then(res=>{ getFun(`/risk/plan/matrix/score/${this.$route.params.score}`).then(res=>{ this.level = res.data.level this.level = res.data.level this.score = res.data.max this.backgroundColor=bgColor() this.backgroundColor=bgColor() }) }) }, }, Loading