Browse Source

fix: debug 真空泵

master
guoapeng 2 months ago
parent
commit
0f5022bcf3
  1. 2
      src/libs/utils.ts
  2. 45
      src/views/debug/index.vue

2
src/libs/utils.ts

@ -56,6 +56,8 @@ export const cmdNameMap = {
filled_solution_start: '开始预充',
filled_solution_stop: '停止预充',
debug_show_smog: '展示烟雾',
debug_vacuum_valve_open: '开启真空泵阀门',
debug_vacuum_valve_close: '关闭真空泵阀门',
}
export const generateColors = (count: number): string[] => {

45
src/views/debug/index.vue

@ -75,6 +75,30 @@ const debug_pallet_elevator_reset = async () => {
await debugStore.sendControl(params)
}
const debug_vacuum_valve_open = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_vacuum_valve_open',
params: {
heatId: debugStore.formData.heatArea.index,
},
}
await debugStore.sendControl(params)
}
const debug_vacuum_valve_close = async () => {
currentCommandId = Date.now().toString()
const params = {
commandId: currentCommandId,
command: 'debug_vacuum_valve_close',
params: {
heatId: debugStore.formData.heatArea.index,
},
}
await debugStore.sendControl(params)
}
const debug_heater_start = async () => {
currentCommandId = Date.now().toString()
const params = {
@ -1174,6 +1198,18 @@ const savePositionVisible = ref(false)
</el-form-item>
</el-form>
</div>
<el-divider>真空泵</el-divider>
<div class="card-box">
<el-form>
<el-form-item>
<ft-button size="small" type="primary" :click-handle="debug_vacuum_valve_open">
开启阀门
</ft-button>
<ft-button size="small" class="stop-button" :click-handle="debug_vacuum_valve_close">
关闭阀门
</ft-button>
</el-form-item>
</el-form>
<el-divider>加热棒</el-divider>
<div class="card-box">
<el-form>
@ -1192,14 +1228,6 @@ const savePositionVisible = ref(false)
停止加热
</ft-button>
</el-form-item>
<!-- <el-form-item> -->
<!-- <ft-button type="primary" :click-handle="debug_heater_start_heat_maintaining"> -->
<!-- 开始恒温 -->
<!-- </ft-button> -->
<!-- <ft-button :click-handle="debug_heater_stop_heat_maintaining"> -->
<!-- 停止恒温 -->
<!-- </ft-button> -->
<!-- </el-form-item> -->
</el-form>
</div>
<el-divider>冷阱</el-divider>
@ -1248,6 +1276,7 @@ const savePositionVisible = ref(false)
关闭风扇
</ft-button>
</div>
</div>
</el-card>
</el-col>
</el-row>

Loading…
Cancel
Save