From 8881159c6aecb2204aec84d134318860eca618b1 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Sat, 27 Dec 2025 03:53:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(EnamellingMachineStatus):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9B=BE=E8=A1=A8=E5=8D=95=E4=BD=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=E5=80=BC=E7=BB=91=E5=AE=9A=E9=97=AE=E9=A2=98=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将radio-button的label属性改为value属性以正确绑定值 - 调整图表默认时间范围为"近1月" - 优化图表字体大小和标签显示 - 移除柱状图和折线图的标签显示以避免重叠 --- src/views/plan/EnamellingMachineStatus.vue | 38 ++++++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/views/plan/EnamellingMachineStatus.vue b/src/views/plan/EnamellingMachineStatus.vue index 370722f..3d6b46b 100644 --- a/src/views/plan/EnamellingMachineStatus.vue +++ b/src/views/plan/EnamellingMachineStatus.vue @@ -193,8 +193,8 @@ 显示单位: - 箱数 - 重量 + 箱数 + 重量
@@ -238,7 +238,7 @@ const salesData = ref([]) const historyData = ref([]) const hasSalesData = ref(false) const hasHistoryData = ref(false) -const selectedTimeRange = ref('近1周') +const selectedTimeRange = ref('近1月') const chartUnit = ref('box') const salesChartTitle = ref('') const currentSalesAxle = ref(null) @@ -635,11 +635,17 @@ const initSalesChart = (retryCount = 0) => { trigger: 'axis', axisPointer: { type: 'cross' + }, + textStyle: { + fontSize: 14 } }, legend: { data: [salesName, historyName], - top: 10 + top: 10, + textStyle: { + fontSize: 14 + } }, grid: { left: '3%', @@ -652,7 +658,13 @@ const initSalesChart = (retryCount = 0) => { data: dates, axisLabel: { interval: Math.floor(dates.length / 10), - rotate: 30 + rotate: 30, + fontSize: 13 + }, + axisLine: { + lineStyle: { + fontSize: 13 + } } }, yAxis: { @@ -664,6 +676,12 @@ const initSalesChart = (retryCount = 0) => { lineStyle: { color: '#5470C6' } + }, + axisLabel: { + fontSize: 13 + }, + nameTextStyle: { + fontSize: 14 } }, series: [ @@ -675,7 +693,10 @@ const initSalesChart = (retryCount = 0) => { color: '#5470C6' }, barGap: '10%', - connectNulls: true + connectNulls: true, + label: { + show: false + } }, { name: historyName, @@ -688,7 +709,10 @@ const initSalesChart = (retryCount = 0) => { width: 3 }, symbol: 'none', - connectNulls: true + connectNulls: true, + label: { + show: false + } } ] };