<template>
	<view>
		<u-navbar title="异常报警记录"  title-color="#101010" ></u-navbar>
		<view class="dropdown">
				<u-dropdown-change>
					<u-dropdown-item v-model="value1" title="全部时间" :options="options1"></u-dropdown-item>
					<u-dropdown-item v-model="value2" title="全部状态" :options="options2"></u-dropdown-item>
					<u-dropdown-item v-model="value3" title="全部设备" :options="options3"></u-dropdown-item>
				</u-dropdown-change>
			</view>
			
			<view class="records">
				<view class="records-item">
					<view class="icon icon1">
						<image class="img" src="@/assets/img/riFill-temp-cold-fill.svg" mode=""></image>
					</view>
					<view class="title">
						<view class="name">
							温度异常
						</view>
						<view class="date">
							2024-02-14 09:00:01
						</view>
					</view>
					
					<view class="equipment">
						<view class="equipment1">
							荆鹏软件园01
						</view>
						<view class="equipment2">
							荆鹏集团
						</view>
					</view>
					<view class="more">
						<u-icon name="arrow-right" color="#acacac"></u-icon>
					</view>
				</view>
				
				<view class="records-item">
					<view class="icon icon2">
						<image class="img" src="@/assets/img/riFill-cloud-off-fill.svg" mode=""></image>
					</view>
					<view class="title">
						<view class="name">
							温度异常
						</view>
						<view class="date">
							2024-02-14 09:00:01
						</view>
					</view>
					
					<view class="equipment">
						<view class="equipment1">
							荆鹏软件园01
						</view>
						<view class="equipment2">
							荆鹏集团
						</view>
					</view>
					<view class="more">
						<u-icon name="arrow-right" color="#acacac"></u-icon>
					</view>
				</view>
				<view class="records-item">
					<view class="icon icon3">
						<image class="img" src="@/assets/img/outputVoltage.svg" mode=""></image>
					</view>
					<view class="title">
						<view class="name">
							电压异常
						</view>
						<view class="date">
							2024-02-14 09:00:01
						</view>
					</view>
					
					<view class="equipment">
						<view class="equipment1">
							荆鹏软件园01
						</view>
						<view class="equipment2">
							荆鹏集团
						</view>
					</view>
					<view class="more">
						<u-icon name="arrow-right" color="#acacac"></u-icon>
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value1: 1,
				value2: 1,
				value3: 1,
				options1: [{
						label: '2024年2月',
						value: 1,
					},
					{
						label: '2024年3月',
						value: 2,
					},
					{
						label: '2024年4月',
						value: 3,
					}
				],
				options2: [{
						label: '设备离线',
						value: 1,
					},
					{
						label: '温度异常',
						value: 2,
					},
					{
						label: '电压异常',
						value: 3,
					},
					{
						label: '功率因数异常',
						value: 4,
					},
				],
				options3: [{
						label: '荆鹏集团',
						value: 1,
					},
					{
						label: '青少年宫',
						value: 2,
					},
					{
						label: '荆州院子',
						value: 3,
					},
					
				],
			}
		},
	}
</script>

<style lang="scss" scoped>
	.dropdown{
		background-color: #fff;
		position: fixed;
		left: 0;
		right: 0;
		top: 88rpx;
		z-index: 999;
	}
 
  // 记录
  .records{
	  background-color: #fff;
	  margin-top: 80rpx;
	  .records-item{
		  display: flex;
		  align-items: center;
		  padding:24rpx 40rpx ;
		  border-bottom: 1px solid rgba(245,245,245,1);
		  .icon{
			  width: 72rpx;
			  height: 72rpx;
			  border-radius: 4px;
			  display: flex;
			  align-items: center;
			  justify-content: center;
			  .img{
				  width: 48rpx;
				  height: 48rpx;
			  }
		  }
		  .icon1{
			  background-color: rgba(255,227,218,1);
		  }
		  .icon2{
			  background-color: rgba(230,230,230,1);
		  }
		  .icon3{
			  background-color: rgba(212,251,220,1);
		  }
		  .title{
			  margin-left: 16rpx;
			  .name{
				  color: rgba(51,51,51,1);
				  font-weight: bold;
			  }
			  .date{
				  color: rgba(119,119,119,1);
				  font-size: 24rpx;
				  margin-top: 4rpx;
			  }
		  }
		  .equipment{
			  margin-left: auto;
			  margin-right: 24rpx;
			  .equipment1{
				  color: rgba(51,51,51,1);
				  font-weight: bold;
			  }
			  .equipment2{
				  color: rgba(119,119,119,1);
				  font-size: 24rpx;
				  text-align: right;
				  margin-top: 4rpx;	
			  }
		  }
	  }
  }
</style>
