footerRight.vue 2.55 KB
<template>
	<div class="dv-content-body-bottom-list-right">
		<div class="div-span-title">仓库库位使用状况(使用率>90%提醒)</div>
		<div class="dv-content-body-bottom-list-right-table">
			<dv-scroll-board :config="tableData" style="width: 100%;" />
		</div>
	</div>
</template>

<script>
export default {
	data() {
		return {
			getList: null,
			sysData: {},
			baseUrlOff: 'http://127.0.0.1:6001/api/BulletinBoard/Mes/V1/ReadData2',
			baseUrlOnLine: window.appConfig.baseUrlint,
			tableData: {
				header: ['名称', '总库库位', '已用/未用', '使用率%'],
				headerBGC: '#16407a', //表头
				oddRowBGC: '#021c66',
				evenRowBGC: '#0b2038',
				data: [],
				align: ['center', 'center', 'center', 'center', 'center', 'center', 'center'],
				columnWidth: [90, 100, 110, 100, 100, 100],
				headerHeight: 20,
				rowNum: 4,
			},
			agvDataList: [],
		}
	},
	methods: {
		bingDataSource(data) {
			let tempList = []
			data.forEach((item) => {
				const aa = ` <span style="text-decoration: underline;color:hsl(201, 86%, 50%)">${item.equipmentName}</span>`
				const da = `${item.usedAlready}/${item.notUsed}`
				tempList.push([aa, item.totalWarehouseLocation, da, item.usageRate])
			})
			this.tableData = {
				header: ['名称', '总库库位', '已用/未用', '使用率%'],
				headerBGC: '#16407a', //表头
				oddRowBGC: '#021c66',
				evenRowBGC: '#0b2038',
				data: tempList,
				waitTime: 5000,
				carousel: 'page',
				align: ['center', 'center', 'center', 'center', 'center', 'center', 'center'],
				columnWidth: [90, 100, 110, 100, 100, 100],
				headerHeight: 20,
				rowNum: 4,
			}
		},
	},
	mounted() {},
}
</script>

<style lang="less" scoped>
.dv-content-body-bottom-list-right {
	width: 49%;
	height: 95%;
	border: 1.5px solid hsl(208.57deg 51.22% 40.2%);
}
.dv-content-body-bottom-list-right-title {
	width: 97%;
	height: 23px;
	margin: auto;
	display: flex;
	font-size: 14px;
	color: #fff;
	flex-direction: column;
	justify-content: center;
}
.dv-content-body-bottom-list-right-table {
	width: 97%;
	height: 90%;
	margin: auto;
}
.div-span-title-bottom {
	// display: flex;
	width: 33%;
	height: 20%;
}
.agvFont {
	font-size: 1vw;
	color: #fff;
	display: contents;
}
.BottomStyleTop {
	height: 1%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.dianchiCss {
	display: flex;
	font-size: 13px;
	color: aliceblue;
	// margin: 20px 0 0 20px;
	align-items: center;
}
</style>
<style>
.dv-scroll-board .header .header-item {
	font-size: 13px !important;
}
.dv-scroll-board .rows div.ceil {
	font-size: 11px !important;
}
</style>