Browse Source

提示文字修改 指令增加自检

master
王梦远 3 weeks ago
parent
commit
845d152c15
  1. 1
      src/libs/utils.ts
  2. 6
      src/views/main/index.vue

1
src/libs/utils.ts

@ -73,6 +73,7 @@ export const cmdNameMap = {
nozzle_heat_stop: '停止喷嘴加热', nozzle_heat_stop: '停止喷嘴加热',
slide_plat_heat_start: '开启载玻台加热', slide_plat_heat_start: '开启载玻台加热',
slide_plat_heat_stop: '停止载玻台加热', slide_plat_heat_stop: '停止载玻台加热',
move_test: '自检',
} }
export const generateColors = (count: number): string[] => { export const generateColors = (count: number): string[] => {

6
src/views/main/index.vue

@ -178,7 +178,7 @@ watch(() => isClose.value, async (newValue) => {
}) })
const slideSwitch = async () => { const slideSwitch = async () => {
if (systemStore.systemStatus.slidePlatHeating) { if (systemStore.systemStatus.slidePlatHeating) {
ElMessageBox.confirm('确认关闭喷头加热?', '提示', {
ElMessageBox.confirm('确认关闭载玻台加热?', '提示', {
type: 'warning', type: 'warning',
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -193,11 +193,11 @@ const slideSwitch = async () => {
cmdId: '', cmdId: '',
} }
await sendControl(params) await sendControl(params)
FtMessage.success('已关闭载台加热')
FtMessage.success('已关闭载台加热')
}) })
} }
else { else {
FtMessage.warning('载台加热已关闭')
FtMessage.warning('载台加热已关闭')
} }
} }
const nozzleSwitch = async () => { const nozzleSwitch = async () => {

Loading…
Cancel
Save