<!-- 数据看板-预警处置 -->
<template>
	<view class="warningDispose">
		<view class="chart">
			<view class="chart-t">
				<view class="chart-t-li" @click="dateClick(index)" :class="dateIndex==index?'color-A':'color-B'"
					v-for="(item,index) in dateList">
					<view class="chart-t-li-t">{{item.num}}</view>
					<view class="chart-t-li-b">{{item.letterNUm}}</view>
				</view>
			</view>
			<view class="chart-b">
				<!-- <qiun-data-charts type="tarea" :chartData="chartData" background="none" /> -->
			</view>
		</view>
		<view class="statistics">
			<view class="statistics-b">
				<view class="statistics-b-li">
					<view class="statistics-b-li-t">99</view>
					<view class="statistics-b-li-b">昨日预警处置数</view>
				</view>
				<view class="line"></view>
				<view class="statistics-b-li">
					<view class="statistics-b-li-t">16</view>
					<view class="statistics-b-li-b">今日预警处置数</view>
				</view>
				<view class="line"></view>
				<view class="statistics-b-li">
					<view class="statistics-b-li-t-tow">
						<text class="color-B">-0.9%</text>
						<img  src="@/pages/images/dataBoard/dataBoard-icon3.png">
					</view>
					<view class="statistics-b-li-b">环比增长</view>
				</view>
			</view>
		</view>
		<view class="table">
			<view class="table-border">
				<view class="table-th">
					<view class="table-th-li">
						<view>排行</view>
						<view>学院单位</view>
						<view>总数</view>
						<view>昨日</view>
						<view>今日</view>
						<view>环比</view>
					</view>
				</view>
				<view class="table-tb">
					<view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
						<view>{{index}}</view>
						<view>{{item.data2}}</view>
						<view>{{item.data2}}</view>
						<view>{{item.data2}}</view>
						<view>{{item.data2}}</view>
						<view>{{item.data2}}</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	import {
		config
	} from '@/api/request/config.js'
	import {

	} from '@/pages_basics/api/index.js'
	export default {
		name: "warningDispose",
		components: {

		},
		data() {
			return {
				dateList: [{
						num: '1',
						letterNUm: 'Mon',
					},
					{
						num: '2',
						letterNUm: 'Tue',
					},
					{
						num: '3',
						letterNUm: 'Wed',
					},
					{
						num: '4',
						letterNUm: 'Thur',
					},
					{
						num: '5',
						letterNUm: 'Fri',
					},
					{
						num: '6',
						letterNUm: 'Sat',
					},
					{
						num: '7',
						letterNUm: 'Sun',
					},
				],
				dateIndex: 0,
				// 查询参数
				queryParams: {
					page: 1,
					pageSize: 10,
				},
				dataList: [{
						data1: '学院学院简称',
						data2: '666',
					},
					{
						data1: '学院学院简称',
						data2: '666',
					},
					{
						data1: '学院学院简称',
						data2: '666',
					},
					{
						data1: '学院学院简称',
						data2: '666',
					},
				],
				total: 0,
			}
		},
		created() {

		},
		beforeMount() {

		},
		mounted() {},
		methods: {
			dateClick(index) {
				this.dateIndex = index;
			},
		},
	}
</script>

<style lang="stylus" scoped>
	.warningDispose {
		height: 100%;
		width: 100%;
		background: #363744;
		padding: 20rpx 0rpx 0;
		box-sizing: border-box;

		.chart {
			width: 750rpx;
			height: 500rpx;
			background: #3E414F;
			padding: 34rpx 30rpx 26rpx;
			box-sizing: border-box;

			.chart-t {
				display: flex;
				justify-content: space-between;

				.chart-t-li {
					width: 76rpx;
					height: 100rpx;

					.chart-t-li-t {
						font-weight: 400;
						font-size: 30rpx;

						line-height: 42rpx;
						text-align: center;
						margin-top: 8rpx;
					}

					.chart-t-li-b {
						font-weight: 400;
						font-size: 28rpx;

						line-height: 39rpx;
						text-align: center;
						margin-top: 4rpx;
					}
				}

				.color-A {
					.chart-t-li-t {
						color: #0183FA;
					}

					.chart-t-li-b {
						color: #0183FA;
					}
				}

				.color-B {
					.chart-t-li-t {
						color: #FFFFFF;
					}

					.chart-t-li-b {
						color: #FFFFFF;
					}
				}
			}

			.chart-b {
				width: 690rpx;
				height: 350rpx;
			}
		}

		.statistics {
			width: 750rpx;
			height: 120rpx;
			background: #3E414F;
			.statistics-b {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.statistics-b-li {
					flex: 1;
					text-align: center;
					.statistics-b-li-t{
						font-weight: 400;
						font-size: 36rpx;
						color: #FFFFFF;
						line-height: 50rpx;
						margin-top: 10rpx;
						
					}
					
					.statistics-b-li-t-tow {
						margin-top: 10rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						>text{
							font-weight: 400;
							font-size: 28rpx;
							line-height: 50rpx;
						}
						>img{
							width: 22rpx;
							height: 28rpx;
						}
					}
					.color-A{
						color: #FF0000;
					}
					.color-B{
						color: #2EA805;
					}
					
					
					.statistics-b-li-b {
						font-weight: 400;
						font-size: 24rpx;
						color: #FFFFFF;
						line-height: 34rpx;
						margin-top: 9rpx;
					}
				}

				.line {
					width: 2rpx;
					height: 30rpx;
					background: #D8D8D8;
				}
			}
		}

		.table {
			width: 720rpx;
			margin-top: 20rpx;
			margin-left: 30rpx;

			.table-border {
				overflow: auto;

				.table-th {
					width: 860rpx;
					height: 80rpx;
					background: rgba(162, 162, 162, 0.2);
					border-radius: 20rpx 20rpx 0rpx 0rpx;
					padding: 0 30rpx;
					box-sizing: border-box;

					.table-th-li {
						height: 80rpx;
						display: flex;
						justify-content: flex-start;

						>view {
							font-weight: 400;
							font-size: 30rpx;
							color: #FFFFFF;
							line-height: 80rpx;
							text-align: center;
							margin-right: 38rpx;
							width: 120rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						>view:nth-of-type(1) {
							width: 80rpx;
						}
						>view:nth-of-type(2) {
							width: 168rpx;
						}
					}
				}

				.table-tb {
					width: 860rpx;
					border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
					background: #3E414F;
					padding: 0 30rpx;
					box-sizing: border-box;

					.table-tb-li {
						height: 80rpx;
						border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
						display: flex;
						justify-content: flex-start;

						>view {
							font-weight: 400;
							font-size: 28rpx;
							color: #FFFFFF;
							line-height: 80rpx;
							text-align: center;
							margin-right: 38rpx;
							width: 120rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;

						}

						>view:nth-of-type(1) {
							width: 80rpx;
						}
						>view:nth-of-type(2) {
							width: 168rpx;
						}

					}
				}

			}


		}
	}
</style>
