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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
| <template>
| <div id="centerRight2">
| <div class="bg-color-black">
| <div class="d-flex pt-2 pl-2">
| <span>
| <icon name="align-left" style="background-color: #ffffff" class="text-icon"></icon>
| </span>
| <span class="fs-xl text mx-2">月工单完成数量统计</span>
| </div>
| <div class="d-flex ai-center flex-column body-box">
| <dv-capsule-chart class="dv-cap-chart" :config="config" />
| <centerRight2Chart1 />
| </div>
| </div>
| </div>
| </template>
|
| <script>
| import centerRight2Chart1 from '@/components/echart/centerRight/centerRightChart'
|
| export default {
| data() {
| return {
| config: {
| data: [
| {
| name: '2024-9',
| value: 524
| },
| {
| name: '2024-8',
| value: 645
| },
| // {
| // name: '漯河',
| // value: 123
| // },
| // {
| // name: '郑州',
| // value: 55
| // },
| // {
| // name: '西峡',
| // value: 98
| // }
| ]
| }
| }
| },
| mounted() {
| this.tops();
| this.changeTiming();
| },
| methods: {
| tops(){
| this.$http.get('http://192.168.0.249:8083/productionOrdeInfo/centerRight2')
| .then((response)=>{
| this.config = { data: response.data.data }
| })
| },
| changeTiming() {
| setInterval(() => {
| this.tops();
| }, 60000)
| },
| },
| components: { centerRight2Chart1 }
| }
| </script>
|
| <style lang="scss" scoped>
| #centerRight2 {
| $box-height: 410px;
| $box-width: 340px;
| padding: 5px;
| height: $box-height;
| width: $box-width;
| border-radius: 5px;
| .bg-color-black {
| padding: 5px;
| height: $box-height;
| width: $box-width;
| border-radius: 10px;
| }
| .text {
| color: #c3cbde;
| font-size: 16px;
| margin-top: -1px;
| }
| .body-box {
| border-radius: 10px;
| overflow: hidden;
| .dv-cap-chart {
| width: 100%;
| height: 160px;
| }
| }
| }
| </style>
|
|