wujingjing
2024-09-10 68994735dddb8d2be65149aa605ec0ac12e8775a
src/components/chat/chatComponents/summaryCom/components/amisPage/AmisPage.vue
@@ -1,13 +1,14 @@
<template>
   <div>
      <span v-if="data?.title" class="text-base font-bold flex-center">{{ data?.title }}</span>
      <AMISRenderer :schema="data?.amis_json" :locals="data?.amis_data" />
      <AMISRenderer :schema="data?.amis_json" :locals="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'
@@ -23,6 +24,10 @@
   },
});
const amisReady = (val) => {
   emitter.emit('amis.page.ready',val);
};
</script>
<style scoped lang="scss"></style>