wujingjing
2025-03-04 92d2ea48d343fc00d81905167d033c40200ea716
src/components/chat/user/index.vue
@@ -37,6 +37,9 @@
                              <div class="font-bold over-ellipsis w-full">{{ item.title }}</div>
                              <div class="text-info text-sm over-ellipsis w-full">{{ `业务表格,${item.model.values?.length} 条记录` }}</div>
                           </div>
                           <el-tooltip effect="dark" content="引用" placement="top">
                              <span class="group-hover:visible invisible ywifont ywicon-quote absolute right-2" @click.stop="quoteAttach(item)"></span>
                           </el-tooltip>
                        </template>
                     </div>
                  </div>
@@ -110,9 +113,10 @@
import { ElMessage } from 'element-plus';
import { AnswerState, answerTypeMapCom, roleImageMap, type ChatMessage } from '../model/types';
import { isSharePage } from '/@/stores/chatRoom';
import { ref } from 'vue';
import { onActivated, ref } from 'vue';
import BusinessTablePreview from '../components/playBar/businessTablePreview/index.vue';
import { Attach } from '../components/playBar/hook/useAttach';
import emitter from '/@/utils/mitt';
const emit = defineEmits<{
   (event: 'copyMsg', msgObj: ChatMessage): void;
@@ -151,5 +155,12 @@
   attachPreviewData.value = item;
};
//#endregion
//#region ====================== 附件引用 ======================
const quoteAttach = (item: Attach) => {
   emitter.emit('quoteAttach', item);
};
//#endregion
</script>
<style scoped lang="scss"></style>