Browse Source

fix:调试添加功能

master
guoapeng 3 months ago
parent
commit
9552686871
  1. 165
      src/views/debug/index.vue

165
src/views/debug/index.vue

@ -506,6 +506,56 @@ const debug_cap_out_heat_area = async () => {
} }
await debugStore.sendControl(params) await debugStore.sendControl(params)
} }
const debug_cap_up_one = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_cap_up_one',
params: {},
}
await debugStore.sendControl(params)
}
const debug_cap_down_one = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_cap_up_one',
params: {},
}
await debugStore.sendControl(params)
}
const debug_enable_all_motor = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_enable_all_motor',
params: {},
}
await debugStore.sendControl(params)
}
const debug_disabled_all_motor = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_disabled_all_motor',
params: {},
}
await debugStore.sendControl(params)
}
const debug_stop_all_motor = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_stop_all_motor',
params: {},
}
await debugStore.sendControl(params)
}
</script> </script>
<template> <template>
@ -514,7 +564,30 @@ const debug_cap_out_heat_area = async () => {
<!-- <el-tab-pane label="单步指令" :name="1" /> --> <!-- <el-tab-pane label="单步指令" :name="1" /> -->
<!-- <el-tab-pane label="复合指令" :name="2" /> --> <!-- <el-tab-pane label="复合指令" :name="2" /> -->
<!-- </el-tabs> --> <!-- </el-tabs> -->
<el-row :gutter="10">
<el-row class="button-content">
<el-col :span="8">
<div class="button-box">
<ft-button type="primary" :click-handle="debug_enable_all_motor">
使能所有电机
</ft-button>
</div>
</el-col>
<el-col :span="8">
<div class="button-box">
<ft-button type="primary" :click-handle="debug_disabled_all_motor">
失能所有电机
</ft-button>
</div>
</el-col>
<el-col :span="8">
<div class="button-box">
<ft-button type="primary" :click-handle="debug_stop_all_motor">
停止所有电机
</ft-button>
</div>
</el-col>
</el-row>
<el-row :gutter="10" class="card-content">
<el-col :span="8"> <el-col :span="8">
<el-card> <el-card>
<template #header> <template #header>
@ -560,6 +633,19 @@ const debug_cap_out_heat_area = async () => {
回原点 回原点
</ft-button> </ft-button>
</el-form-item> </el-form-item>
<el-form-item label="指定位置">
<el-input v-model.number="debugStore.formData.transferModule.xMotorData.times" type="number" placeholder="请输入次数">
<template #append>
mm
</template>
</el-input>
</el-form-item>
<el-form-item>
<ft-button type="primary">
移动
</ft-button>
<ft-button>停止</ft-button>
</el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider>Y轴电机</el-divider> <el-divider>Y轴电机</el-divider>
@ -600,6 +686,19 @@ const debug_cap_out_heat_area = async () => {
回原点 回原点
</ft-button> </ft-button>
</el-form-item> </el-form-item>
<el-form-item label="指定位置">
<el-input v-model.number="debugStore.formData.transferModule.xMotorData.times" type="number" placeholder="请输入次数">
<template #append>
mm
</template>
</el-input>
</el-form-item>
<el-form-item>
<ft-button type="primary">
移动
</ft-button>
<ft-button>停止</ft-button>
</el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider>Z轴电机</el-divider> <el-divider>Z轴电机</el-divider>
@ -640,6 +739,19 @@ const debug_cap_out_heat_area = async () => {
回原点 回原点
</ft-button> </ft-button>
</el-form-item> </el-form-item>
<el-form-item label="指定位置">
<el-input v-model.number="debugStore.formData.transferModule.xMotorData.times" type="number" placeholder="请输入次数">
<template #append>
mm
</template>
</el-input>
</el-form-item>
<el-form-item>
<ft-button type="primary">
移动
</ft-button>
<ft-button>停止</ft-button>
</el-form-item>
</el-form> </el-form>
</div> </div>
<el-divider>夹爪舵机</el-divider> <el-divider>夹爪舵机</el-divider>
@ -725,15 +837,15 @@ const debug_cap_out_heat_area = async () => {
</el-form-item> </el-form-item>
</el-form> </el-form>
<ft-button type="primary" :click-handle="debug_liquid_arm_reset">
回原点
</ft-button>
<ft-button type="primary" :click-handle="debug_liquid_arm_rotation"> <ft-button type="primary" :click-handle="debug_liquid_arm_rotation">
开始 开始
</ft-button> </ft-button>
<ft-button :click-handle="debug_liquid_arm_stop"> <ft-button :click-handle="debug_liquid_arm_stop">
停止 停止
</ft-button> </ft-button>
<ft-button type="primary" :click-handle="debug_liquid_arm_reset">
回原点
</ft-button>
</div> </div>
<el-divider>加液泵</el-divider> <el-divider>加液泵</el-divider>
<div class="card-box"> <div class="card-box">
@ -803,7 +915,7 @@ const debug_cap_out_heat_area = async () => {
<ft-button :click-handle="debug_shaker_stop"> <ft-button :click-handle="debug_shaker_stop">
停止 停止
</ft-button> </ft-button>
<ft-button :click-handle="debug_shaker_reset">
<ft-button type="primary" :click-handle="debug_shaker_reset">
回原点 回原点
</ft-button> </ft-button>
</div> </div>
@ -885,14 +997,15 @@ const debug_cap_out_heat_area = async () => {
<el-form> <el-form>
<el-form-item> <el-form-item>
<ft-button size="small" type="primary" :click-handle="debug_move_tray_to_solution_area"> <ft-button size="small" type="primary" :click-handle="debug_move_tray_to_solution_area">
将托盘移至加液区
</ft-button>
<ft-button size="small" type="primary" :click-handle="debug_move_tray_to_heat_area">
将托盘移至加热区
托盘移至加液区
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_cap_in_heat_area">
<ft-button size="small" type="primary" :click-handle="debug_cap_in_heat_area">
安装拍子 安装拍子
</ft-button> </ft-button>
<ft-button size="small" type="primary" :click-handle="debug_move_tray_to_heat_area">
托盘移至加热区
</ft-button>
<ft-button size="small" type="primary" :click-handle="debug_cap_out_heat_area"> <ft-button size="small" type="primary" :click-handle="debug_cap_out_heat_area">
拆卸拍子 拆卸拍子
</ft-button> </ft-button>
@ -1037,20 +1150,25 @@ const debug_cap_out_heat_area = async () => {
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<ft-button type="primary" :click-handle="debug_cover_elevator_lift_up">
<ft-button type="primary" size="small" :click-handle="debug_cover_elevator_lift_up">
抬升 抬升
</ft-button> </ft-button>
<ft-button type="primary" :click-handle="debug_cover_elevator_lift_down">
<ft-button type="primary" size="small" :click-handle="debug_cover_elevator_lift_down">
下降 下降
</ft-button> </ft-button>
</el-form-item>
<el-form-item>
<ft-button type="primary" :click-handle="debug_cover_elevator_reset">
复位
</ft-button>
<ft-button :click-handle="debug_cover_elevator_stop">
<ft-button size="small" :click-handle="debug_cover_elevator_stop">
停止 停止
</ft-button> </ft-button>
<ft-button type="primary" size="small" :click-handle="debug_cover_elevator_reset">
回原点
</ft-button>
<ft-button type="primary" :click-handle="debug_cap_up_one">
提升一个拍子高度
</ft-button>
<ft-button type="primary" :click-handle="debug_cap_down_one">
下降一个拍子高度
</ft-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -1064,8 +1182,11 @@ const debug_cap_out_heat_area = async () => {
.debug-content { .debug-content {
overflow: hidden; overflow: hidden;
max-height: 100%; max-height: 100%;
.el-row {
height: 100%;
.button-content {
height: 40px;
}
.card-content {
height: calc(100% - 40px);
overflow: auto; overflow: auto;
} }
} }
@ -1116,4 +1237,8 @@ const debug_cap_out_heat_area = async () => {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.button-box {
display: flex;
justify-content: center;
}
</style> </style>
Loading…
Cancel
Save