@dayan_hjm преди 2 години
родител
ревизия
3ef327affb

+ 8 - 4
src/assets/css/styleTemplate.less

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 茶百道主题样式
2
  * @Author: dayan_hjm 茶百道主题样式
3
  * @Date: 2022-10-27 10:56:37 
3
  * @Date: 2022-10-27 10:56:37 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-10-25 17:48:44
5
+ * @Last Modified time: 2023-10-30 11:14:06
6
  */
6
  */
7
 
7
 
8
 @import url("../../themes/themes.less");
8
 @import url("../../themes/themes.less");
@@ -474,10 +474,10 @@
474
                 color: #fff;
474
                 color: #fff;
475
                 position: absolute;
475
                 position: absolute;
476
                 right: 0%;
476
                 right: 0%;
477
-                top: 1.2em;
477
+                top: 0.5em;
478
 
478
 
479
                 li {
479
                 li {
480
-                  height: 22%;
480
+                  height: 25%;
481
                   text-align: left;
481
                   text-align: left;
482
                 }
482
                 }
483
               }
483
               }
@@ -485,7 +485,11 @@
485
               #echarts4,
485
               #echarts4,
486
               #echarts6 {
486
               #echarts6 {
487
                 width: 45%;
487
                 width: 45%;
488
-                height: 80%;
488
+                height: 90%;
489
+              }
490
+              #echarts6{
491
+                margin-top: -2em;
492
+                background: url(../imgs/dataVimg/guanghuan.png) no-repeat left 43% / 102% 120%;
489
               }
493
               }
490
 
494
 
491
             }
495
             }

src/assets/imgs/dataVImg/光环@2x.png → src/assets/imgs/dataVImg/guanghuan.png


+ 187 - 45
src/pages/tqcDataVHome/component/leftMenoyView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 库存金额
2
  * @Author: dayan_hjm 库存金额
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
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
           name: '条',
74
           name: '条',
75
           type: 'bar',
75
           type: 'bar',
76
           yAxisIndex: 0,
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
           label: {
169
           label: {
79
             normal: {
170
             normal: {
80
               show: true,
171
               show: true,
@@ -99,8 +190,8 @@ class LeftMenoyView extends Component {
99
                 { offset: 1, color: '#ffd01d94' },
190
                 { offset: 1, color: '#ffd01d94' },
100
               ]),
191
               ]),
101
               barBorderRadius: 15,
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
           labelLine: {
197
           labelLine: {
@@ -148,21 +239,22 @@ class LeftMenoyView extends Component {
148
       var option = {
239
       var option = {
149
         title: {
240
         title: {
150
           text: '16%',
241
           text: '16%',
151
-          subtext: '氢氧化',
242
+          subtext: '氢氧化',
152
           x: 'center',
243
           x: 'center',
153
           y: '40%',
244
           y: '40%',
154
           textStyle: {
245
           textStyle: {
155
             color: '#fff',
246
             color: '#fff',
156
-            fontSize: 15,
247
+            fontSize: 20,
157
             lineHeight: 10,
248
             lineHeight: 10,
158
           },
249
           },
159
           subtextStyle: {
250
           subtextStyle: {
160
-            color: '#90979c',
161
-            fontSize: 12,
251
+            color: 'rgba(205, 241, 255, 1)',
252
+            fontSize: 14,
162
             lineHeight: 10,
253
             lineHeight: 10,
163
-
254
+            marginTop: 15,
164
           },
255
           },
165
         },
256
         },
257
+
166
         tooltip: {
258
         tooltip: {
167
           trigger: 'item',
259
           trigger: 'item',
168
           formatter: "{b} : {c} ({d}%)"
260
           formatter: "{b} : {c} ({d}%)"
@@ -183,48 +275,98 @@ class LeftMenoyView extends Component {
183
           center: ['50%', '50%'],
275
           center: ['50%', '50%'],
184
           color: ['rgb(131,249,103)', '#8D93FF', '#2FD2FF', '#FFCE00'], //'#FBFE27','rgb(11,228,96)','#FE5050'
276
           color: ['rgb(131,249,103)', '#8D93FF', '#2FD2FF', '#FFCE00'], //'#FBFE27','rgb(11,228,96)','#FE5050'
185
           data: [{
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
       };

+ 1 - 1
src/pages/tqcDataVHome/component/rightBottomView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 碳排放
2
  * @Author: dayan_hjm 碳排放
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2023-10-23 11:12:30
5
+ * @Last Modified time: 2023-10-30 11:16:36
6
  */
6
  */
7
 
7
 
8
 
8