From 84f1492459129fc6c83dee2e5d0b3eb3d41f746e Mon Sep 17 00:00:00 2001 From: xiongqin <3323939337@qq.com> Date: Mon, 14 Jul 2025 09:29:28 +0800 Subject: [PATCH] =?UTF-8?q?xq=20commit:"=E4=BF=AE=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E9=80=86=E5=8F=98=E5=99=A8=E8=AF=A6=E6=83=85"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/inverter/index.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/business/inverter/index.vue b/src/views/business/inverter/index.vue index 7a97fef..90bd42e 100644 --- a/src/views/business/inverter/index.vue +++ b/src/views/business/inverter/index.vue @@ -1630,7 +1630,7 @@ const myChart4 = ref(null); const myChart5 = ref(null); const myChart6 = ref(null); -function initChart(a: any, b: any, c: any, d: any, e?: any) { +function initChart(a: any, b: any, c: any, d: any, e?: any, f?: any) { const chart1 = echarts.init(c); const option = { tooltip: { @@ -1691,7 +1691,7 @@ function initChart(a: any, b: any, c: any, d: any, e?: any) { }, yAxis: { type: 'value', - name: d, + name: d + '单位(' + f + ')', nameTextStyle: { padding: [0, 0, e, 0], verticalAlign: 'bottom' @@ -1787,12 +1787,12 @@ const handleCheckDetail = async (row?: InverterVO) => { dialog2.visible = true; dialog2.title = '逆变器历史数据'; await nextTick(() => { - initChart(chart1Value.value, chart1Index.value, myChart1.value, '直流电流参数', 10); - initChart(chart2Value.value, chart2Index.value, myChart2.value, '直流电压参数', 25); - initChart(chart3Value.value, chart3Index.value, myChart3.value, '直流功率参数', 35); - initChart(chart4Value.value, chart4Index.value, myChart4.value, 'mppt电流参数', 15); - initChart(chart5Value.value, chart5Index.value, myChart5.value, 'mppt电压参数', 30); - initChart(chart6Value.value, chart6Index.value, myChart6.value, 'mppt功率参数', 35); + initChart(chart1Value.value, chart1Index.value, myChart1.value, '直流电流参数', 25, 'A'); + initChart(chart2Value.value, chart2Index.value, myChart2.value, '直流电压参数', 25, 'V'); + initChart(chart3Value.value, chart3Index.value, myChart3.value, '直流功率参数', 25, 'kwh'); + initChart(chart4Value.value, chart4Index.value, myChart4.value, 'mppt电流参数', 25, 'A'); + initChart(chart5Value.value, chart5Index.value, myChart5.value, 'mppt电压参数', 25, 'V'); + initChart(chart6Value.value, chart6Index.value, myChart6.value, 'mppt功率参数', 25, 'kwh'); }); };