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