sige 1 year ago
parent
commit
4cd9552af0
  1. 9
      src/src/main/java/com/my/graphiteDigesterBg/diframe/actuator/DiActMotor.java
  2. 41
      src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackTakeOut.vue

9
src/src/main/java/com/my/graphiteDigesterBg/diframe/actuator/DiActMotor.java

@ -119,4 +119,13 @@ public class DiActMotor extends DiActuatorBase {
this.call(DiCommand.MOTOR_EASY_MOVE_TO_IO, ioIndex, direction);
this.waitForFinish();
}
/**
* move to position
* @action
* @param pos - position to move
*/
public void moveToPosition( Integer pos ) {
this.moveTo(pos);
}
}

41
src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackTakeOut.vue

@ -0,0 +1,41 @@
<template>
<a-modal v-if="enable" v-model:open="enable" title="设备准备中...">
<p>请取出试管架 取出后后请点击 确定 按钮以继续</p>
<template #footer>
<a-button type="primary" @click="actionOk">确定</a-button>
</template>
</a-modal>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { useAppStore } from '@/stores/AppStore';
import ApiClient from '@/utils/ApiClient';
/** @var {AppStore} */
const appStore = useAppStore();
/** @var {Ref<boolean>} */
const enable = ref(false);
/** @var {string} */
let taskId = null;
/** @var {Object} */
let params = null;
// on mounted
onMounted(mounted);
// mounted
function mounted() {
appStore.registerNotificationHandler('TaskStartResetErrorTubeRackTakeOut', handleTaskStartResetErrorTubeRackTakeOut);
}
// handle TaskStartResetErrorTubeRackPutIn
function handleTaskStartResetErrorTubeRackTakeOut( task ) {
taskId = task;
enable.value = true;
}
// action ok
async function actionOk() {
enable.value = false;
let client = ApiClient.getClient();
await client.taskActionExecute(taskId, "ErrorTubeRackTakeOut");
}
</script>
Loading…
Cancel
Save