$(() => { /*数据信息*/ const statusArray = [0, 0, 0, 0, 0]; dataInformationFunction(statusArray); energyProductionStatisticsFunction(statusArray); runParamStatisticsFunction(statusArray); $("#lossParam").text(123.87); $("#meterParam").text(123.65); }) /*数据信息*/ const dataInformationFunction = (statusArray) => { let info = `
${statusArray[0] == 0 ? `运行正常` : `运行异常`} 389kW
4563kW·h 2
`; $("#dataInformation").append(info); } /*能耗产量统计*/ const energyProductionStatisticsFunction = (statusArray) => { let info = `
68 675 68 675
`; $("#energyProductionStatistics").append(info); } const runParamStatisticsFunction = (statusArray) => { let info = `
68
685
685
685
`; $("#runParamStatistics").append(info); }