|
|
@ -110,12 +110,15 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
|
let dimCapId = null; |
|
|
|
|
|
|
|
const promiseArr = [ |
|
|
|
dispatch(bigScreen.axyData({ |
|
|
|
type: 'get', url: `/metrics/things/${thingId}/devices/link_status` |
|
|
|
})), |
|
|
|
dispatch(bigScreen.axyData({ |
|
|
|
type: 'get', url: `/things/${thingId}/devices/deploy` |
|
|
|
})) |
|
|
|
// dispatch(bigScreen.axyData({
|
|
|
|
// type: 'get', url: `/metrics/things/${thingId}/devices/link_status`
|
|
|
|
// })),
|
|
|
|
// dispatch(bigScreen.axyData({
|
|
|
|
// type: 'get', url: `/things/${thingId}/devices/deploy`
|
|
|
|
// }))
|
|
|
|
|
|
|
|
dispatch(bigScreen.getDevices({ thingId: thingId })), |
|
|
|
dispatch(bigScreen.getInstances({ thingId: thingId })) |
|
|
|
] |
|
|
|
Promise.all(promiseArr).then(resArr => { |
|
|
|
if (resArr[0].success && resArr[1].success) { |
|
|
@ -135,10 +138,7 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
dispatch(bigScreen.axyData({ |
|
|
|
type: 'post', url: `/capabilities/invoke`, |
|
|
|
params: { |
|
|
|
data: { |
|
|
|
dispatch(bigScreen.getCapabilitiesInvoke({ |
|
|
|
thingId, |
|
|
|
deviceId, |
|
|
|
dimCapId, |
|
|
@ -148,8 +148,6 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
|
order: label === '模式切换' ? 'mode' : label === '启动控制' ? 'run' : 'stop', |
|
|
|
value: nextChecked.模式切换 ? 1 : 0 // 0:平台手动,1:启动泵/停止泵/平台液控)
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
})).then(res => { |
|
|
|
console.log('控制res', res) |
|
|
|
}) |
|
|
|