From e5146fb2b0230b9a3c4002290639d69a4bc82467 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 16 十月 2024 11:41:32 +0800
Subject: [PATCH] 曲线查询改造

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

diff --git a/src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue b/src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue
index 6d2658a..4731f7d 100644
--- a/src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue
+++ b/src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue
@@ -1,17 +1,32 @@
 <template>
 	<div>
-		<span v-if="data?.title" class="text-base font-bold flex-center mb-5">{{ data?.title }}</span>
-		<AMISRenderer :schema="data?.amis_json" />
+		<span v-if="data?.title" class="text-base font-bold flex-center">{{ data?.title }}</span>
+		<AMISRenderer :schema="data?.amis_json" :context="data?.amis_data" @ready="amisReady"/>
 	</div>
 </template>
 
 <script setup lang="ts">
 import type { PropType } from 'vue';
 import AMISRenderer from '/@/components/amis/AMISRenderer.vue';
+import emitter from '/@/utils/mitt';
+
+// import  鍛ㄧぞ浼氬瓨閿�姣� from './testData/鍛ㄧぞ浼氬瓨閿�姣�.json'
+// import  瀹㈡埛鎯呭喌 from './testData/瀹㈡埛鎯呭喌.json'
+
+// import  甯傚満缁煎悎鐘舵�� from './testData/甯傚満缁煎悎鐘舵��.json'
+// import  閿�鍞搴﹂攢閲� from './testData/閿�鍞搴﹂攢閲�.json'
+// import  缁忔祹杩愯 from './testData/缁忔祹杩愯.json'
+import testData from './testData.json'
+
 const props = defineProps({
 	data: {
 		type: Object as PropType<any>,
 	},
 });
+const amisReady = (val) => {
+	emitter.emit('amis.page.ready',val);
+};
+
+
 </script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3