修改应用exe编译环境Win32->x64

This commit is contained in:
lixiaoyuan
2025-08-19 17:16:54 +08:00
parent 697193a7aa
commit 5de7687bcc
55 changed files with 326 additions and 161 deletions

View File

@@ -173,31 +173,33 @@ function initDeviceList(deviceType) {
elemtDeviceList.appendChild(createCardVideo('监控点7'))
elemtDeviceList.appendChild(createCardVideo('监控点8'))
elemtDeviceList.appendChild(createCardVideo('监控点9'))
elemtDeviceList.appendChild(createCardVideo('监控点1'))
elemtDeviceList.appendChild(createCardVideo('监控点2'))
elemtDeviceList.appendChild(createCardVideo('监控点3'))
elemtDeviceList.appendChild(createCardVideo('监控点4'))
elemtDeviceList.appendChild(createCardVideo('监控点5'))
elemtDeviceList.appendChild(createCardVideo('监控点6'))
elemtDeviceList.appendChild(createCardVideo('监控点7'))
elemtDeviceList.appendChild(createCardVideo('监控点8'))
elemtDeviceList.appendChild(createCardVideo('监控点9'))
elemtDeviceList.appendChild(createCardVideo('监控点10'))
elemtDeviceList.appendChild(createCardVideo('监控点11'))
elemtDeviceList.appendChild(createCardVideo('监控点12'))
elemtDeviceList.appendChild(createCardVideo('监控点13'))
elemtDeviceList.appendChild(createCardVideo('监控点14'))
elemtDeviceList.appendChild(createCardVideo('监控点15'))
elemtDeviceList.appendChild(createCardVideo('监控点16'))
return
}
var reqDeviceType = ['101', '102', '103']
if (deviceType === 'storage') {
document.getElementById('envpanel').style.display = 'none'
var reqDeviceType = []
if (deviceType === 'solar') {
reqDeviceType = ['101', '102', '103']
}
else if (deviceType === 'storage') {
reqDeviceType = ['101', '102', '106']
}
else if (deviceType === 'charge') {
subList = ['1', '2']
reqDeviceType = ['108']
}
else {
document.getElementById('envpanel').style.display = 'none'
else if (deviceType == 'load') {
reqDeviceType = []
}
// 查询数据库,获取设备信息
//G.cppNative.queryDevice({ type: reqDeviceType }).then((res) => {
G.cppNative.getDeviceInfo(reqDeviceType).then((res) => {
@@ -296,20 +298,23 @@ $(document).ready(function () {
}
})
$('#solarDeviceNum').text('光伏板数量: ' + nums['103'].num + '')
$('#solarIdleNum').text('空闲: ' + nums['103'].numIdle + '')
$('#solarOfflineNum').text('离线: ' + nums['103'].numOffline + '')
$('#solarFaultNum').text('故障: ' + nums['103'].numFault + '')
$('#solarDeviceNum').text('光伏板数量: ' + nums['103'].num + '')
$('#solarIdleNum').text('空闲: ' + nums['103'].numIdle + '')
$('#solarOfflineNum').text('离线: ' + nums['103'].numOffline + '')
$('#solarFaultNum').text('故障: ' + nums['103'].numFault + '')
$('#storageDeviceNum').text('储能电池数量: ' + nums['106'].num + '')
$('#storageIdleNum').text('空闲: ' + nums['106'].numIdle + '')
$('#storageOfflineNum').text('离线: ' + nums['106'].numOffline + '')
$('#storageFaultNum').text('故障: ' + nums['106'].numFault + '')
$('#storageDeviceNum').text('储能电池数量: ' + nums['106'].num + '')
$('#storageIdleNum').text('空闲: ' + nums['106'].numIdle + '')
$('#storageOfflineNum').text('离线: ' + nums['106'].numOffline + '')
$('#storageFaultNum').text('故障: ' + nums['106'].numFault + '')
$('#chargeDeviceNum').text('充电桩数量: ' + nums['108'].num + '')
$('#chargeIdleNum').text('空闲: ' + nums['108'].numIdle + '')
$('#chargeOfflineNum').text('离线: ' + nums['108'].numOffline + '')
$('#chargeFaultNum').text('故障: ' + nums['108'].numFault + '')
$('#chargeDeviceNum').text('充电桩数量: ' + nums['108'].num + '')
$('#chargeIdleNum').text('空闲: ' + nums['108'].numIdle + '')
$('#chargeOfflineNum').text('离线: ' + nums['108'].numOffline + '')
$('#chargeFaultNum').text('故障: ' + nums['108'].numFault + '')
$('#securityDeviceNum').text('摄像头数量: ' + 16 + '')
$('#securityIdleNum').text('空闲: ' + 16 + '')
})
// 定时更新页面数据