Commit 93f5d01a authored by wei's avatar wei

kk

parent d582e9e9
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div style="display: flex;"> <div style="display: flex;">
<van-field readonly required name="roomName" :value="form.roomName" label="所属房间" placeholder="请输入" <van-field readonly required name="roomName" :value="form.roomName" label="所属房间" placeholder="请输入"
@click="seletRoom('room')" :rules="[{ required: true, message: '所属房间不能为空' }]" /> @click="seletRoom('room')" :rules="[{ required: true, message: '所属房间不能为空' }]" />
<van-button icon="plus" type="info" /> <van-button style="color: #cccc;background-color: #f0f1f5;" icon="plus" type="info" />
</div> </div>
<van-field required clickable name="name" v-model="form.name" label="风险源名称" placeholder="请输入" <van-field required clickable name="name" v-model="form.name" label="风险源名称" placeholder="请输入"
...@@ -771,9 +771,5 @@ export default { ...@@ -771,9 +771,5 @@ export default {
padding: 10px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
.van-button--info {
color: #cccc;
background-color: #f0f1f5;
border: 0.02667rem solid #f0f1f5;
}
</style> </style>
...@@ -157,7 +157,47 @@ ...@@ -157,7 +157,47 @@
</van-form> </van-form>
</van-tab> </van-tab>
<van-tab title="风险清单"> <van-tab title="风险清单">
<!-- <van-row v-for="item in riskList" :key="item.id">
<van-col span="24">
{{ item.name }}
</van-col>
</van-row> -->
<van-cell-group
inset
v-for="(item, index) in riskList"
:key="index"
>
<div style="font-size: 0.45rem;padding: 5px 0;">
{{ item.title }}
</div>
<van-row gutter="">
<van-col span="17">
<van-row gutter="">
<van-col span="9">风险名称:</van-col>
<van-col span="15">{{ item.name }}</van-col>
</van-row>
</van-col>
<van-col span="7">
<van-row
:style="{
color: '#03b615'
}"
>
{{ item.state }}
</van-row>
</van-col>
<van-col span="7">
<van-row
:style="{
color: '#03b615'
}"
>
<van-button icon="plus" @click="goColorDetail"></van-button>
</van-row>
</van-col>
</van-row>
</van-cell-group>
</van-tab> </van-tab>
<van-tab title="审核记录"> <van-tab title="审核记录">
<div class="journal-wrap"> <div class="journal-wrap">
...@@ -296,7 +336,8 @@ export default { ...@@ -296,7 +336,8 @@ export default {
active: 0, active: 0,
phase: 1, phase: 1,
form: {}, form: {},
tabs: [] tabs: [],
riskList:[],
}; };
}, },
created() { created() {
...@@ -304,6 +345,7 @@ export default { ...@@ -304,6 +345,7 @@ export default {
var buildingId = var buildingId =
this.$route.params.buildingId || sessionStorage.getItem("buildingId"); this.$route.params.buildingId || sessionStorage.getItem("buildingId");
this.postList(planId, buildingId); this.postList(planId, buildingId);
this.getRiskTaskList(planId, buildingId)
}, },
methods: { methods: {
timestampToTimes(time) { timestampToTimes(time) {
...@@ -327,6 +369,13 @@ export default { ...@@ -327,6 +369,13 @@ export default {
} }
}); });
}, },
//风险清单列表
getRiskTaskList(planId, buildingId){
getFun(`/risk/plan/inherent/list/${planId}/${buildingId}`).then(res=>{
console.log(res.data,'lll')
this.riskList = res.data
})
},
postList(id, buildingId) { postList(id, buildingId) {
console.log(buildingId, "123"); console.log(buildingId, "123");
this.$toast.loading({ this.$toast.loading({
...@@ -380,7 +429,19 @@ export default { ...@@ -380,7 +429,19 @@ export default {
} }
}); });
this.showIndex = null; this.showIndex = null;
} },
//固定资产
goColorDetail(){
// 楼层id: floorId
// 是否查看 : isView: true/false (true:查看,false:添加)
this.$router.push({
name:"riskView ",
params:{
floorId:1,
isView:true
}
})
},
} }
}; };
</script> </script>
......
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