bodyCenter.vue 2.8 KB
<template>
	<div class="dv-content-body-center-list-center">
		<dv-border-box-12>
			<div class="div-center-d">
				<div class="stuts-style" style="padding-top: 2px">
					<span style="padding: 0" class="div-span-title">{{ $gl('RTS of S') }} </span>
					<div>
						<div class="yuxing">
							<div class="yuxing-style"></div>
						</div>
						<span>运行</span>
					</div>
					<div>
						<div class="daiji">
							<div class="daiji-style"></div>
						</div>
						<span>待机</span>
					</div>
					<div>
						<div class="guzhang">
							<div class="guzhang-style"></div>
						</div>
						<span>故障</span>
					</div>
				</div>

				<div class="dv-content-body-center-list-center-image">
					<div class="dv-content-body-center-list-center-image-details" v-for="(item, index) in tempList" :key="index">
						<img v-show="item.status == '运行'" src="@/assets/img/greenNEW.png" alt="" />
						<img v-show="item.status == '待机'" src="@/assets/img/orangeNew.png" alt="" />
						<img v-show="item.status == '故障'" src="@/assets/img/rednew.gif" alt="" />
						<div style="width: 100%; height: 0px; text-align: center; font-size: 17px">{{ item.equipmentCode }}</div>
					</div>
				</div>
			</div>
		</dv-border-box-12>
	</div>
</template>

<script>
export default {
	data() {
		return {
			tempList: null,
		}
	},
	methods: {
		bingDataSource(data) {
			this.tempList = data
		},
	},
}
</script>

<style lang="less" scoped>
.dv-content-body-center-list-center {
	box-sizing: border-box;
	width: 33vw;
	height: 95%;
	//   background-color: #441f75;
	.stuts-style {
		display: flex;
		height: 20%;
		font-weight: 800;
		font-size: 1.3vw;
		color: aliceblue;
		text-indent: 1vw;
		box-sizing: border-box;
		div {
			display: flex;
			margin-left: 1vw;
			.yuxing {
				position: relative;
			}
			.yuxing-style {
				position: absolute;
				left: -1.7vw;
				top: 0.6vw;
				width: 0.5vw;
				height: 0.5vw;
				background-color: #04efcd;
			}
			.daiji {
				position: relative;
			}
			.daiji-style {
				position: absolute;
				left: -1.7vw;
				top: 0.6vw;
				width: 0.5vw;
				height: 0.5vw;
				background-color: #fdb300;
			}
			.guzhang {
				position: relative;
			}
			.guzhang-style {
				position: absolute;
				left: -1.7vw;
				top: 0.6vw;
				width: 0.5vw;
				height: 0.5vw;
				background-color: #f43d33;
			}
		}
	}
	.dv-content-body-center-list-center-image {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		height: 25vh;
		.dv-content-body-center-list-center-image-details {
			width: 31%;
			height: 50%;
			color: #fff;
			margin-left: 2px;
			img {
				width: 50px;
				margin-left: 25%;
			}
		}
	}
}
</style>
<style lang="less">
.div-span-title {
	display: block;
	height: 1.9vw;
	padding-left: 1vw;
	padding-top: 3px;
	font-size: 1.5vw;
	color: aliceblue;
	font-weight: 800;
	margin-left: 10px;
}
</style>