bodyLeft.vue 1.47 KB
<template>
	<div class="pp-bodyLeft">
		<div class="title-text">当前设备故障明细</div>
		<div class="body">
			<dv-scroll-board :config="config" style="width:98%;height:90%" />
		</div>
	</div>
</template>

<script>
export default {
	data() {
		return {
			sysinfo: [],
			config: {
				header: ['名称', '异常信息', '开始/持续时间'],
				data: [
					['1号堆垛机', '激光感应障碍物', '01-09 15:33/1'],
					['1号RGV', '与前RGV通讯失败', '01-09 13:08/1'],
					['2号RGV', '激光感应障碍物', '01-09 10:54/1'],
					['1号RGV', 'agv处于中位异常', '01-09 09:22/0'],
				],
				headerBGC: '#003b51',
				oddRowBGC: 'transparent',
				evenRowBGC: '#0b2038',
				rowNum: 4,
				columnWidth: [150, 350, 200],
			},
		}
	},
	methods: {
		sed(data) {
			this.config = {
				header: ['名称', '异常信息', '开始/持续时间'],
				data: data,
				headerBGC: '#003b51',
				oddRowBGC: 'transparent',
				evenRowBGC: '#0b2038',
				rowNum: 4,
				columnWidth: [150, 350, 200],
			}
		},
	},
	mounted() {
		debugger
	},
}
</script>

<style lang="scss" scoped>
.pp-bodyLeft {
	width: 100%;
}
.title-text {
	width: 100%;
	height: 3vh;
	font-size: 2vh;
	font-weight: 600;
	color: #fff;
	text-align: left;
	padding-left: 1vw;
}

.body {
	margin-top: 1vh;
	height: 90%;
	display: flex;
	justify-content: center;
}
</style>

<style>
.dv-scroll-board .header {
	font-size: 1.9vh !important;
}

.dv-scroll-board .rows .row-item {
	font-size: 1.9vh !important;
}
</style>