wujingjing
2024-11-07 0ad399d1b125cdcad2e98c8c874d475b054485dc
src/components/chat/chatComponents/summaryCom/SummaryCom.vue
@@ -13,8 +13,26 @@
               chartHeight="20rem"
               :tableLimitHeight="tableLimitHeight"
               @updateQuery="(res) => updateRecordSet(index, res)"
               :disabled="isTalking"
            ></component>
            <div class="max-h-[2/3vh] markdown-it" v-if="showReportIndex.includes(index) && conclusion?.length > 0" v-html="md.render(getReport(index))"></div>
            <div class="flex flex-col" v-if="showReportIndex.includes(index) && conclusion?.length > 0">
               <div class="flex items-center mb-3">
                  <span class="mr-2">分析评估:</span>
                  <div
                     @click="toggleReport(item)"
                     class="cursor-pointer border border-gray-300 border-solid w-fit px-2 flex items-center space-x-2 rounded-lg hover:bg-gray-100 active:bg-gray-200"
                  >
                     <span>
                        {{ toggleReportLabel(item) }}
                     </span>
                     <span class="ywifont" :class="{ 'ywicon-unfold': !item.reportIsShow, 'ywicon-fold': item.reportIsShow }"></span>
                  </div>
               </div>
               <!-- 过程输出 -->
               <div v-show="item.reportIsShow" class="max-h-[2/3vh] markdown-it" v-html="md.render(getReport(index))"></div>
            </div>
         </template>
      </template>
      <!-- <ReportDlg v-model="infoDlgIsShow" :report="report" :agentKey="agentKey"></ReportDlg> -->
@@ -72,8 +90,13 @@
   const agentKey = agent.agent_key;
   // debugger;
   const foundReport = props.conclusion.find((item) => item.agent_key === agentKey);
   const report = foundReport?.report ??'';
   return report
   const report = foundReport?.report ?? '';
   return report;
};
const toggleReportLabel = (item) => (item.reportIsShow ? '收起' : '展开');
const toggleReport = (item) => {
   item.reportIsShow = !item.reportIsShow;
};
// const infoDlgIsShow = ref(false);
// const report = ref(null);