xq commit:"修改了逆变器详情"
This commit is contained in:
@ -1630,7 +1630,7 @@ const myChart4 = ref(null);
|
|||||||
const myChart5 = ref(null);
|
const myChart5 = ref(null);
|
||||||
const myChart6 = 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 chart1 = echarts.init(c);
|
||||||
const option = {
|
const option = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
@ -1691,7 +1691,7 @@ function initChart(a: any, b: any, c: any, d: any, e?: any) {
|
|||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
name: d,
|
name: d + '单位(' + f + ')',
|
||||||
nameTextStyle: {
|
nameTextStyle: {
|
||||||
padding: [0, 0, e, 0],
|
padding: [0, 0, e, 0],
|
||||||
verticalAlign: 'bottom'
|
verticalAlign: 'bottom'
|
||||||
@ -1787,12 +1787,12 @@ const handleCheckDetail = async (row?: InverterVO) => {
|
|||||||
dialog2.visible = true;
|
dialog2.visible = true;
|
||||||
dialog2.title = '逆变器历史数据';
|
dialog2.title = '逆变器历史数据';
|
||||||
await nextTick(() => {
|
await nextTick(() => {
|
||||||
initChart(chart1Value.value, chart1Index.value, myChart1.value, '直流电流参数', 10);
|
initChart(chart1Value.value, chart1Index.value, myChart1.value, '直流电流参数', 25, 'A');
|
||||||
initChart(chart2Value.value, chart2Index.value, myChart2.value, '直流电压参数', 25);
|
initChart(chart2Value.value, chart2Index.value, myChart2.value, '直流电压参数', 25, 'V');
|
||||||
initChart(chart3Value.value, chart3Index.value, myChart3.value, '直流功率参数', 35);
|
initChart(chart3Value.value, chart3Index.value, myChart3.value, '直流功率参数', 25, 'kwh');
|
||||||
initChart(chart4Value.value, chart4Index.value, myChart4.value, 'mppt电流参数', 15);
|
initChart(chart4Value.value, chart4Index.value, myChart4.value, 'mppt电流参数', 25, 'A');
|
||||||
initChart(chart5Value.value, chart5Index.value, myChart5.value, 'mppt电压参数', 30);
|
initChart(chart5Value.value, chart5Index.value, myChart5.value, 'mppt电压参数', 25, 'V');
|
||||||
initChart(chart6Value.value, chart6Index.value, myChart6.value, 'mppt功率参数', 35);
|
initChart(chart6Value.value, chart6Index.value, myChart6.value, 'mppt功率参数', 25, 'kwh');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user