From a367cbb635e61b716544e22a0455900cde0c02b9 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 13 Jan 2025 20:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=86=97=E4=BD=99=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Regular/TestTube.vue | 1 - src/pages/Index/TestTube/TubeUserId.vue | 3 --- src/pages/Index/components/TestTube/TestTubeRack.vue | 3 --- src/store/modules/testTube.ts | 18 ++---------------- 4 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/pages/Index/Regular/TestTube.vue b/src/pages/Index/Regular/TestTube.vue index 1d9df8d..3ba537e 100644 --- a/src/pages/Index/Regular/TestTube.vue +++ b/src/pages/Index/Regular/TestTube.vue @@ -243,7 +243,6 @@ const handleChangeUser = async (index) => { return } testTubeStore.setTubeRack(rack) - testTubeStore.setBloodTypes(bloodTypes.value) router.push({ path: '/index/change-user', diff --git a/src/pages/Index/TestTube/TubeUserId.vue b/src/pages/Index/TestTube/TubeUserId.vue index 5a3726a..2a69d1d 100644 --- a/src/pages/Index/TestTube/TubeUserId.vue +++ b/src/pages/Index/TestTube/TubeUserId.vue @@ -34,9 +34,6 @@
diff --git a/src/pages/Index/components/TestTube/TestTubeRack.vue b/src/pages/Index/components/TestTube/TestTubeRack.vue index ddfcf23..9880d6d 100644 --- a/src/pages/Index/components/TestTube/TestTubeRack.vue +++ b/src/pages/Index/components/TestTube/TestTubeRack.vue @@ -17,9 +17,6 @@
diff --git a/src/store/modules/testTube.ts b/src/store/modules/testTube.ts index a8b0ebd..acbadad 100644 --- a/src/store/modules/testTube.ts +++ b/src/store/modules/testTube.ts @@ -4,30 +4,16 @@ import type { TestTubeRack } from '../../types/Index' export const useTestTubeStore = defineStore( 'testTube', () => { + // 目前它用于传参。 跳转至「编辑用户ID信息」页面时,做数据转储 const tubeRack = ref({} as TestTubeRack) - const bloodTypes = ref<{ key: string; name: string }[]>([]) - // const projectSettings = ref>({}) + const setTubeRack = (rack: TestTubeRack) => { tubeRack.value = rack } - const setBloodTypes = (types: { key: string; name: string }[]) => { - bloodTypes.value = types - } - // 设置指定试管架的项目设置 - // const setProjectSetting = (uuid: string, setting: string) => { - // projectSettings.value[uuid] = setting - // } - // 获取指定试管架的项目设置,默认返回 '自动' - // const getProjectSetting = (uuid: string): string => { - // return projectSettings.value[uuid] || '自动' - // } - // const bloodTypes = ref([]) return { tubeRack, setTubeRack, - bloodTypes, - setBloodTypes, } }, {