|
@ -258,7 +258,6 @@ import { |
|
|
//连接websocket |
|
|
//连接websocket |
|
|
const wsClient = createWebSocket(sharedWsUrl); |
|
|
const wsClient = createWebSocket(sharedWsUrl); |
|
|
subscription = wsClient.dataOb.subscribe(data => { |
|
|
subscription = wsClient.dataOb.subscribe(data => { |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
wsClient.connect(); |
|
|
wsClient.connect(); |
|
|
}) |
|
|
}) |
|
@ -271,7 +270,6 @@ import { |
|
|
const onMoveMachinery = (axis:string) => { |
|
|
const onMoveMachinery = (axis:string) => { |
|
|
if(!axis)return; |
|
|
if(!axis)return; |
|
|
const x = parseFloat(parseFloat(machineryForm.value[axis]).toFixed(1)); |
|
|
const x = parseFloat(parseFloat(machineryForm.value[axis]).toFixed(1)); |
|
|
console.log('x-------', x) |
|
|
|
|
|
const params = { |
|
|
const params = { |
|
|
commandName:'moveMotorToPosition', |
|
|
commandName:'moveMotorToPosition', |
|
|
params: <MachineryType>{ |
|
|
params: <MachineryType>{ |
|
|