|
|
@ -25,7 +25,77 @@ const form = reactive({ |
|
|
|
direction: 'forward', |
|
|
|
speed: undefined, |
|
|
|
voltage: undefined, |
|
|
|
nozzle: { |
|
|
|
temperature: undefined, |
|
|
|
}, |
|
|
|
slidePlat: { |
|
|
|
temperature: undefined, |
|
|
|
}, |
|
|
|
}) |
|
|
|
const nozzleHeatOpen = async () => { |
|
|
|
if (!form.nozzle.temperature) { |
|
|
|
FtMessage.error('请输入设置温度') |
|
|
|
return |
|
|
|
} |
|
|
|
const params = { |
|
|
|
cmdCode: 'nozzle_heat_open', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
temperature: form.nozzle.temperature, |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const nozzleHeatClose = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'nozzle_heat_close', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const nozzleHeatGet = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'nozzle_heat_get', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const slidePlatHeatOpen = async () => { |
|
|
|
if (!form.nozzle.temperature) { |
|
|
|
FtMessage.error('请输入设置温度') |
|
|
|
return |
|
|
|
} |
|
|
|
const params = { |
|
|
|
cmdCode: 'slide_plat_heat_open', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
temperature: form.nozzle.temperature, |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const slidePlatHeatClose = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'slide_plat_heat_close', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const slidePlatHeatGet = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'slide_plat_heat_get', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
}, |
|
|
|
} |
|
|
|
await sendControl(params, 'debug') |
|
|
|
} |
|
|
|
const motorMove = async (device: 'x' | 'y' | 'z') => { |
|
|
|
if (!form[device].position || !form[device].speed) { |
|
|
|
FtMessage.error('请补全参数') |
|
|
@ -197,7 +267,7 @@ const highVoltageClose = async () => { |
|
|
|
<el-card> |
|
|
|
<el-form label-width="auto" label-suffix=":"> |
|
|
|
<el-form-item label="X轴"> |
|
|
|
<div style="display: flex; align-items: center;margin: 5px 0"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<div style="margin: 0 5px"> |
|
|
|
<span>移动</span> |
|
|
|
<el-input v-model="form.x.position" style="width: 100px" type="number" /> |
|
|
@ -232,7 +302,7 @@ const highVoltageClose = async () => { |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Y轴"> |
|
|
|
<div style="display: flex; align-items: center;margin: 5px 0"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<div style="margin: 0 5px"> |
|
|
|
<span>移动</span> |
|
|
|
<el-input v-model="form.y.position" style="width: 100px" type="number" /> |
|
|
@ -267,7 +337,7 @@ const highVoltageClose = async () => { |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="Z轴"> |
|
|
|
<div style="display: flex; align-items: center;margin: 5px 0"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<div style="margin: 0 5px"> |
|
|
|
<span>移动</span> |
|
|
|
<el-input v-model="form.z.position" style="width: 100px" type="number" /> |
|
|
@ -307,7 +377,7 @@ const highVoltageClose = async () => { |
|
|
|
<el-form label-width="auto" label-suffix=":"> |
|
|
|
<el-form-item label="注射泵"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<el-input v-model="form.speed" type="number" style="width: 100px;" /> |
|
|
|
<el-input v-model="form.speed" type="number" style="width: 100px" /> |
|
|
|
<span>ul/min</span> |
|
|
|
<el-radio-group v-model="form.direction" style="margin: 10px"> |
|
|
|
<div style="display: flex"> |
|
|
@ -330,7 +400,7 @@ const highVoltageClose = async () => { |
|
|
|
|
|
|
|
<el-form-item label="电压控制器"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<el-input v-model="form.voltage" type="number" style="width: 100px;" /> |
|
|
|
<el-input v-model="form.voltage" type="number" style="width: 100px" /> |
|
|
|
<span>V</span> |
|
|
|
<ft-button type="primary" style="margin-left: 10px" :click-handle="highVoltageOpen"> |
|
|
|
开启 |
|
|
@ -342,16 +412,51 @@ const highVoltageClose = async () => { |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-card> |
|
|
|
<el-card> |
|
|
|
<el-form label-width="auto" label-suffix=":"> |
|
|
|
<el-form-item label="喷头加热"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<el-input v-model="form.nozzle.temperature" type="number" style="width: 100px" /> |
|
|
|
<span>℃</span> |
|
|
|
<ft-button type="primary" size="small" style="margin-left: 10px" :click-handle="nozzleHeatOpen"> |
|
|
|
开启 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="nozzleHeatClose"> |
|
|
|
关闭 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="nozzleHeatGet"> |
|
|
|
读取 |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="载玻台加热"> |
|
|
|
<div style="display: flex; align-items: center; margin: 5px 0"> |
|
|
|
<el-input v-model="form.slidePlat.temperature" type="number" style="width: 100px" /> |
|
|
|
<span>℃</span> |
|
|
|
<ft-button type="primary" style="margin-left: 10px" :click-handle="slidePlatHeatOpen"> |
|
|
|
开启 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="slidePlatHeatClose"> |
|
|
|
关闭 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="slidePlatHeatGet"> |
|
|
|
读取 |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-card> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-card style="display: flex;justify-content: center"> |
|
|
|
<el-card style="display: flex; justify-content: center"> |
|
|
|
<ft-button type="primary" :click-handle="lightingPanelOpen"> |
|
|
|
开启照明灯 |
|
|
|
</ft-button> |
|
|
|
<ft-button :click-handle="lightingPanelClose"> |
|
|
|
关闭照明灯 |
|
|
|
</ft-button> |
|
|
|
<div style="margin-top: 10px;display: flex;justify-content: center"> |
|
|
|
<div style="margin-top: 10px; display: flex; justify-content: center"> |
|
|
|
<!-- <ft-button type="primary" :click-handle="threeWayValveOpenSyringePipeline"> --> |
|
|
|
<!-- 打开喷嘴管路 --> |
|
|
|
<!-- </ft-button> --> |
|
|
@ -365,7 +470,7 @@ const highVoltageClose = async () => { |
|
|
|
</el-card> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-card style="display: flex;justify-content: center"> |
|
|
|
<el-card style="display: flex; justify-content: center"> |
|
|
|
<ft-button type="primary" :click-handle="washValveOpen"> |
|
|
|
打开清洗阀 |
|
|
|
</ft-button> |
|
|
@ -375,7 +480,7 @@ const highVoltageClose = async () => { |
|
|
|
<ft-button type="primary" :click-handle="dehumidifierValveOpen"> |
|
|
|
打开除湿阀 |
|
|
|
</ft-button> |
|
|
|
<div style="margin-top: 10px;display: flex;justify-content: center"> |
|
|
|
<div style="margin-top: 10px; display: flex; justify-content: center"> |
|
|
|
<ft-button :click-handle="washValveClose"> |
|
|
|
关闭清洗阀 |
|
|
|
</ft-button> |
|
|
@ -398,13 +503,16 @@ const highVoltageClose = async () => { |
|
|
|
border-radius: 20px; |
|
|
|
color: var(--el-color-primary); |
|
|
|
} |
|
|
|
|
|
|
|
:deep(.el-card__body) { |
|
|
|
padding: 50px; |
|
|
|
} |
|
|
|
|
|
|
|
.card-header { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.num-box { |
|
|
|
margin: 0 20px; |
|
|
|
width: 50px; |
|
|
@ -417,11 +525,13 @@ const highVoltageClose = async () => { |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.button-footer { |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; |
|
|
|
margin: 50px; |
|
|
|
} |
|
|
|
|
|
|
|
.hint-text { |
|
|
|
display: flex; |
|
|
|
height: 400px; |
|
|
@ -431,6 +541,7 @@ const highVoltageClose = async () => { |
|
|
|
font-size: 50px; |
|
|
|
color: var(--el-color-primary); |
|
|
|
} |
|
|
|
|
|
|
|
.num-text { |
|
|
|
color: var(--el-color-primary); |
|
|
|
font-weight: 900; |
|
|
@ -439,10 +550,10 @@ const highVoltageClose = async () => { |
|
|
|
|
|
|
|
:deep(.el-form-item) { |
|
|
|
--font-size: 40px; |
|
|
|
margin-bottom: 10px |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.el-input { |
|
|
|
margin: 0 15px |
|
|
|
margin: 0 15px; |
|
|
|
} |
|
|
|
</style> |