Browse Source

map中增加喷嘴和载玻台加热和停止加热的指令

移除推入 推出指令 重新排列页面下方的状态显示
master
王梦远 3 weeks ago
parent
commit
5a61ba7cb5
  1. 5
      src/libs/utils.ts
  2. 54
      src/views/main/index.vue

5
src/libs/utils.ts

@ -69,7 +69,10 @@ export const cmdNameMap = {
motor_xyz_origin: '三轴回原点',
device_self_test: '设备自检',
matrix_spray_change_param: '实时调整参数',
nozzle_heat_start: '开启喷嘴加热',
nozzle_heat_stop: '停止喷嘴加热',
slide_plat_heat_start: '开启载玻台加热',
slide_plat_heat_stop: '停止载玻台加热',
}
export const generateColors = (count: number): string[] => {

54
src/views/main/index.vue

@ -141,21 +141,21 @@ const handleLogoClick = () => {
}, 1000)
}
const slideTrayIn = async () => {
const params = {
cmdCode: 'slide_tray_in',
cmdId: '',
}
await sendControl(params)
}
const slideTrayOut = async () => {
const params = {
cmdCode: 'slide_tray_out',
cmdId: '',
}
await sendControl(params)
}
// const slideTrayIn = async () => {
// const params = {
// cmdCode: 'slide_tray_in',
// cmdId: '',
// }
// await sendControl(params)
// }
//
// const slideTrayOut = async () => {
// const params = {
// cmdCode: 'slide_tray_out',
// cmdId: '',
// }
// await sendControl(params)
// }
watch(() => isClose.value, async (newValue) => {
if (!newValue) {
@ -262,26 +262,32 @@ const nozzleSwitch = async () => {
<ft-button type="info">
当前湿度: {{ systemStore.systemSensor.humidity }}%RH
</ft-button>
</div>
<div>
<ft-button type="info" :click-handle="nozzleSwitch">
<img v-if="systemStore.systemStatus.nozzleHeating" src="../../assets/images/entry/heat_icon.svg" alt="" width="20px">
喷头温度: {{ systemStore.systemSensor.nozzleTemperature }}
</ft-button>
</div>
<div>
<ft-button type="info" :click-handle="slideSwitch">
<img v-if="systemStore.systemStatus.slidePlatHeating" src="../../assets/images/entry/heat_icon.svg" alt="" width="20px">
载玻台温度: {{ systemStore.systemSensor.slideTemperature }}
</ft-button>
<ft-button type="info">
设备状态: {{ status }}
</ft-button>
</div>
<div>
<ft-button :click-handle="slideTrayIn" :disabled="systemStore.systemStatus.spraying">
推入托盘
</ft-button>
<ft-button :click-handle="slideTrayOut" :disabled="systemStore.systemStatus.spraying">
推出托盘
<ft-button type="info">
设备状态: {{ status }}
</ft-button>
</div>
<!-- <div> -->
<!-- <ft-button :click-handle="slideTrayIn" :disabled="systemStore.systemStatus.spraying"> -->
<!-- 推入托盘 -->
<!-- </ft-button> -->
<!-- <ft-button :click-handle="slideTrayOut" :disabled="systemStore.systemStatus.spraying"> -->
<!-- 推出托盘 -->
<!-- </ft-button> -->
<!-- </div> -->
</el-footer>
<FtStream :visible="systemStore.streamVisible" />
<Stop v-if="systemStore.systemStatus.stopPressed" />
@ -326,7 +332,7 @@ const nozzleSwitch = async () => {
padding:0 65px;
height: 120px;
display: flex;
justify-content: space-between;
justify-content: space-evenly;
align-items: center;
}
}

Loading…
Cancel
Save