From 491955d354201d9013f74cd21e824f30611bbb60 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 06 十一月 2024 18:17:05 +0800
Subject: [PATCH] 检查类型相关

---
 src/views/ecg/checktype/index.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/ecg/checktype/index.vue b/src/views/ecg/checktype/index.vue
index 7f9f934..ae47f34 100644
--- a/src/views/ecg/checktype/index.vue
+++ b/src/views/ecg/checktype/index.vue
@@ -148,7 +148,13 @@
       <el-table-column label="鏄惁闇�瑕佺‘璐�" align="center" prop="expenseRecognition" />
       <el-table-column label="鏃舵棰勭害瑙勫畾浜烘暟" align="center" prop="timeslotBookNum" />
       <el-table-column label="姣忔椂娈甸鐣欎汉鏁�" align="center" prop="timeslotReservedNum" />
-      <el-table-column label="浜插拰鐨勬鏌ョ被鍨�" align="center" prop="affinityCheckTypes" />
+      <el-table-column label="浜插拰鐨勬鏌ョ被鍨�" align="center" prop="affinityCheckTypes" >
+        <template #default="scope">
+          <div v-for="(checkType, subIndex) in scope.row.affinityCheckTypes" :key="subIndex">
+            {{checkTypeStore.getCheckTypeName(checkType)}}
+          </div>
+        </template>
+      </el-table-column>
       <el-table-column label="鎿嶄綔" align="center" min-width="120px">
         <template #default="scope">
           <el-button
@@ -184,11 +190,11 @@
 </template>
 
 <script setup lang="ts">
-import { DICT_TYPE } from '@/utils/dict'
 import { dateFormatter } from '@/utils/formatTime'
 import download from '@/utils/download'
 import { CheckTypeApi, CheckTypeVO } from '@/api/ecg/checktype'
 import CheckTypeForm from './CheckTypeForm.vue'
+import {useCheckTypeStore} from "@/store/modules/checkType";
 
 /** 妫�鏌ョ被鍨� 鍒楄〃 */
 defineOptions({ name: 'CheckType' })
@@ -196,6 +202,8 @@
 const message = useMessage() // 娑堟伅寮圭獥
 const { t } = useI18n() // 鍥介檯鍖�
 
+const checkTypeStore = useCheckTypeStore();
+
 const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑
 const list = ref<CheckTypeVO[]>([]) // 鍒楄〃鐨勬暟鎹�
 const total = ref(0) // 鍒楄〃鐨勬�婚〉鏁�

--
Gitblit v1.9.3