<template>
	<view class="records">
		<view class="records-list">
			<view class="records-list-item" v-for="(item, index) in list" :key="index" @click="jumpPage(item.url)">{{ item.name }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '巡检记录',
						url: 'pages/patrolManagement/patrolRecords/patrolRecords'
					}, {
						name: '设备异常记录',
						url: 'pages/patrolManagement/abnormalRecords/abnormalRecords'
					}, {
						name: '巡检处置记录',
						url: ''
					}, {
						name: '应急处置记录',
						url: ''
					}]
			}
		},
		methods: {
			jumpPage(url) {
				uni.$u.route({
					url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.records {
		padding: 40rpx 20rpx;
	
	&-list {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;

			&-item {
				width: calc(50% - 18rpx);
				height: 200rpx;
				line-height: 200rpx;
				text-align: center;
				background-color: #2871FF;
				border-radius: 10rpx;
				color: #fff;
				font-size: 40rpx;
				font-family: PingFangSC-regular;
				margin-bottom: 36rpx;
			}
		}
	}
</style>
