<template>
	<view class="page-wrap">
		<view class="background"></view>
		<view class="card">
			<!-- <uni-card margin="0" :is-shadow="true"> -->
			<u--form labelPosition="left" labelWidth="auto" labelAlign="center" ref="wForm" class="demo-ruleForm" errorType="border-bottom">
				<view style="position: relative;">
					<view style="position: absolute;left: -10px;color: #3d4b70;top: -3px;">*</view>
				</view>

				<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">基本信息</view>
				<view v-for="(item,index) in detailData.Nav_DetailContents">
					<u-form-item :label="index+1+'.检查内容'" prop="MEASURES_NAME">

					</u-form-item>
					<u--textarea v-model="(item.Nav_Contents||{}).CHECKCONTENT" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="检查依据" prop="CHECKSTANDARD" border-bottom>
					</u-form-item>
					<u--textarea v-model="item.Nav_DetailBasicsName" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="判定标准" prop="CHECKSTANDARD" border-bottom>
					</u-form-item>
					<u--textarea v-model="item.CHECK_STANDARD" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="+ 隐患查看" prop="MEASURES_NAME" borderBottom @click="gotoCheck(item)">
						<u-icon name="eye" size="22" slot="right"></u-icon>
					</u-form-item>
				</view>

			</u--form>


		</view>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	import {
		extendFilterGroup,
		extendGroupRule,
		extendInclude,
		extendOrder,
		extendRule,
		guid,
		initFilter,
		initFilterGroup
	} from '../../../../../utils/common'
	import {
		getRequest,
	} from '../../../../../services/apply/FOServices/FOServices';
	export default {
		data() {
			return {
				detailData: {},
			}
		},
		onLoad(option) {
			this.detailData = uni.getStorageSync('detailData');
		},
		onUnload() {
			// 可选：用完删除，避免占用存储
			uni.removeStorageSync('detailData');
		},
		methods: {
			gotoCheck(riskData){
				uni.setStorageSync('riskData', riskData);
				uni.navigateTo({
					url: 'riskInspec'
				})
			},
		}
	}
</script>

<style scoped>
	@import url("../../../../../style/css/newTemplate.css");
	/* 	@import url("../../../../style/css/editTemplate.css");

	.todo-page {
		padding: 16px 16px 70px;
	} */
</style>