|
@@ -48,6 +48,18 @@ export default {
|
48
|
48
|
}
|
49
|
49
|
},
|
50
|
50
|
axisLabel: {
|
|
51
|
+ formatter: function (params) {
|
|
52
|
+ params = params.slice(0, 9)
|
|
53
|
+ const len = params.length
|
|
54
|
+ let str = ''
|
|
55
|
+ for (let i = 0; i < len; i++) {
|
|
56
|
+ str += params[i]
|
|
57
|
+ if (i % 4 === 0 && i !== 0) {
|
|
58
|
+ str += '\n'
|
|
59
|
+ }
|
|
60
|
+ }
|
|
61
|
+ return str
|
|
62
|
+ },
|
51
|
63
|
textStyle: {
|
52
|
64
|
color: '#d4d6d7',
|
53
|
65
|
fontSize: 12
|
|
@@ -147,6 +159,7 @@ export default {
|
147
|
159
|
this.groupWorkRatioNum.push(item[1]) // 获取到的数据
|
148
|
160
|
this.groupWorkRatioName.push(item[0]) // 获取到的名称
|
149
|
161
|
})
|
|
162
|
+ console.log(this.groupWorkRatioName)
|
150
|
163
|
this.draw()
|
151
|
164
|
this.polling()
|
152
|
165
|
},
|
|
@@ -168,7 +181,7 @@ export default {
|
168
|
181
|
</script>
|
169
|
182
|
|
170
|
183
|
<style lang="less">
|
171
|
|
-.time-utilization{
|
|
184
|
+.time-utilization {
|
172
|
185
|
height: 2.1375rem;
|
173
|
186
|
margin: 0 auto;
|
174
|
187
|
}
|