bodyCenterLeft.vue 1.05 KB
<template>
	<div class="dv-content-body-center-list-left">
		<div id="main"></div>
	</div>
</template>

<script>
export default {
	data() {
		return {
			sysData: {},
		}
	},
	methods: {
		// 历史出入库数量
		getData(data) {
			console.log(data)
			let myChart = this.$echarts.init(document.getElementById('main'))
			overviewOfLibraryInformation_bodyCecnterLeft.xAxis.data = []
			overviewOfLibraryInformation_bodyCecnterLeft.series[0].data = []
			overviewOfLibraryInformation_bodyCecnterLeft.series[1].data = []

			overviewOfLibraryInformation_bodyCecnterLeft.xAxis.data = data.xdata
			overviewOfLibraryInformation_bodyCecnterLeft.series[0].data = data.warehouseEntry
			overviewOfLibraryInformation_bodyCecnterLeft.series[1].data = data.outbound
			myChart.clear()
			myChart.setOption(overviewOfLibraryInformation_bodyCecnterLeft)
		},
	},
	mounted() {},
}
</script>

<style lang="less" scoped>
.dv-content-body-center-list-left {
	width: 49%;
	height: 95%;
	border: 1.5px solid hsl(208.57deg 51.22% 40.2%);
}
#main {
	width: 100%;
	height: 100%;
}
</style>