63 lines
1.3 KiB
Vue
63 lines
1.3 KiB
Vue
<template>
|
|
<view class="safe-list">
|
|
<view class="list-detail">
|
|
<view class="list-item" @click="previewData(1)">
|
|
<view>问题隐患&排查记录<text class="num"></text></view>
|
|
<uni-icons2 type="arrowright"></uni-icons2>
|
|
</view>
|
|
<!-- <view class="list-item" @click="previewData(2)">
|
|
<view>排查记录<text class="num"></text></view>
|
|
<uni-icons2 type="arrowright"></uni-icons2>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props:['detailId'],
|
|
data(){
|
|
return{
|
|
|
|
}
|
|
},
|
|
onLoad() {
|
|
console.log("==============safeLis,detailIdt===============");
|
|
console.log(this.detailId);
|
|
console.log("==============safeList,detailId===============");
|
|
},
|
|
methods:{
|
|
previewData(val){
|
|
if(val == 1){
|
|
uni.navigateTo({
|
|
// url:'../safeManage/dangerList?type=5&engineeringId='+this.detailId
|
|
url:"./safeList?type=3&engineeringId=" + this.detailId
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.safe-list{
|
|
padding-top: 20rpx;
|
|
height: 500rpx;
|
|
.list-detail{
|
|
background: #fff;
|
|
padding: 0 40rpx;
|
|
.list-item{
|
|
height: 96rpx;
|
|
border-bottom: 1px solid #F6F6F6;
|
|
line-height: 92rpx;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
.num{
|
|
margin-left: 40rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|