same-add-echart.vue
733 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
<template>
<div class="add-chart">
<linechart :echartId="echartId1"></linechart>
<linechart :echartId="echartId2"></linechart>
</div>
</template>
<script>
import * as echarts from 'echarts';
import linechart from "./linechart";
export default {
name: 'sameAddEchart',
components: {
linechart,
},
data() {
return {
permissions: [1211],
echartId1: "addEchartId1",
echartId2: "addEchartId2",
echartId3: "addrEchartId3",
echartId4: "addEchartId4",
}
},
methods: {
test() {
console.log('点击了按钮')
this.$messenger.send({ from: 11, message: '11111' })
}
},
mounted() {
}
};
</script>
<style>
#echarts2 {
height: 300px;
}
</style>