<template>
	<view class="detail-wrap inspection">
		<view class="detail-list">
			<view class="head">
				<text>基本信息</text>
			</view>		
			<view class="table-cont" >
			　　<view class="row">
					<text>风险点：{{item.riskPointTitle}}</text>
				</view>	
			　　<view class="row">
					<text>任务名称：{{item.taskTitle}}</text>
				</view>		
			　　<view class="row">
					<text>任务类型：{{item.taskCatTitle}}</text>
				</view>				
			　　<view class="row">
					<text>检查人：{{item.accountName}}</text>
				</view>		
			　　<view class="row">
					<text>检查时间：{{item.checkTime}}</text>
				</view>				
			　　<view class="row">
					<text>检查内容：{{item.measureContent}}</text>
				</view>	
			　　<view class="row">
					<text>场所/环节/部位：{{item.riskTitle}}</text>
				</view>	
			　　<view class="row">
					<text>风险单元：{{item.hazardTitle}}</text>
				</view>													
			　　<view class="row">
					<text>描述：{{item.checkDesc}}</text>
				</view>								
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:{}
			}
		},
		methods: {
			init(){
				let inspectionInfo=uni.getStorageSync('inspectionInfo');
				this.item={...inspectionInfo};
			}
		},
		onShow(){
			this.init();
		},
		destroyed() {
			uni.removeStorageSync("inspectionInfo");
		}
	}
</script>

<style lang="scss" scoped>
	.detail-wrap{
		&.inspection{
			padding: 20upx 0 100upx 0;
		}
		.detail-list{
			.head{
				width: 300upx;
				height: 58upx;
				line-height: 58upx;	
				color: #FFFFFF;
				background: #00A0FF;
				border-radius:0 16upx 16upx 0;
				padding: 0 20upx;										
			}
			.table-cont {
				padding: 0 26upx;
				.row {
					height: 78upx;
					line-height: 78upx;
					border-bottom: 2upx solid #EDE1D9;
					&.desc{
						height: auto;
						line-height: 1.5;
						min-height: 78upx;
						border-bottom: none;
						padding-top: 16upx;
						display: flex;
						justify-content: flex-start;
						.desc-txt{
							width: 600upx;
							word-break: break-word;
						}
					}
				}				
			}			
		}
	}
</style>
