|
|
@ -426,7 +426,7 @@ |
|
|
|
defHttp |
|
|
|
.get( |
|
|
|
{ |
|
|
|
url: '/military/msDeviceInfo/list', |
|
|
|
url: '/military/dtDeviceInfo/list', |
|
|
|
params: { deviceType: 4 }, |
|
|
|
}, |
|
|
|
{ isTransformResponse: false } |
|
|
@ -436,10 +436,19 @@ |
|
|
|
if (res.result.records.length == 0) { |
|
|
|
return; |
|
|
|
} |
|
|
|
// device.value = res.result.records; |
|
|
|
// let ip = device[0].value.ip; |
|
|
|
// let port = device[0].value.port; |
|
|
|
// let data = 'ip=' + ip + '&port=' + port; |
|
|
|
// service.get('/alarm/recv/photovoltaics/status?' + data).then((res) => { |
|
|
|
// gateway.value = res.data.gateway; |
|
|
|
// MPPT_CTRLR.value = res.data.MPPT_CTRLR; |
|
|
|
// AC_POWER_METER1.value = res.data.AC_POWER_METER1; |
|
|
|
// AC_POWER_METER2.value = res.data.AC_POWER_METER2; |
|
|
|
device.value = res.result.records; |
|
|
|
let ip = device[0].value.ip; |
|
|
|
let port = device[0].value.port; |
|
|
|
let data = 'ip=' + ip + '&port=' + port; |
|
|
|
let deviceIp = device[0].value.deviceIp; |
|
|
|
let ipPort = device[0].value.ipPort; |
|
|
|
let data = 'deviceIp=' + deviceIp + '&ipPort=' + ipPort; |
|
|
|
service.get('/alarm/recv/photovoltaics/status?' + data).then((res) => { |
|
|
|
gateway.value = res.data.gateway; |
|
|
|
MPPT_CTRLR.value = res.data.MPPT_CTRLR; |
|
|
@ -456,16 +465,16 @@ |
|
|
|
defHttp |
|
|
|
.get( |
|
|
|
{ |
|
|
|
url: '/military/msDeviceInfo/list', |
|
|
|
url: '/military/dtDeviceInfo/list', |
|
|
|
params: { deviceName: value }, |
|
|
|
}, |
|
|
|
{ isTransformResponse: false } |
|
|
|
) |
|
|
|
// getAction('/military/msDeviceInfo/list?deviceName=' + value) |
|
|
|
.then((res) => { |
|
|
|
let ip = res.result.records[0].ip; |
|
|
|
let port = res.result.records[0].port; |
|
|
|
let data = 'ip=' + ip + '&port=' + port; |
|
|
|
let deviceIp = res.result.records[0].deviceIp; |
|
|
|
let ipPort = res.result.records[0].ipPort; |
|
|
|
let data = 'deviceIp=' + deviceIp + '&ipPort=' + ipPort; |
|
|
|
service.get('/alarm/recv/photovoltaics/status?' + data).then((res) => { |
|
|
|
this.gateway = res.data.gateway; |
|
|
|
this.MPPT_CTRLR = res.data.MPPT_CTRLR; |
|
|
|