| | |
| | | 1个知识 |
| | | </span> |
| | | <span class="set_desc_text"> |
| | | <span class="set_desc_icon ywifont ywicon-fenshu_an"> </span> |
| | | {{ item.scope }} |
| | | </span> |
| | | <span class="set_desc_text"> |
| | | <span class="set_desc_icon ywifont ywicon-cshy-shizhong"> </span> |
| | | {{ item.create_time }}更新 |
| | | </span> |
| | | <span |
| | | :class="{ |
| | | 'text-orange-500': item.publish === SupervisorPublished.N, |
| | | 'text-green-500': item.publish === SupervisorPublished.Y, |
| | | }" |
| | | class="text-[12px]" |
| | | > |
| | | {{ supervisorPublishedMap[item.publish] }} |
| | | </span> |
| | | </div> |
| | | </div> |
| | |
| | | import { useQueryTable } from '/@/hooks/useQueryTable'; |
| | | import mittBus from '/@/utils/mitt'; |
| | | import { useCompRef } from '/@/utils/types'; |
| | | import { SupervisorPublished, supervisorPublishedMap } from '/@/views/project/yw/lowCode/sqlAmis/types'; |
| | | import knowledgeLeft from '/static/images/knowledge/data_type_1.png'; |
| | | |
| | | const router = useRouter(); |
| | | //#region ====================== 获取知识库sheet列表 ====================== |
| | | const knowledgeBaseList = ref([]); |
| | |
| | | knowledge_title: row.title, |
| | | knowledge_desc: row.desc, |
| | | knowledge_prompt: row.prompt, |
| | | knowledge_scope: row.scope, |
| | | }, |
| | | }); |
| | | }; |
| | |
| | | const { x, y, style } = useDraggable(draggableChatRef, { |
| | | handle: chatDragHandlerRef, |
| | | initialValue: { |
| | | x: 210 + 400, |
| | | y: 56 + 110, |
| | | x: document.body.clientWidth / 2 - 350, |
| | | y: document.body.clientHeight / 2 - 400, |
| | | }, |
| | | }); |
| | | |
| | | const questionAi = async (text) => { |
| | | const res = await check_docvector_validate({ |
| | | knowlg_id: chatTestMapRow.value.id, |
| | | question: text, |
| | | }); |
| | | const res = await check_docvector_validate( |
| | | { |
| | | knowlg_id: chatTestMapRow.value.id, |
| | | question: text, |
| | | }, |
| | | { |
| | | loading: false, |
| | | } |
| | | ); |
| | | return res; |
| | | }; |
| | | onMounted(() => { |