3 changed files with 94 additions and 0 deletions
-
4src/web/src/pages/main/Page.vue
-
45src/web/src/pages/main/contents/notification/TaskStartResetPumpPipeSetupTubeRankPutIn.vue
-
45src/web/src/pages/main/contents/notification/TaskStartResetPumpPipeSetupTubeRankTakeOut.vue
@ -0,0 +1,45 @@ |
|||||
|
<template> |
||||
|
<a-modal v-if="enable" v-model:open="enable" title="设备准备中..." |
||||
|
:closable="false" |
||||
|
:mask-closable="false" |
||||
|
> |
||||
|
<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('TaskStartResetPumpPipeSetupTubeRankPutIn', handleTaskStartResetPumpPipeSetupTubeRankPutIn); |
||||
|
} |
||||
|
|
||||
|
// handle TaskStartResetErrorTubeRackPutIn |
||||
|
function handleTaskStartResetPumpPipeSetupTubeRankPutIn( task, data ) { |
||||
|
taskId = task; |
||||
|
params = data; |
||||
|
enable.value = true; |
||||
|
} |
||||
|
|
||||
|
// action ok |
||||
|
async function actionOk() { |
||||
|
enable.value = false; |
||||
|
let client = ApiClient.getClient(); |
||||
|
await client.taskActionExecute(taskId, "PumpPipeSetupTubeRankPutIn"); |
||||
|
} |
||||
|
</script> |
@ -0,0 +1,45 @@ |
|||||
|
<template> |
||||
|
<a-modal v-if="enable" v-model:open="enable" title="设备准备中..." |
||||
|
:closable="false" |
||||
|
:mask-closable="false" |
||||
|
> |
||||
|
<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('TaskStartResetPumpPipeSetupTubeRankTakeOut', handleTaskStartResetPumpPipeSetupTubeRankTakeOut); |
||||
|
} |
||||
|
|
||||
|
// handle TaskStartResetErrorTubeRackPutIn |
||||
|
function handleTaskStartResetPumpPipeSetupTubeRankTakeOut( task, data ) { |
||||
|
taskId = task; |
||||
|
params = data; |
||||
|
enable.value = true; |
||||
|
} |
||||
|
|
||||
|
// action ok |
||||
|
async function actionOk() { |
||||
|
enable.value = false; |
||||
|
let client = ApiClient.getClient(); |
||||
|
await client.taskActionExecute(taskId, "PumpPipeSetupTubeRankTakeOut"); |
||||
|
} |
||||
|
</script> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue