Commit c8cbf7c3 authored by p-wanping.song's avatar p-wanping.song

0817问题清单修复

parents a167c767 ce23758e
...@@ -474,8 +474,11 @@ export default { ...@@ -474,8 +474,11 @@ export default {
return; return;
} }
if(this.editItem){ if(this.editItem){
console.log(this.editItem) const editItem = this.layout.find(x=>x.i==this.editItem.i);
const editItem = this.layout.find(x=>x.i==this.editItem.i) const layoutData = this.layoutData.find(x=>x.position.id==editItem.i);
if(layoutData){
layoutData.name = this.roomName
}
if(editItem){ if(editItem){
editItem.name = this.roomName; editItem.name = this.roomName;
editItem.type = this.roomType; editItem.type = this.roomType;
......
...@@ -1372,7 +1372,9 @@ export default { ...@@ -1372,7 +1372,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,
} }
}); });
}, },
......
...@@ -1121,7 +1121,9 @@ export default { ...@@ -1121,7 +1121,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,
} }
}); });
}, },
......
...@@ -433,6 +433,7 @@ ...@@ -433,6 +433,7 @@
size="small" size="small"
type="info" type="info"
native-type="button" native-type="button"
@click="goResultPage"
>开始测评</van-button >开始测评</van-button
></van-col ></van-col
> >
...@@ -705,6 +706,35 @@ export default { ...@@ -705,6 +706,35 @@ export default {
} }
}, },
methods: { methods: {
// 开始评测
goResultPage() {
sessionStorage.setItem("presentForm", JSON.stringify(this.form));
/* measuresAdministrationFile: [], //管理措施图片
measuresProjectFile: [], //管理措施图片
measuresEmergencyFile: [], //管理措施图片 */
this.$store.commit('SET_PRESENT_IMG',[{
key:'uploaderImg',
value:this.uploaderImg
},{
key:'measuresAdministrationFile',
value:this.measuresAdministrationFile
},{
key:'measuresProjectFile',
value:this.measuresProjectFile
},{
key:'measuresEmergencyFile',
value:this.measuresEmergencyFile
},])
this.$router.push({
name: "resultPage",
params: {
score: this.severityScore * this.possibleScore,
possibleValue:this.possibleValue,
severityValue:this.severityValue,
}
});
},
measuresUserNameChange(e) { measuresUserNameChange(e) {
getFun( getFun(
`/risk/plan/inherent/getResponsibilityPersons?personName=${e}&projectId=${this.form.projectId}` `/risk/plan/inherent/getResponsibilityPersons?personName=${e}&projectId=${this.form.projectId}`
...@@ -926,10 +956,10 @@ export default { ...@@ -926,10 +956,10 @@ export default {
//开始测评 //开始测评
seletGrade(name) { seletGrade(name) {
this.saveFormData() this.saveFormData()
// this.getGradeList("possibility"); this.getGradeList("possibility");
// this.getGradeList("severity"); this.getGradeList("severity");
// this.showGradeDialog = true; this.showGradeDialog = true;
this.$router.push('/assess/model/step1') // this.$router.push('/assess/model/step1')
}, },
//风险模型配置 //风险模型配置
getGradeList(type) { getGradeList(type) {
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<LHeader :text="text"></LHeader> <LHeader :text="text"></LHeader>
<div class="section"> <div class="section">
<p>该次测评风险值为:</p> <p>该次测评风险值为:</p>
<div class="resultScore" :style="{ background: result.color}" > <div class="resultScore" :style="{ background: backgroundColor}" >
<p style="font-weight: bold;font-size: 20px;color: white;">{{ this.score }}</p> <p style="font-weight: bold;font-size: 20px;color: white;">{{ score }}</p>
</div> </div>
<p>本次评估结果评定为:{{ result.level }}</p> <p>本次评估结果评定为:{{ level }}</p>
<van-divider></van-divider> <van-divider></van-divider>
<van-field readonly label="所属模型:" placeholder="ls风险矩阵评估模型" /> <van-field readonly label="所属模型:" placeholder="ls风险矩阵评估模型" />
<van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" /> <van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" :value="possibleValue"/>
<van-field readonly label="后果严重程度" placeholder="轻微影响" /> <van-field readonly label="后果严重程度" placeholder="轻微影响" :value="severityValue"/>
<van-field readonly label="判定标准:" placeholder="见下图" /> <van-field readonly label="判定标准:" placeholder="见下图" />
<van-image width="90vw" height="auto" :src="require('@/assets/workbench/sst.jpg')" /> <van-image width="90vw" height="auto" :src="require('@/assets/workbench/sst.jpg')" />
</div> </div>
...@@ -34,14 +34,19 @@ import LHeader from "@/components/header.vue"; ...@@ -34,14 +34,19 @@ import LHeader from "@/components/header.vue";
return{ return{
text:'测评结果', text:'测评结果',
score:0, score:0,
result:{ result:null,
level:'', backgroundColor:'',
color:'' possibleValue:'',
} severityValue:'',
level:''
} }
}, },
created(){ created(){
this.score = this.$route.params.score-''; // this.score = this.$route.query.score-'';
const route = this.$route.params;
this.possibleValue = route.possibleValue;
this.severityValue = route.severityValue;
this.score = route.score;
this.getResult() this.getResult()
}, },
methods:{ methods:{
...@@ -74,15 +79,8 @@ import LHeader from "@/components/header.vue"; ...@@ -74,15 +79,8 @@ import LHeader from "@/components/header.vue";
history.go(-1) history.go(-1)
}, },
sureClose(){ sureClose(){
// this.$emit('',)
sessionStorage.setItem('level',this.result.level) sessionStorage.setItem('level',this.result.level)
history.go(-1) history.go(-1)
// this.$router.push({
// name:'addInherent',
// params:{
// level:this.level
// }
// })
} }
} }
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
import { getFun, postFun } from "@/service/table.js"; import { getFun, postFun } from "@/service/table.js";
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
export default { export default {
name:'resultPage', name:'modelResult',
components:{ components:{
LHeader LHeader
}, },
......
...@@ -830,7 +830,9 @@ export default { ...@@ -830,7 +830,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,
} }
}); });
}, },
......
...@@ -797,7 +797,9 @@ export default { ...@@ -797,7 +797,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,
} }
}); });
}, },
......
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