xq commit:"修改了逆变器详情"

This commit is contained in:
2025-07-14 09:29:28 +08:00
parent eb6720064e
commit 84f1492459

View File

@ -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');
});
};