<template>
	<list-test :bindData="siteListData" :bindUrl="linkUrl" :bindIcon="linkIcon" :bindNum="num" :bindType="type"
	 :bindDetailUrl="detailUrl">
	</list-test>

</template>

<script>
	import json from '../../data/json.js';

	export default {

		data() {
			return {
				type: 1,
				linkUrl: '/pages/alarmingList/alarmingList',
				linkIcon: '../../static/site-icon-alarm.png',
				siteListData: [],
				num: ' 共3个未处理告警',
				detailUrl: '/pages/siteDetail/siteDetail'
			};
		},


		onPullDownRefresh() {
			console.log('refresh');
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		computed: {

		},

		mounted() {
		
		},

		onLoad() {
			this.getSiteList()
		},

		methods: {
			async getSiteList() {
				const res= await this.$myRequest({
					url:'IntegratedAlarm/getSiteList',
					showLoading:true
				})
				console.log(res.data.data)
				this.siteListData=res.data.data
			}
		}

	}
</script>

<style>

</style>
