From 886a352b7691a4809120619be1d1219f481757be Mon Sep 17 00:00:00 2001 From: sige Date: Wed, 6 Mar 2024 11:52:53 +0800 Subject: [PATCH] ~ --- src/web/package.json | 5 +- src/web/src/pages/main/Page.vue | 36 +++++++++- .../pages/main/contents/OperationTubeRackAdd.vue | 77 ++++++++-------------- .../notification/TaskSampleAddTubeRackPutIn.vue | 50 ++++++++++++++ .../TaskSampleAddTubeRackStatusConfirm.vue | 72 ++++++++++++++++++++ .../TaskStartResetErrorTubeRackPutIn.vue | 42 ++++++++++++ src/web/src/stores/AppStore.js | 9 +++ 7 files changed, 235 insertions(+), 56 deletions(-) create mode 100644 src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackPutIn.vue create mode 100644 src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackStatusConfirm.vue create mode 100644 src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackPutIn.vue diff --git a/src/web/package.json b/src/web/package.json index 1afa90f..8eae07c 100644 --- a/src/web/package.json +++ b/src/web/package.json @@ -49,9 +49,6 @@ } }, "browserslist": [ - "> 1%", - "last 2 versions", - "not dead", - "not ie 11" + "Chrome 98" ] } diff --git a/src/web/src/pages/main/Page.vue b/src/web/src/pages/main/Page.vue index 46a03f7..fc3b056 100644 --- a/src/web/src/pages/main/Page.vue +++ b/src/web/src/pages/main/Page.vue @@ -59,6 +59,9 @@ + + + \ No newline at end of file diff --git a/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackPutIn.vue b/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackPutIn.vue new file mode 100644 index 0000000..9c8ac6e --- /dev/null +++ b/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackPutIn.vue @@ -0,0 +1,50 @@ + + \ No newline at end of file diff --git a/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackStatusConfirm.vue b/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackStatusConfirm.vue new file mode 100644 index 0000000..8e57744 --- /dev/null +++ b/src/web/src/pages/main/contents/notification/TaskSampleAddTubeRackStatusConfirm.vue @@ -0,0 +1,72 @@ + + \ No newline at end of file diff --git a/src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackPutIn.vue b/src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackPutIn.vue new file mode 100644 index 0000000..91e011d --- /dev/null +++ b/src/web/src/pages/main/contents/notification/TaskStartResetErrorTubeRackPutIn.vue @@ -0,0 +1,42 @@ + + \ No newline at end of file diff --git a/src/web/src/stores/AppStore.js b/src/web/src/stores/AppStore.js index 5034d05..511cabf 100644 --- a/src/web/src/stores/AppStore.js +++ b/src/web/src/stores/AppStore.js @@ -8,6 +8,8 @@ export const useAppStore = defineStore('AppStore', { isDeviceReady : false, // is camera enable isCameraEnable : false, + // notification handlers + notificationHandlers : {}, }; }, @@ -25,5 +27,12 @@ export const useAppStore = defineStore('AppStore', { setCameraEnable( isEnable ) { this.isCameraEnable = isEnable; }, + // register notification handler + registerNotificationHandler( name, handler ) { + if ( !this.notificationHandlers[name] ) { + this.notificationHandlers[name] = []; + } + this.notificationHandlers[name].push(handler); + } }, }) \ No newline at end of file