footerLeft.vue
855 Bytes
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
45
46
<template>
<div class="dv-content-body-bottom-list-left">
<div id="meix"></div>
</div>
</template>
<!--库存利用率-->
<script>
export default {
data() {
return {
sysData: {},
}
},
methods: {
getData(data) {
let myChart = this.$echarts.init(document.getElementById('meix'))
overviewOfLibraryInformation_footerLeft.series[0].data = []
overviewOfLibraryInformation_footerLeft.series[0].data = data
myChart.clear()
myChart.setOption(overviewOfLibraryInformation_footerLeft)
},
},
mounted() {
this.getData()
//eslint-disable-next-line no-debugger
debugger
},
}
</script>
<style lang="less" scoped>
.dv-content-body-bottom-list-left {
width: 49%;
height: 95%;
border: 1.5px solid hsl(208.57deg 51.22% 40.2%);
}
.bottom-list-left {
width: 100%;
height: 100%;
}
#meix {
width: 100%;
height: 100%;
}
</style>