| | |
| | | import { SupervisorPublished, supervisorPublishedMap } from '/@/views/project/yw/lowCode/sqlAmis/types'; |
| | | import { OptClassificationMap, classificationEnum } from '/@/views/types/metrics'; |
| | | import knowledgeLeft from '/static/images/knowledge/data_type_1.png'; |
| | | import item from 'element-plus/es/components/space/src/item'; |
| | | const router = useRouter(); |
| | | //#region ====================== 左侧树数据,tree init ====================== |
| | | const leftTreeRef = useCompRef(LeftTreeByMgr); |
| | |
| | | knowledge_desc: row.desc, |
| | | knowledge_prompt: row.prompt, |
| | | knowledge_scope: row.scope, |
| | | knowledge_publish: row.publish, |
| | | }, |
| | | }); |
| | | }; |
| | |
| | | mittBus.on('addKnowledgeBaseObj', (obj) => { |
| | | knowledgeBaseList.value.push(obj); |
| | | }); |
| | | mittBus.on('updateKnowledgeBaseObj', (formValue) => { |
| | | const foundIndex = knowledgeBaseList.value.findIndex((item) => item.id === formValue.id); |
| | | if (foundIndex > -1) { |
| | | knowledgeBaseList.value[foundIndex] = { |
| | | ...knowledgeBaseList.value[foundIndex], |
| | | ...formValue, |
| | | }; |
| | | } |
| | | }); |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |