bodyCenterLeft.vue
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<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>