Przeglądaj źródła

fix:数据大屏优化

liziliang 1 miesiąc temu
rodzic
commit
16bac9c0c2

+ 1 - 1
src/views/screens/screen-components/BanZuChuQinTongJi.vue

@@ -49,7 +49,7 @@ onMounted(async () => {
       header: Object.values(dicts),
       data: bigData,
       // index: true,
-      columnWidth: [80, 80, 95, 110, 80],
+      // columnWidth: [80, 80, 95, 110, 80],
       align: ["left"],
       carousel: "page",
       click: (row: any, index: number) => {

+ 1 - 1
src/views/screens/screen-components/ChengPinRuKuQingKuang.vue

@@ -47,7 +47,7 @@ onMounted(async () => {
       header: Object.values(dicts),
       data: bigData,
       // index: true,
-      columnWidth: [120, 200, 70, 70],
+      columnWidth: [125, 200, 70, 70],
       align: ["left"],
       carousel: "page",
       click: (row: any, index: number) => {

+ 8 - 7
src/views/screens/screen-components/ProductionSituation.vue

@@ -19,24 +19,26 @@ onMounted(async () => {
 
   const option = {
     grid: {
-      left: "5%",
-      right: "5%",
-      top: "5%",
-      bottom: "5%",
+      left: "10%",
+      right: "10%",
+      top: "10%",
+      bottom: "10%",
     },
     color: allChartColors,
     backgroundColor: "transparent",
     xAxis: {
       type: "category",
       data: res?.data?.map((item: any) => item.stationName),
+
       axisLabel: {
-        fontSize: bigScreenData.value.fontSize * 1.5,
+        // fontSize:  bigScreenData.value.fontSize * 1.5,
+        rotate: -0,
       },
     },
     yAxis: {
       type: "value",
       axisLabel: {
-        fontSize: bigScreenData.value.fontSize * 2,
+        fontSize: bigScreenData.value.fontSize * 1,
       },
     },
     series: [
@@ -61,6 +63,5 @@ const props = defineProps({
 .charts-container {
   width: 100%;
   height: calc(100% - 32px);
-  border: 1px solid red;
 }
 </style>

+ 1 - 1
src/views/screens/screen-components/ShengChanJiHuaQingKuang.vue

@@ -29,7 +29,7 @@ onMounted(async () => {
     let dicts = {
       workOrderCode: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>生产批号</span>`,
       materialName: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>物料名称</span>`,
-      materialCode: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>物料型号</span>`,
+      materialCode: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>物料规格</span>`,
       number: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>生产数量</span>`,
       operationName: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>工序名称</span>`,
       stationName: `<span style='font-size:${bigScreenData.value.fontSize * 1.5}px'>工位名称</span>`,