From 83bc7f6d33934f56fd1df80c7e8975e7c887d606 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 23 十月 2024 22:12:05 +0800
Subject: [PATCH] 检查类型 字典移除,使用 本地存储
---
src/views/ecg/appointment/index.vue | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/ecg/appointment/index.vue b/src/views/ecg/appointment/index.vue
index 9bc34d7..85eaf2a 100644
--- a/src/views/ecg/appointment/index.vue
+++ b/src/views/ecg/appointment/index.vue
@@ -149,7 +149,7 @@
class="!w-240px"
>
<el-option
- v-for="dict in getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)"
+ v-for="dict in checkTypeStore.getCheckTypeOptions()"
:key="dict.value"
:label="dict.label"
:value="dict.value"
@@ -229,7 +229,7 @@
</el-table-column>
<el-table-column label="棰勭害妫�鏌ョ被鍨�" align="center" prop="bookCheckType">
<template #default="scope">
- <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="scope.row.bookCheckType" />
+ checkTypeStore.getCheckTypeName(scope.row.bookCheckType)
</template>
</el-table-column>
<el-table-column label="棰勭害鏉ユ簮" align="center" prop="bookSrc">
@@ -277,6 +277,7 @@
import download from '@/utils/download'
import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment'
import AppointmentForm from './AppointmentForm.vue'
+import {useCheckTypeStore} from "@/store/modules/checkType";
/** 棰勭害 鍒楄〃 */
defineOptions({ name: 'Appointment' })
@@ -312,6 +313,8 @@
const queryFormRef = ref() // 鎼滅储鐨勮〃鍗�
const exportLoading = ref(false) // 瀵煎嚭鐨勫姞杞戒腑
+const checkTypeStore = useCheckTypeStore();
+
/** 鏌ヨ鍒楄〃 */
const getList = async () => {
loading.value = true
--
Gitblit v1.9.3