|
|
@ -631,6 +631,50 @@ const debug_stop_all_motor = async () => { |
|
|
|
} |
|
|
|
|
|
|
|
const savePositionVisible = ref(false) |
|
|
|
|
|
|
|
const debug_fill_light_open = async () => { |
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
const params = { |
|
|
|
commandId: currentCommandId, |
|
|
|
command: 'debug_fill_light_open', |
|
|
|
params: { |
|
|
|
...debugStore.formData.light, |
|
|
|
}, |
|
|
|
} |
|
|
|
await debugStore.sendControl(params) |
|
|
|
} |
|
|
|
const debug_fill_light_close = async () => { |
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
const params = { |
|
|
|
commandId: currentCommandId, |
|
|
|
command: 'debug_fill_light_close', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await debugStore.sendControl(params) |
|
|
|
} |
|
|
|
|
|
|
|
const debug_tri_color_light_open = async () => { |
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
const params = { |
|
|
|
commandId: currentCommandId, |
|
|
|
command: 'debug_tri_color_light_open', |
|
|
|
params: { |
|
|
|
...debugStore.formData.light, |
|
|
|
}, |
|
|
|
} |
|
|
|
await debugStore.sendControl(params) |
|
|
|
} |
|
|
|
const debug_tri_color_light_close = async () => { |
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
const params = { |
|
|
|
commandId: currentCommandId, |
|
|
|
command: 'debug_tri_color_light_close', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await debugStore.sendControl(params) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -1114,6 +1158,55 @@ const savePositionVisible = ref(false) |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card> |
|
|
|
<template #header> |
|
|
|
<div class="card-header"> |
|
|
|
<span>灯光</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<el-divider>补光灯</el-divider> |
|
|
|
<div class="card-box"> |
|
|
|
<el-form> |
|
|
|
<el-form-item label="亮度"> |
|
|
|
<el-slider v-model="debugStore.formData.light.lightIntensity" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<ft-button type="primary" :click-handle="debug_fill_light_open"> |
|
|
|
开启 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="debug_fill_light_close"> |
|
|
|
关闭 |
|
|
|
</ft-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<el-divider>三色灯</el-divider> |
|
|
|
<div class="card-box"> |
|
|
|
<el-form> |
|
|
|
<el-form-item label="颜色"> |
|
|
|
<el-radio-group v-model="debugStore.formData.light.color"> |
|
|
|
<el-radio value="RED"> |
|
|
|
红色 |
|
|
|
</el-radio> |
|
|
|
<el-radio value="GREEN"> |
|
|
|
绿色 |
|
|
|
</el-radio> |
|
|
|
<el-radio value="BLUE"> |
|
|
|
蓝色 |
|
|
|
</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<ft-button type="primary" :click-handle="debug_tri_color_light_open"> |
|
|
|
开启 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="debug_tri_color_light_close"> |
|
|
|
关闭 |
|
|
|
</ft-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-card> |
|
|
|