<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 riskData.Nav_DetailHiddens">
					<u-form-item :label="index+1+'.隐患描述'" prop="MEASURES_NAME">

					</u-form-item>
					<u--textarea v-model="item.HIDDEN_DESCRIPTION" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="隐患等级" prop="CHECKSTANDARD" >
					</u-form-item>
					<u--textarea v-model="item.HIDDEN_LEVELName" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="整改措施" prop="CHECKSTANDARD" >
					</u-form-item>
					<u--textarea v-model="item.RECTIFICATION_MEASURES" disabled autoHeight maxlength="-1"></u--textarea>
				</view>

			</u--form>
			<u--form labelPosition="left" labelWidth="auto" labelAlign="center" ref="wForm" class="demo-ruleForm" errorType="border-bottom" style="margin-top: 20px;">
				<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 riskData.Nav_DetailDeparts">
					<u-form-item :label="index+1+'.检查层级'" prop="MEASURES_NAME">
						<u--input v-model="item.CHECK_TYPEName" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item label="检查部门" prop="CHECKSTANDARD" >
						<u--input v-model="(item.Nav_Department||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item label="检查岗位" prop="CHECKSTANDARD" >
					</u-form-item>
					<u--textarea v-model="item.Nav_DetailPostsName" disabled autoHeight maxlength="-1"></u--textarea>
					<u-form-item label="检查类型" prop="HIDDEN_PLACE" >
						<u--input v-model="(item.Nav_CheckType||{}).NAME" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</u-form-item>
					<u-form-item label="检查周期" prop="HIDDEN_PLACE" border-bottom>
						<u--input v-model="item.CHECK_CYCLEName" disabled disabledColor="#ffffff" inputAlign="right" fontSize="14px" border="none">
						</u--input>
					</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 {
				riskData: {},
			}
		},
		onLoad(option) {
			this.riskData = uni.getStorageSync('riskData');
		},
		onUnload() {
			// 可选：用完删除，避免占用存储
			uni.removeStorageSync('riskData');
		},
		methods: {}
	}
</script>

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

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