<template>
	<view class="todo-page">
		<view class="background"></view>

		<view class="card">
			<u--form labelWidth="auto" :model="detailData" ref="wForm" class="demo-ruleForm">
				<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;">{{detailData.postName}}岗位安全风险告知卡</view>
				<u-form-item label="风险名称" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.RISK_NAME" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="风险等级" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.EVALUATE_LEVELName" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="事故后果" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.RISK_TYPE" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="风险描述" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.RISK_DESCRIPTION" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="安全标志" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<!-- <u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.RISK_DESCRIPTION" border="none" inputAlign="right" autoHeight></u--textarea> -->
				<u-form-item label="管控措施" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.MEASURES_NAME" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="应急处置" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.EMERGENCY" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="责任单位" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.departName" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="责任人" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.userName" border="none" inputAlign="right" autoHeight></u--textarea>
				<u-form-item label="联系方式" prop="HIDDEN_PLACE" borderBottom>
				</u-form-item>
				<u--textarea fontSize="14px" disabled disabledColor="#fff" v-model="detailData.phone" border="none" inputAlign="right" autoHeight></u--textarea>
			</u--form>


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

<script>
	import {
		GetPostRiskList,
		PagedRisk
	} from '../../services/apply'
	import {
		DepartOrderPaged,
		PostOrderPaged,
		getEnum
	} from '../../services/common.js'
	import config from '../../config/common'
	import {
		initFilter,
		extendRule
	} from '../../utils/common'
	export default {
		data() {
			return {
				detailData: {},
				model: {}
			}
		},
		onLoad(option) {
			this.detailData = uni.getStorageSync('detailData');
			console.log(this.detailData, 'this.detailData')
		},
		onUnload() {
			// 可选：用完删除，避免占用存储
			uni.removeStorageSync('detailData');
		},
		// onReady() {
		// 	//如果需要兼容微信小程序，并且校验规则中含有方法等，只能通过setRules方法设置规则。
		// 	this.$refs.uForm.setRules(this.rules)
		// },
		methods: {},
	}
</script>

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