<template>
	<view class="safe-list">
		<view class="list-detail">
			<view class="list-item" @click="previewData(1)">
				<view>问题隐患<text class="num"></text></view>
				<uni-icons type="arrowright"></uni-icons>
			</view>
			<view class="list-item" @click="previewData(2)">
				<view>排查记录<text class="num"></text></view>
				<uni-icons type="arrowright"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['detailId'],
		data(){
			return{
				
			}
		},
		methods:{
			previewData(val){
				if(val == 1){
					uni.navigateTo({
						url:'../safeManage/dangerList?type=5&engineeringId='+this.detailId
					})
				} else if(val == 2){
					uni.navigateTo({
						url:'../safeManage/dangerList?type=6&engineeringId='+this.detailId
					})
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.safe-list{
		padding-top: 20rpx;
		.list-detail{
			background: #fff;
			padding: 0 40rpx;
			.list-item{
				height: 96rpx;
				border-bottom: 1px solid #F6F6F6;
				line-height: 92rpx;
				font-size: 14px;
				display: flex;
				justify-content: space-between;
			}
			.num{
				margin-left: 40rpx;
			}
		}
	}
</style>
