<template>
	<div v-if="visible" class="popup-model station-model ">
		<div class="station-title" style="font-size: 16px;">{{parmas.name}}</div>
		<i class="icon el-icon-close" @click="close"></i>
		<div class="station-content" style="font-size: 13px;" v-html="parmas.content">
			
		</div>
	</div>
</template>

<script>
	import digitalReservoir from '@/api/frontScreen/digitalReservoir.js'
	export default {
		name: 'historyModel',
		data() {
			return {
				visible: false,
				parmas:{}
				
			}
		},
		methods: {
			open(val) {
				this.parmas = val
				this.visible = true
				
		
			},
			close() {
				this.visible = false
				this.$emit('close')
			},
		},
	}
</script>

<style lang="scss" scoped>
	@import './../css/gisComp.scss';

	.popup-model {
		width: 700PX;
		font-weight: 900;
		// height: 80%;
		min-height: 300px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background-color: rgba(0, 0, 0, 0.8);
		z-index: 99;
		border: 1px solid #d2d6dc;
		border-radius: 6px;
		color: #d3d4d7;
		padding: 20px;
		box-sizing: border-box;
		// overflow-y: auto;
		.el-icon-close {
			position: absolute;
			right: 6px;
			top: 6px;
			font-size: 20px;
			color: #f56c6c;
			cursor: pointer;
		}

		.station-title {
			text-align: center;
			font-size: 16px;
			height: 20px;
			line-height: 20px;
			margin-bottom: 16px;
		}

		.station-content {
			height: calc(100% - 36px);
			line-height: 30px;
			width: 100%;
			overflow-y:auto;
		}
	}
	.content{
		
		.content-header{
			text-align: center;
			font-weight: bold;
		}
		.content-footer{
			.title{
				border-left: 4px solid 	#1DB6FC;
				padding-left: 10px;
				color: 	#1DB6FC;
				font-weight: bold;
			}
		}
	}
</style>
