From 8ce35ee72e52f51f93e61d2dec6084c3cfd397b6 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 18 十二月 2024 15:31:36 +0800
Subject: [PATCH] 设备查询完善
---
src/views/ecg/room/index.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/ecg/room/index.vue b/src/views/ecg/room/index.vue
index fb40856..b7c4590 100644
--- a/src/views/ecg/room/index.vue
+++ b/src/views/ecg/room/index.vue
@@ -70,7 +70,9 @@
<el-table-column label="璇婂IP" align="center" prop="ip" />
<el-table-column label="妫�鏌ョ被鍨�" align="center" prop="checkTypes" width="180px">
<template #default="scope">
- {{scope.row.checkTypes}}
+ <div v-for="(checkType, subIndex) in scope.row.checkTypes" :key="subIndex">
+ {{checkTypeStore.getCheckTypeName(checkType)}}
+ </div>
</template>
</el-table-column>
<el-table-column
@@ -114,10 +116,11 @@
</template>
<script setup lang="ts">
-import {dateFormatter, dateFormatter2} from '@/utils/formatTime'
+import {dateFormatter2} from '@/utils/formatTime'
import download from '@/utils/download'
import { RoomApi, RoomVO } from '@/api/ecg/room'
import RoomForm from './RoomForm.vue'
+import {useCheckTypeStore} from "@/store/modules/checkType";
/** 璇婂鍜岃瘖鐤楀簥 鍒楄〃 */
defineOptions({ name: 'Room' })
@@ -125,6 +128,8 @@
const message = useMessage() // 娑堟伅寮圭獥
const { t } = useI18n() // 鍥介檯鍖�
+const checkTypeStore = useCheckTypeStore();
+
const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑
const list = ref<RoomVO[]>([]) // 鍒楄〃鐨勬暟鎹�
const total = ref(0) // 鍒楄〃鐨勬�婚〉鏁�
--
Gitblit v1.9.3