| | |
| | | <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> |
| | |
| | | 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; |
| | |
| | | attachPreviewData.value = item; |
| | | }; |
| | | //#endregion |
| | | |
| | | //#region ====================== 附件引用 ====================== |
| | | const quoteAttach = (item: Attach) => { |
| | | emitter.emit('quoteAttach', item); |
| | | }; |
| | | //#endregion |
| | | |
| | | </script> |
| | | <style scoped lang="scss"></style> |