Browse Source

fix:ui修改

master
guoapeng 2 months ago
parent
commit
4050a6083b
  1. 67
      src/views/debug/index.vue
  2. 12
      src/views/home/index.vue

67
src/views/debug/index.vue

@ -653,12 +653,13 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('x', 'forward')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('x', 'forward')">
前进 前进
</ft-button> </ft-button>
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('x')">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('x', 'backward')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('x', 'backward')">
后退 后退
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('x')">
停止
</ft-button>
<ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_reset('x')"> <ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_reset('x')">
回原点 回原点
</ft-button> </ft-button>
@ -674,7 +675,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('x')"> <ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('x')">
移动 移动
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('x')">
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('x')">
停止 停止
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -708,12 +709,13 @@ const savePositionVisible = ref(false)
<ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_move('y', 'forward')"> <ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_move('y', 'forward')">
前进 前进
</ft-button> </ft-button>
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('y')">
停止
</ft-button>
<ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_move('y', 'backward')"> <ft-button type="primary" size="small" :click-handle="() => debug_transportation_arm_move('y', 'backward')">
后退 后退
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('y')">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_reset('y')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_reset('y')">
回原点 回原点
</ft-button> </ft-button>
@ -729,7 +731,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('y')"> <ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('y')">
移动 移动
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('y')">
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('y')">
停止 停止
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -763,12 +765,13 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('z', 'forward')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('z', 'forward')">
前进 前进
</ft-button> </ft-button>
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('z')">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('z', 'backward')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_move('z', 'backward')">
后退 后退
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('z')">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_reset('z')"> <ft-button size="small" type="primary" :click-handle="() => debug_transportation_arm_reset('z')">
回原点 回原点
</ft-button> </ft-button>
@ -784,7 +787,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('z')"> <ft-button size="small" type="primary" :click-handle="() => debug_gantry_position('z')">
移动 移动
</ft-button> </ft-button>
<ft-button size="small" :click-handle="() => debug_transportation_arm_stop('z')">
<ft-button size="small" class="stop-button" :click-handle="() => debug_transportation_arm_stop('z')">
停止 停止
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -825,7 +828,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_holding_jaw_open"> <ft-button size="small" type="primary" :click-handle="debug_holding_jaw_open">
执行 执行
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_holding_jaw_pause">
<ft-button size="small" class="stop-button" :click-handle="debug_holding_jaw_pause">
停止 停止
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -876,7 +879,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_liquid_arm_rotation"> <ft-button size="small" type="primary" :click-handle="debug_liquid_arm_rotation">
开始 开始
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_liquid_arm_stop">
<ft-button size="small" class="stop-button" :click-handle="debug_liquid_arm_stop">
停止 停止
</ft-button> </ft-button>
<ft-button size="small" type="primary" :click-handle="debug_liquid_arm_reset"> <ft-button size="small" type="primary" :click-handle="debug_liquid_arm_reset">
@ -928,7 +931,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_liquid_pump_start"> <ft-button size="small" type="primary" :click-handle="debug_liquid_pump_start">
启动 启动
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_liquid_pump_stop">
<ft-button size="small" class="stop-button" :click-handle="debug_liquid_pump_stop">
停止 停止
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -948,7 +951,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_shaker_start"> <ft-button size="small" type="primary" :click-handle="debug_shaker_start">
开始 开始
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_shaker_stop">
<ft-button size="small" class="stop-button" :click-handle="debug_shaker_stop">
停止 停止
</ft-button> </ft-button>
<ft-button size="small" type="primary" :click-handle="debug_shaker_reset"> <ft-button size="small" type="primary" :click-handle="debug_shaker_reset">
@ -1007,12 +1010,12 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_door_open"> <ft-button size="small" type="primary" :click-handle="debug_door_open">
开门 开门
</ft-button> </ft-button>
<ft-button size="small" class="stop-button" :click-handle="debug_door_stop">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="debug_door_close"> <ft-button size="small" type="primary" :click-handle="debug_door_close">
关门 关门
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_door_stop">
停止
</ft-button>
</div> </div>
</el-card> </el-card>
<el-card> <el-card>
@ -1041,13 +1044,13 @@ const savePositionVisible = ref(false)
<ft-button type="primary" size="small" :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 size="small" class="stop-button" :click-handle="debug_cover_elevator_stop">
停止
</ft-button>
<ft-button type="primary" size="small" :click-handle="debug_cover_elevator_lift_down"> <ft-button type="primary" size="small" :click-handle="debug_cover_elevator_lift_down">
下降 下降
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_cover_elevator_stop">
停止
</ft-button>
<ft-button type="primary" size="small" :click-handle="debug_cover_elevator_reset"> <ft-button type="primary" size="small" :click-handle="debug_cover_elevator_reset">
回原点 回原点
</ft-button> </ft-button>
@ -1127,12 +1130,13 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_lift_up"> <ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_lift_up">
上升 上升
</ft-button> </ft-button>
<ft-button size="small" class="stop-button" :click-handle="debug_pallet_elevator_stop">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_lift_down"> <ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_lift_down">
下降 下降
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_pallet_elevator_stop">
停止
</ft-button>
<ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_reset"> <ft-button size="small" type="primary" :click-handle="debug_pallet_elevator_reset">
回原点 回原点
</ft-button> </ft-button>
@ -1153,7 +1157,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_heater_start"> <ft-button size="small" type="primary" :click-handle="debug_heater_start">
开始加热 开始加热
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_heater_stop">
<ft-button size="small" class="stop-button" :click-handle="debug_heater_stop">
停止加热 停止加热
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -1181,7 +1185,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_cold_trap_start_refrigeration"> <ft-button size="small" type="primary" :click-handle="debug_cold_trap_start_refrigeration">
启动制冷 启动制冷
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_cold_trap_stop_refrigeration">
<ft-button size="small" class="stop-button" :click-handle="debug_cold_trap_stop_refrigeration">
停止制冷 停止制冷
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -1189,7 +1193,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_cold_trap_start_recycle"> <ft-button size="small" type="primary" :click-handle="debug_cold_trap_start_recycle">
启动循环 启动循环
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_cold_trap_stop_recycle">
<ft-button size="small" class="stop-button" :click-handle="debug_cold_trap_stop_recycle">
停止循环 停止循环
</ft-button> </ft-button>
</el-form-item> </el-form-item>
@ -1209,7 +1213,7 @@ const savePositionVisible = ref(false)
<ft-button size="small" type="primary" :click-handle="debug_fan_start"> <ft-button size="small" type="primary" :click-handle="debug_fan_start">
打开风扇 打开风扇
</ft-button> </ft-button>
<ft-button size="small" :click-handle="debug_fan_stop">
<ft-button size="small" class="stop-button" :click-handle="debug_fan_stop">
关闭风扇 关闭风扇
</ft-button> </ft-button>
</div> </div>
@ -1287,4 +1291,9 @@ const savePositionVisible = ref(false)
justify-content: center; justify-content: center;
} }
} }
.stop-button {
margin-right:8px;
font-weight: 900;
margin-left:3px
}
</style> </style>

12
src/views/home/index.vue

@ -667,7 +667,11 @@ const take_photo = async () => {
justify-content: flex-end; justify-content: flex-end;
.el-row { .el-row {
height: fit-content; height: fit-content;
margin-bottom: 5px;
margin: 5px 0;
.el-col {
display: flex;
justify-content: center;
}
} }
} }
} }
@ -676,9 +680,13 @@ const take_photo = async () => {
} }
.el-col { .el-col {
.ft-button { .ft-button {
width: 100%;
width: 100px;
font-weight: bold;
box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.05);
.my-button { .my-button {
padding: 0 !important; padding: 0 !important;
border: 3px solid #1989fa !important;
} }
} }

Loading…
Cancel
Save