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

Loading…
Cancel
Save