Browse Source

fix: 工艺预热增加选择区域

master
guoapeng 1 month ago
parent
commit
7b5575cdc8
  1. 8
      src/components/craft/AddCraft/index.vue

8
src/components/craft/AddCraft/index.vue

@ -105,7 +105,7 @@ const okHandle = async () => {
step.params.description += `针头高度${step.params.height}mm抽取液体`
break
case 'preHeat':
step.params.description += `预热到${step.params.temperature}`
step.params.description += `${step.params.type === 'heat' ? '加热区' : '退火区'}预热到${step.params.temperature}`
break
case 'heat':
step.params.description += `加热: ${step.params.temperature}度, 保持${step.params.minutes || 0}${step.params.seconds || 0}`
@ -149,7 +149,7 @@ const cancel = () => {
}
const stepMap = {
preHeat: { name: '预热', method: 'preHeat', params: { temperature: undefined, description: undefined } },
preHeat: { name: '预热', method: 'preHeat', params: { type: 'heat', temperature: undefined, description: undefined } },
addThin: {
name: '加稀硝酸',
method: 'addThin',
@ -260,6 +260,10 @@ const addStep = (data: any) => {
</el-input>
</template>
<template v-else-if="item.method === 'preHeat'">
<el-select v-model="item.params.type" size="small">
<el-option label="加热区" value="heat" />
<el-option label="退火区" value="anneal" />
</el-select>
<el-input
v-model="item.params.temperature"
type="number"

Loading…
Cancel
Save