소스 검색

修复饼图显示

pm 8 달 전
부모
커밋
987bcd2222
2개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 4
      src/views/mes/statisticians/LockerMistake.vue
  2. 1 1
      src/views/mes/statisticians/LockerSpeciality.vue

+ 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%'
         },