<template>
	<view class="danger-project">
		<view class="finally" v-if="finallyCheckList.length > 0">
			<view style="padding:10px;">
				<text style="font-weight: bold;">危大工程名称：</text>基坑
			</view>
			<view style="padding:10px;">
				<text style="font-weight: bold;">计划时间：</text>基坑
			</view>
			<view style="padding:10px;">
				<text style="font-weight: bold;">验收人：</text>基坑
			</view>
			<view style="padding:10px;">
				<text style="font-weight: bold;">验收结果：</text>基坑
			</view>
		</view>
		<view class="no-data" v-else>
			<image class="img" src="/static/noData.png"></image>
			<text class="txt">暂无数据</text>
		</view>
	</view>
</template>

<script>
	export default {
		props:['detailId'],
		data() {
			return {
				finallyCheckList: [],
			};
		},
		created() {
			this.initData()
		},
		methods:{
			initData(){
				this.sendRequest({
					url:'xmgl/xzDangerousEngineeringAcceptance/list',
					method:'get',
					data:{
						engineeringId: this.detailId,
						projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn,
					},
					success:res=>{
						uni.hideLoading()
						console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
						this.finallyCheckList = res.result;
						
					}
				})
			},
		}
	}
</script>

<style lang="scss">
.danger-project{	
	.finally{
		background-color: #fff;
		height: 150px;
		margin: 10px;
	}
	.no-data{
		text-align: center;
		.img{
			display: block;
			height: 200rpx;
			width: 200rpx;
			margin: 0 auto;
			margin-top: 60rpx;
			margin-bottom: 60rpx;
		}
		.txt{
			color: #C0C4CC;
		}
	}
}
</style>
