From 4eb6092c32df67d752101ab8ae23c9b2236db0dc Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 24 七月 2024 18:34:36 +0800
Subject: [PATCH] 监测点列表

---
 src/components/chat/chatComponents/summaryCom/SummaryCom.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue b/src/components/chat/chatComponents/summaryCom/SummaryCom.vue
index c618dae..0a084e2 100644
--- a/src/components/chat/chatComponents/summaryCom/SummaryCom.vue
+++ b/src/components/chat/chatComponents/summaryCom/SummaryCom.vue
@@ -1,6 +1,21 @@
 <template>
-    <div></div>
+	<div class="w-full space-y-3">
+		<template v-if="data && data.length > 0">
+			<!-- 涓嶈兘浣跨敤 index -->
+			<component
+				v-for="(item, index) in data"
+				:key="item.id"
+				:id="item.id"
+				:is="summaryAnswerTypeMapCom[item.type]"
+				:data="item"
+			></component>
+		</template>
+	</div>
 </template>
 
-<script setup lang="ts"></script>
+<script setup lang="ts">
+import { chatComProps } from '../common';
+import { summaryAnswerTypeMapCom } from './components/types';
+const props = defineProps(chatComProps);
+</script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3