|
|
@ -52,6 +52,22 @@ |
|
|
|
<div class="debug_left"> |
|
|
|
<div class=""> |
|
|
|
<el-row> |
|
|
|
<el-col :span="6" >电机回原点</el-col> |
|
|
|
<el-col :span="14"> |
|
|
|
<el-radio-group v-model="initForm.axis"> |
|
|
|
<el-radio value="X">X</el-radio> |
|
|
|
<el-radio value="Y">Y</el-radio> |
|
|
|
<el-radio value="Z">Z</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
<el-col :span="2"> |
|
|
|
<el-button type="primary" @click="onMotorMoveToHome">回原点</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-divider /> |
|
|
|
|
|
|
|
<el-row> |
|
|
|
<el-col :span="6" >电机转速</el-col> |
|
|
|
<el-col :span="14"> |
|
|
|
<el-radio-group v-model="rotateForm.axis"> |
|
|
@ -332,9 +348,10 @@ import { |
|
|
|
startWash, |
|
|
|
startDehumidify, |
|
|
|
stopDehumidify, |
|
|
|
motorMoveToHome |
|
|
|
} from "@/services/globalCmd/globalCmd"; |
|
|
|
import type { BaseResponse } from "@/services/httpRequest"; |
|
|
|
import type { WorkType } from '../../services/globalCmd/cmdTypes'; |
|
|
|
import type { WorkType, Home } from '../../services/globalCmd/cmdTypes'; |
|
|
|
const activeName = ref("debug"); |
|
|
|
const voltageValue = ref(); |
|
|
|
const syringeForm = ref<SyringeParams>({ |
|
|
@ -553,6 +570,18 @@ function success(data:BaseResponse) { |
|
|
|
ElMessage.error(data.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
//回原点 |
|
|
|
const initForm = ref<Home>({ |
|
|
|
axis: 'X' |
|
|
|
}) |
|
|
|
function onMotorMoveToHome(){ |
|
|
|
const params = <Home>{ |
|
|
|
...initForm.value |
|
|
|
} |
|
|
|
motorMoveToHome(params).then((res) => { |
|
|
|
success(res); |
|
|
|
}); |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
div { |
|
|
|