<template>
	<view>
		<!-- navbar -->
		<p-safety-monitoring-navbar :mine="mine"></p-safety-monitoring-navbar>
		
		678
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mine:"",
				
				active:1,
				
				// 模拟量
				// 监测统计
				simulation:[],
				simulationList:[],
				
				
				// 开关量
				sluice:[],
				sluiceList:[],
			};
		},
		onLoad(option) {
			this.mine = option.mine
			
			
			// 模拟量统计
			this.getSimulation()
			
			
			// 开关量统计
			this.getSluice()
			
		},
		methods:{
			click_item(item){
				this.active = item
			
			},
			// 模拟量统计
			getSimulation(){
				uni.showLoading()
				this.$p_api.jt_safety_simulation_total({
					mine:this.mine,
					mine_code:this.mine
				}).then((res)=>{
					uni.hideLoading()
					// console.log(res)
					this.simulation = res.data.content.total
					this.simulationList = res.data.content.data
				})
			},
			
			// 开关量统计
			getSluice(){
				uni.showLoading()
				this.$p_api.jt_safety_sluice_total({
					mine:this.mine,
					mine_code:this.mine
				}).then((res)=>{
					uni.hideLoading()
					// console.log(res.data.content)
					this.sluice = res.data.content.total
					this.sluiceList = res.data.content.data
				})
				
			},
			
		}
	}
</script>

<style lang="scss">
	

</style>
