mirror of https://github.com/jeecgboot/jeecg-boot
集成jeecg的aiflow AI流程设计器
parent
beff2a271e
commit
25b30153a0
|
@ -22,6 +22,10 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jeecg/online": "3.7.4-beta",
|
"@jeecg/online": "3.7.4-beta",
|
||||||
|
"@jeecg/aiflow": "1.0.0",
|
||||||
|
"@logicflow/core": "^2.0.10",
|
||||||
|
"@logicflow/extension": "^2.0.14",
|
||||||
|
"@logicflow/vue-node-registry": "^1.0.12",
|
||||||
"@iconify/iconify": "^3.1.1",
|
"@iconify/iconify": "^3.1.1",
|
||||||
"@ant-design/colors": "^7.2.0",
|
"@ant-design/colors": "^7.2.0",
|
||||||
"@ant-design/icons-vue": "^7.0.1",
|
"@ant-design/icons-vue": "^7.0.1",
|
||||||
|
|
|
@ -2,10 +2,12 @@ import type { App } from 'vue';
|
||||||
import { warn } from '/@/utils/log';
|
import { warn } from '/@/utils/log';
|
||||||
import { registerDynamicRouter } from '/@/utils/monorepo/dynamicRouter';
|
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) {
|
export function registerPackages(app: App) {
|
||||||
use(app, PACKAGE_TEST_JEECG_ONLINE);
|
use(app, PACKAGE_JEECG_ONLINE);
|
||||||
|
use(app, PACKAGE_JEECG_AIFLOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
// noinspection JSUnusedGlobalSymbols
|
// noinspection JSUnusedGlobalSymbols
|
||||||
|
|
|
@ -59,6 +59,8 @@
|
||||||
import { useModal, useModalInner } from '@/components/Modal';
|
import { useModal, useModalInner } from '@/components/Modal';
|
||||||
import { Pagination } from 'ant-design-vue';
|
import { Pagination } from 'ant-design-vue';
|
||||||
import { list } from '@/views/super/airag/aiknowledge/AiKnowledgeBase.api';
|
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 knowledge from '/@/views/super/airag/aiknowledge/icon/knowledge.png';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
import { getFileAccessHttpUrl } from "@/utils/common/compUtils";
|
import { getFileAccessHttpUrl } from "@/utils/common/compUtils";
|
||||||
|
@ -135,7 +137,7 @@
|
||||||
name: searchText.value,
|
name: searchText.value,
|
||||||
status:'enable'
|
status:'enable'
|
||||||
};
|
};
|
||||||
pageApi.list(params).then((res) =>{
|
getAiFlowList(params).then((res) =>{
|
||||||
if(res){
|
if(res){
|
||||||
for (const data of res.records) {
|
for (const data of res.records) {
|
||||||
data.metadata = getMetadata(data.metadata);
|
data.metadata = getMetadata(data.metadata);
|
||||||
|
@ -149,6 +151,10 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function getAiFlowList(params?: any) {
|
||||||
|
return defHttp.get({url: '/airag/flow/list', params});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页改变事件
|
* 分页改变事件
|
||||||
* @param page
|
* @param page
|
||||||
|
|
|
@ -139,6 +139,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
exclude: [
|
exclude: [
|
||||||
//升级vite4后,需要排除online依赖
|
//升级vite4后,需要排除online依赖
|
||||||
'@jeecg/online',
|
'@jeecg/online',
|
||||||
|
'@jeecg/aiflow',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue