|
|
@ -46,10 +46,18 @@ |
|
|
|
</div> |
|
|
|
<div class="frame"> |
|
|
|
<div class="flex items-center gap-4 flex-wrap"> |
|
|
|
<label for="">加液泵编号:</label> |
|
|
|
<input type="number" v-model="pumpId" class="rounded-sm px-2" placeholder="输入加液泵编号" /> |
|
|
|
<label for="">选择液体:</label> |
|
|
|
<el-select v-model="solutionId" placeholder="Select" style="width: 120px"> |
|
|
|
<el-option |
|
|
|
v-for="item in settingStore.availableLiquids" |
|
|
|
:key="item.id" |
|
|
|
:label="item.name" |
|
|
|
:value="item.id" /> |
|
|
|
</el-select> |
|
|
|
<label for="">试管编号:</label> |
|
|
|
<input type="number" v-model="tubeNum" class="rounded-sm px-2 w-12" placeholder="输入加液泵编号" /> |
|
|
|
<label for="">注入量:</label> |
|
|
|
<input type="number" v-model="pumpAmount" class="rounded-sm px-2" placeholder="输入注入量" /> |
|
|
|
<input type="number" v-model="pumpAmount" class="rounded-sm px-2 w-16" placeholder="输入注入量" /> |
|
|
|
<span>ml</span> |
|
|
|
<!-- <label for="">当前容量:</label> |
|
|
|
<span class="text-warn">50</span> --> |
|
|
@ -79,7 +87,9 @@ |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<label for="">当前温度:</label> |
|
|
|
<span class="text-warn">{{ (statusStore.status?.heater || []).map(h => h.temperature).join(",") }}</span> |
|
|
|
<span class="text-warn">{{ |
|
|
|
(statusStore.status?.heater || []).map(h => h.temperature).join(",") |
|
|
|
}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -204,7 +214,8 @@ const x = ref(0); |
|
|
|
const y = ref(0); |
|
|
|
const z = ref(0); |
|
|
|
|
|
|
|
const pumpId = ref(1); |
|
|
|
const tubeNum = ref(1); |
|
|
|
const solutionId = ref(1); |
|
|
|
const pumpAmount = ref(10); |
|
|
|
|
|
|
|
const shakeUpSpeed = ref(5); |
|
|
@ -239,9 +250,9 @@ function onCmdClick(command: OperationCmd) { |
|
|
|
} else if (command === "downTray") { |
|
|
|
params = { areaId: selectedAreaForTray.value, height: trayHeight.value }; |
|
|
|
} else if (command === "moveMachineArm") { |
|
|
|
params = { x: x.value, y: y.value, z: z.value }; |
|
|
|
params = { position: `${x.value},${y.value},${z.value}` }; |
|
|
|
} else if (command === "injectFluid") { |
|
|
|
params = { areaId: pumpId.value, volume: pumpAmount.value }; |
|
|
|
params = { tubeNum: tubeNum.value, solutionId: solutionId.value, flowRate: pumpAmount.value }; |
|
|
|
} else if (command === "startHeat") { |
|
|
|
params = { areaId: selectedAreaForHeat.value, temperature: heatTemperature.value }; |
|
|
|
} else if (command === "stopHeat") { |
|
|
|