mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2025-12-08 17:12:28 +08:00
集成jeecg的aiflow AI流程设计器
This commit is contained in:
@ -2,10 +2,12 @@ import type { App } from 'vue';
|
||||
import { warn } from '/@/utils/log';
|
||||
import { registerDynamicRouter } from '/@/utils/monorepo/dynamicRouter';
|
||||
// 引入模块
|
||||
import PACKAGE_TEST_JEECG_ONLINE from '@jeecg/online';
|
||||
import PACKAGE_JEECG_ONLINE from '@jeecg/online';
|
||||
import PACKAGE_JEECG_AIFLOW from '@jeecg/aiflow';
|
||||
|
||||
export function registerPackages(app: App) {
|
||||
use(app, PACKAGE_TEST_JEECG_ONLINE);
|
||||
use(app, PACKAGE_JEECG_ONLINE);
|
||||
use(app, PACKAGE_JEECG_AIFLOW);
|
||||
}
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
@ -59,6 +59,8 @@
|
||||
import { useModal, useModalInner } from '@/components/Modal';
|
||||
import { Pagination } from 'ant-design-vue';
|
||||
import { list } from '@/views/super/airag/aiknowledge/AiKnowledgeBase.api';
|
||||
// import {pageApi} from "@/views/super/airag/aiflow/pages/api";
|
||||
import { defHttp } from "@/utils/http/axios";
|
||||
import knowledge from '/@/views/super/airag/aiknowledge/icon/knowledge.png';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { getFileAccessHttpUrl } from "@/utils/common/compUtils";
|
||||
@ -135,7 +137,7 @@
|
||||
name: searchText.value,
|
||||
status:'enable'
|
||||
};
|
||||
pageApi.list(params).then((res) =>{
|
||||
getAiFlowList(params).then((res) =>{
|
||||
if(res){
|
||||
for (const data of res.records) {
|
||||
data.metadata = getMetadata(data.metadata);
|
||||
@ -149,6 +151,10 @@
|
||||
});
|
||||
}
|
||||
|
||||
async function getAiFlowList(params?: any) {
|
||||
return defHttp.get({url: '/airag/flow/list', params});
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页改变事件
|
||||
* @param page
|
||||
|
||||
Reference in New Issue
Block a user