|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
* @Author: dayan_hjm 库存金额
|
|
3
|
3
|
* @Date: 2023-10-23 09:32:12
|
|
4
|
4
|
* @Last Modified by: dayan_hjm
|
|
5
|
|
- * @Last Modified time: 2023-10-23 10:14:04
|
|
|
5
|
+ * @Last Modified time: 2023-10-30 11:24:04
|
|
6
|
6
|
*/
|
|
7
|
7
|
|
|
8
|
8
|
|
|
|
@@ -74,7 +74,98 @@ class LeftMenoyView extends Component {
|
|
74
|
74
|
name: '条',
|
|
75
|
75
|
type: 'bar',
|
|
76
|
76
|
yAxisIndex: 0,
|
|
77
|
|
- data: [{ value: 25, name: '碳酸锂' }, { value: 33, name: '氧化纳' }, { value: 35, name: '金属锂' }, { value: 40, name: '氢氧化钠' }],
|
|
|
77
|
+ data: [{
|
|
|
78
|
+ value: 25, name: '碳酸锂', itemStyle: {
|
|
|
79
|
+ normal: {
|
|
|
80
|
+ // barBorderRadius: 15,
|
|
|
81
|
+ // borderColor: "rgba(141, 147, 255, 1)",
|
|
|
82
|
+ // borderWidth: 1,
|
|
|
83
|
+ color: {
|
|
|
84
|
+ // 完成的圆环的颜色
|
|
|
85
|
+ colorStops: [
|
|
|
86
|
+ {
|
|
|
87
|
+ offset: 0,
|
|
|
88
|
+ color: 'rgba(141, 147, 255, 0.3)', // 0% 处的颜色
|
|
|
89
|
+ },
|
|
|
90
|
+ {
|
|
|
91
|
+ offset: 1,
|
|
|
92
|
+ color: 'rgba(141, 147, 255, 1)', // 100% 处的颜色
|
|
|
93
|
+ },
|
|
|
94
|
+ ],
|
|
|
95
|
+ },
|
|
|
96
|
+ },
|
|
|
97
|
+ },
|
|
|
98
|
+
|
|
|
99
|
+ }, {
|
|
|
100
|
+ value: 33, name: '氧化纳', itemStyle: {
|
|
|
101
|
+ normal: {
|
|
|
102
|
+ // barBorderRadius: 15,
|
|
|
103
|
+ // borderColor: "rgba(105, 255, 222, 1)",
|
|
|
104
|
+ // borderWidth: 1,
|
|
|
105
|
+
|
|
|
106
|
+ color: {
|
|
|
107
|
+ // 完成的圆环的颜色
|
|
|
108
|
+ colorStops: [
|
|
|
109
|
+ {
|
|
|
110
|
+ offset: 0,
|
|
|
111
|
+ color: 'rgba(105, 255, 222, 0.3)', // 0% 处的颜色
|
|
|
112
|
+ },
|
|
|
113
|
+ {
|
|
|
114
|
+ offset: 1,
|
|
|
115
|
+ color: 'rgba(105, 255, 222, 1)', // 100% 处的颜色
|
|
|
116
|
+ },
|
|
|
117
|
+ ],
|
|
|
118
|
+ },
|
|
|
119
|
+ },
|
|
|
120
|
+ },
|
|
|
121
|
+
|
|
|
122
|
+ }, {
|
|
|
123
|
+ value: 35, name: '金属锂', itemStyle: {
|
|
|
124
|
+ normal: {
|
|
|
125
|
+ // barBorderRadius: 15,
|
|
|
126
|
+ // borderColor: "rgba(47, 210, 255, 1)",
|
|
|
127
|
+ // borderWidth: 1,
|
|
|
128
|
+
|
|
|
129
|
+ color: {
|
|
|
130
|
+ // 完成的圆环的颜色
|
|
|
131
|
+ colorStops: [
|
|
|
132
|
+ {
|
|
|
133
|
+ offset: 0,
|
|
|
134
|
+ color: 'rgba(47, 210, 255, 0.3)', // 0% 处的颜色
|
|
|
135
|
+ },
|
|
|
136
|
+ {
|
|
|
137
|
+ offset: 1,
|
|
|
138
|
+ color: 'rgba(47, 210, 255, 1)', // 100% 处的颜色
|
|
|
139
|
+ },
|
|
|
140
|
+ ],
|
|
|
141
|
+ },
|
|
|
142
|
+ },
|
|
|
143
|
+ },
|
|
|
144
|
+
|
|
|
145
|
+ }, {
|
|
|
146
|
+ value: 40, name: '氢氧化钠', itemStyle: {
|
|
|
147
|
+ normal: {
|
|
|
148
|
+ // barBorderRadius: 15,
|
|
|
149
|
+ // borderColor: "rgba(255, 206, 0, 1)",
|
|
|
150
|
+ // borderWidth: 1,
|
|
|
151
|
+
|
|
|
152
|
+ color: {
|
|
|
153
|
+ // 完成的圆环的颜色
|
|
|
154
|
+ colorStops: [
|
|
|
155
|
+ {
|
|
|
156
|
+ offset: 0,
|
|
|
157
|
+ color: 'rgba(255, 206, 0, 0.3)', // 0% 处的颜色
|
|
|
158
|
+ },
|
|
|
159
|
+ {
|
|
|
160
|
+ offset: 1,
|
|
|
161
|
+ color: 'rgba(255, 206, 0, 1)', // 100% 处的颜色
|
|
|
162
|
+ },
|
|
|
163
|
+ ],
|
|
|
164
|
+ },
|
|
|
165
|
+ },
|
|
|
166
|
+ },
|
|
|
167
|
+
|
|
|
168
|
+ }],
|
|
78
|
169
|
label: {
|
|
79
|
170
|
normal: {
|
|
80
|
171
|
show: true,
|
|
|
@@ -99,8 +190,8 @@ class LeftMenoyView extends Component {
|
|
99
|
190
|
{ offset: 1, color: '#ffd01d94' },
|
|
100
|
191
|
]),
|
|
101
|
192
|
barBorderRadius: 15,
|
|
102
|
|
- borderColor: "rgba(255, 206, 0, 1)",
|
|
103
|
|
- borderWidth: 1
|
|
|
193
|
+ // borderColor: "rgba(255, 206, 0, 1)",
|
|
|
194
|
+ // borderWidth: 1
|
|
104
|
195
|
}
|
|
105
|
196
|
},
|
|
106
|
197
|
labelLine: {
|
|
|
@@ -148,21 +239,22 @@ class LeftMenoyView extends Component {
|
|
148
|
239
|
var option = {
|
|
149
|
240
|
title: {
|
|
150
|
241
|
text: '16%',
|
|
151
|
|
- subtext: '氢氧化锂',
|
|
|
242
|
+ subtext: '氢氧化钠',
|
|
152
|
243
|
x: 'center',
|
|
153
|
244
|
y: '40%',
|
|
154
|
245
|
textStyle: {
|
|
155
|
246
|
color: '#fff',
|
|
156
|
|
- fontSize: 15,
|
|
|
247
|
+ fontSize: 20,
|
|
157
|
248
|
lineHeight: 10,
|
|
158
|
249
|
},
|
|
159
|
250
|
subtextStyle: {
|
|
160
|
|
- color: '#90979c',
|
|
161
|
|
- fontSize: 12,
|
|
|
251
|
+ color: 'rgba(205, 241, 255, 1)',
|
|
|
252
|
+ fontSize: 14,
|
|
162
|
253
|
lineHeight: 10,
|
|
163
|
|
-
|
|
|
254
|
+ marginTop: 15,
|
|
164
|
255
|
},
|
|
165
|
256
|
},
|
|
|
257
|
+
|
|
166
|
258
|
tooltip: {
|
|
167
|
259
|
trigger: 'item',
|
|
168
|
260
|
formatter: "{b} : {c} ({d}%)"
|
|
|
@@ -183,48 +275,98 @@ class LeftMenoyView extends Component {
|
|
183
|
275
|
center: ['50%', '50%'],
|
|
184
|
276
|
color: ['rgb(131,249,103)', '#8D93FF', '#2FD2FF', '#FFCE00'], //'#FBFE27','rgb(11,228,96)','#FE5050'
|
|
185
|
277
|
data: [{
|
|
186
|
|
- "value": 1924,
|
|
187
|
|
- "name": ""
|
|
188
|
|
- }, {
|
|
189
|
|
- "value": 1055,
|
|
190
|
|
- "name": ""
|
|
191
|
|
- }, {
|
|
192
|
|
- "value": 1532,
|
|
193
|
|
- "name": ""
|
|
194
|
|
- }
|
|
195
|
|
- ].sort(function (a, b) {
|
|
196
|
|
- return a.value - b.value
|
|
197
|
|
- }),
|
|
198
|
|
- roseType: 'radius',
|
|
199
|
|
-
|
|
200
|
|
- label: {
|
|
201
|
|
- normal: {
|
|
202
|
|
- formatter: ['{c|{c}万}', '{b|{b}}'].join('\n'),
|
|
203
|
|
- rich: {
|
|
204
|
|
- c: {
|
|
205
|
|
- color: 'rgb(241,246,104)',
|
|
206
|
|
- fontSize: 12,
|
|
207
|
|
- fontWeight: 'bold',
|
|
208
|
|
- lineHeight: 5
|
|
|
278
|
+ value: 205,
|
|
|
279
|
+ name: '直接访问',
|
|
|
280
|
+ itemStyle: {
|
|
|
281
|
+ normal: {
|
|
|
282
|
+ color: {
|
|
|
283
|
+ // 完成的圆环的颜色
|
|
|
284
|
+ colorStops: [
|
|
|
285
|
+ {
|
|
|
286
|
+ offset: 0,
|
|
|
287
|
+ color: 'rgba(141, 147, 255, 0.3)', // 0% 处的颜色
|
|
|
288
|
+ },
|
|
|
289
|
+ {
|
|
|
290
|
+ offset: 1,
|
|
|
291
|
+ color: 'rgba(141, 147, 255, 1)', // 100% 处的颜色
|
|
|
292
|
+ },
|
|
|
293
|
+ ],
|
|
209
|
294
|
},
|
|
210
|
|
- b: {
|
|
211
|
|
- color: 'rgb(98,137,169)',
|
|
212
|
|
- fontSize: 12,
|
|
213
|
|
- height: 44
|
|
|
295
|
+ },
|
|
|
296
|
+ },
|
|
|
297
|
+ },
|
|
|
298
|
+ {
|
|
|
299
|
+ value: 310,
|
|
|
300
|
+ name: '邮件营销',
|
|
|
301
|
+ itemStyle: {
|
|
|
302
|
+ normal: {
|
|
|
303
|
+ color: {
|
|
|
304
|
+ // 完成的圆环的颜色
|
|
|
305
|
+ colorStops: [
|
|
|
306
|
+ {
|
|
|
307
|
+ offset: 0,
|
|
|
308
|
+ color: 'rgba(105, 255, 222, 0.3)', // 0% 处的颜色
|
|
|
309
|
+ },
|
|
|
310
|
+ {
|
|
|
311
|
+ offset: 1,
|
|
|
312
|
+ color: 'rgba(105, 255, 222, 1)', // 100% 处的颜色
|
|
|
313
|
+ },
|
|
|
314
|
+ ],
|
|
214
|
315
|
},
|
|
215
|
316
|
},
|
|
216
|
|
- }
|
|
|
317
|
+ },
|
|
217
|
318
|
},
|
|
218
|
|
- labelLine: {
|
|
219
|
|
- normal: {
|
|
220
|
|
- lineStyle: {
|
|
221
|
|
- color: 'rgb(98,137,169)',
|
|
|
319
|
+ {
|
|
|
320
|
+ value: 234,
|
|
|
321
|
+ name: '联盟广告',
|
|
|
322
|
+ itemStyle: {
|
|
|
323
|
+ normal: {
|
|
|
324
|
+ color: {
|
|
|
325
|
+ // 完成的圆环的颜色
|
|
|
326
|
+ colorStops: [
|
|
|
327
|
+ {
|
|
|
328
|
+ offset: 0,
|
|
|
329
|
+ color: 'rgba(47, 210, 255, 0.3)', // 0% 处的颜色
|
|
|
330
|
+ },
|
|
|
331
|
+ {
|
|
|
332
|
+ offset: 1,
|
|
|
333
|
+ color: 'rgba(47, 210, 255, 1)', // 100% 处的颜色
|
|
|
334
|
+ },
|
|
|
335
|
+ ],
|
|
|
336
|
+ },
|
|
222
|
337
|
},
|
|
223
|
|
- smooth: 0.2,
|
|
224
|
|
- length: 10,
|
|
225
|
|
- length2: 20,
|
|
|
338
|
+ },
|
|
|
339
|
+ },
|
|
|
340
|
+ {
|
|
|
341
|
+ value: 135,
|
|
|
342
|
+ name: '视频广告学习相',
|
|
|
343
|
+ itemStyle: {
|
|
|
344
|
+ normal: {
|
|
|
345
|
+ barBorderRadius: 15,
|
|
|
346
|
+ color: {
|
|
|
347
|
+ // 完成的圆环的颜色
|
|
|
348
|
+ colorStops: [
|
|
|
349
|
+ {
|
|
|
350
|
+ offset: 0,
|
|
|
351
|
+ color: 'rgba(255, 206, 0, 0.3)', // 0% 处的颜色
|
|
|
352
|
+ },
|
|
|
353
|
+ {
|
|
|
354
|
+ offset: 1,
|
|
|
355
|
+ color: 'rgba(255, 206, 0, 1)', // 100% 处的颜色
|
|
|
356
|
+ },
|
|
|
357
|
+ ],
|
|
|
358
|
+ },
|
|
|
359
|
+ },
|
|
|
360
|
+ },
|
|
|
361
|
+ },
|
|
|
362
|
+ ],
|
|
|
363
|
+ roseType: 'radius',
|
|
226
|
364
|
|
|
227
|
|
- }
|
|
|
365
|
+ label: {
|
|
|
366
|
+ show: false
|
|
|
367
|
+ },
|
|
|
368
|
+ labelLine: {
|
|
|
369
|
+ show: false
|
|
228
|
370
|
}
|
|
229
|
371
|
}]
|
|
230
|
372
|
};
|