Bläddra i källkod

修复饼图显示

pm 8 månader sedan
förälder
incheckning
987bcd2222

+ 6 - 4
src/views/mes/statisticians/LockerMistake.vue

@@ -156,10 +156,11 @@ export default {
               },
             },
             legend: {
-              data: [
-                { name: '物资错放', icon: 'circle', textStyle: { color: '#5470c6' }, itemStyle: { color: '#5470c6' } }, // 固定图例颜色
-                { name: '超时未关', icon: 'circle', textStyle: { color: '#91cc75' }, itemStyle: { color: '#91cc75' } }, // 固定图例颜色
-              ],
+              data:['物资错放','超时未关'],
+              // data: [
+              //   { name: '物资错放', icon: 'circle', textStyle: { color: '#5470c6' }, itemStyle: { color: '#5470c6' } }, // 固定图例颜色
+              //   { name: '超时未关', icon: 'circle', textStyle: { color: '#91cc75' }, itemStyle: { color: '#91cc75' } }, // 固定图例颜色
+              // ],
               bottom: '5%',
               left: 'center',
               textStyle: {
@@ -178,6 +179,7 @@ export default {
                 radius: '60%',
                 center: ['50%', '50%'],
                 data: [
+                  //
                   { value: cabinet.openTimeoutCount || 0, name: '超时未关' },
                   { value: cabinet.misplaceCount || 0, name: '物资错放' },
                 ],

+ 1 - 1
src/views/mes/statisticians/LockerSpeciality.vue

@@ -143,7 +143,7 @@ export default {
       // 配置图表的选项
       const options = {
         title: {
-          text: '特殊状态物资统计',
+          text: '特殊状态物资统计(当前时刻)',
           left: 'center',
           top: '0%'
         },