footerRight.vue 1.09 KB
<template>
	<div>
		<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号堆垛机', '11', '10', '1'],
					['1号RGV', '20', '20', '1'],
					['2号RGV', '22', '21', '1']
				],
				headerBGC: "#003b51",
				oddRowBGC: "transparent",
				evenRowBGC: "#0b2038",
				rowNum: 4
			}
		}
	},
	methods: {
		sed(data) {
			this.config = {
				header: ['设备名称', '任务数', '完成数', '完成率'],
				data: data,
				headerBGC: "#003b51",
				oddRowBGC: "transparent",
				evenRowBGC: "#0b2038",
				rowNum: 4
			}
		},
	},
	mounted() {
		debugger

	},
}
</script>

<style lang="scss" scoped>
.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>