This commit is contained in:
Kai 2021-07-15 14:30:14 +08:00
commit 3e04132b06
2 changed files with 9 additions and 0 deletions

View File

@ -1969,7 +1969,12 @@ namespace SolarPower.Controllers
foreach(var solar in solaramount)
{
solar.MainDisplay = Path.Combine(stationImageFilePath, solar.Id.ToString()) + "/" + solar.MainDisplay;
List<int> deviceControllerid = await powerStationRepository.GetAllDeviceControllerId(solar.Id, solar.SiteDB);
var InverterTable = await powerStationRepository.InverterTable(deviceControllerid, solar.SiteDB);
solar.InverterAmount = InverterTable.Count;
}
apiResult.Data = solaramount;
}

View File

@ -457,6 +457,10 @@
return;
}
else {
$.each(rel.data, function (index, val) {
//電站卡片
$('#templateCard').find('.col-xl-2').attr('id', 'card' + val.id).clone().appendTo($('#solarCard' + val.cityId));