|
|
@ -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); |
|
|
|