Browse Source

移动样本到观察区

master
sige 1 year ago
parent
commit
ed53650391
  1. 5
      src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue

5
src/web/src/pages/main/contents/OperationTubeRackTakeShot.vue

@ -9,13 +9,17 @@
import ApiClient from '@/utils/ApiClient';
import Common from '@/utils/Common';
import { Modal } from 'ant-design-vue';
import { useAppStore } from '@/stores/AppStore';
/** @var {Object} */
const props = defineProps({
activeSlot: Object,
});
/** @var {AppStore} */
const appStore = useAppStore();
//
async function actionMoveToLiquidPlate() {
appStore.setCameraEnable(true);
let client = ApiClient.getClient();
let task = await client.taskAppend('SampleMoveToLiquidPlate',{
slotIndex : props.activeSlot.index * 1,
@ -28,6 +32,7 @@ async function actionMoveToLiquidPlate() {
Modal.error({title: '失败', content: task.message});
break ;
} else if ( 'FINISHED' === task.status ) {
appStore.setCameraEnable(true);
break ;
}
await Common.delay(1000);

Loading…
Cancel
Save