Commit b3566898 authored by 13841799530's avatar 13841799530

隐患级别

解润东20220518
parent 8e2df505
Pipeline #8367 passed with stage
in 5 minutes and 4 seconds
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<span class="con_title">日查</span> <span class="con_title">日查</span>
<span>&nbsp;&nbsp;制度、规程、方案</span> <span>&nbsp;&nbsp;制度、规程、方案</span>
</van-col>--> </van-col>-->
<van-col span="24" class="con_type"> <van-col span="12" class="con_type">
<van-popover <van-popover
v-model="showPopoverFlag2[index]" v-model="showPopoverFlag2[index]"
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<template #reference>{{item.postName.length>10?item.postName.substring(0,10)+'...':item.postName}}</template> <template #reference>{{item.postName.length>10?item.postName.substring(0,10)+'...':item.postName}}</template>
</van-popover> </van-popover>
</van-col> </van-col>
<van-col span="12" class="cont-end">{{item.hdLev|hdLev}}</van-col>
</van-row> </van-row>
<van-row gutter> <van-row gutter>
<van-col span="24">{{item.hdName}}</van-col> <van-col span="24">{{item.hdName}}</van-col>
...@@ -141,6 +142,19 @@ export default { ...@@ -141,6 +142,19 @@ export default {
showPopoverFlag2:[] showPopoverFlag2:[]
}; };
}, },
filters:{
hdLev(val){
if(val=='S'){
return '重大隐患'
}else if(val=='A'){
return '严重隐患'
}else if(val=='B'){
return '较大隐患'
}else{
return '危险隐患'
}
}
},
mounted() { mounted() {
if (this.$route.query.id) { if (this.$route.query.id) {
this.id = this.$route.query.id; this.id = this.$route.query.id;
...@@ -376,6 +390,12 @@ export default { ...@@ -376,6 +390,12 @@ export default {
color: #05a7f0; color: #05a7f0;
padding-right: 10px; padding-right: 10px;
} }
.cont-end{
display: flex;
justify-content: flex-end;
color: #05a7f0;
padding-right: 12px;
}
} }
.con_right { .con_right {
display: flex; display: flex;
......
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