优化菜单布局,新增智能体模块
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'ic:round-remove-red-eye',
|
||||
authority: ['iva', 'sca', 'ysa'],
|
||||
keepAlive: false,
|
||||
order: 2,
|
||||
title: $t('计算机视觉'),
|
||||
},
|
||||
name: 'Ai',
|
||||
path: '/cv',
|
||||
children: [
|
||||
{
|
||||
name: 'IVA',
|
||||
path: '/cv/iva',
|
||||
meta: {
|
||||
authority: ['iva'],
|
||||
icon: 'mdi:video',
|
||||
title: $t('ai.intelligence_video_analysis'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/cv/iva/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'SCA',
|
||||
path: '/cv/sca',
|
||||
meta: {
|
||||
authority: ['sca'],
|
||||
icon: 'mdi:ice-cream',
|
||||
title: $t('ai.silkworm_cocoon_analysis'),
|
||||
keepAlive: false,
|
||||
},
|
||||
component: () => import('#/views/cv/sca/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'YSA',
|
||||
path: '/cv/ysa',
|
||||
meta: {
|
||||
authority: ['ysa'],
|
||||
icon: 'mdi:waveform',
|
||||
title: $t('ai.young_silkworm_analysis'),
|
||||
keepAlive: false,
|
||||
},
|
||||
component: () => import('#/views/cv/ysa/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
@@ -0,0 +1,43 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'ic:baseline-view-in-ar',
|
||||
authority: ['bot', 'report'],
|
||||
keepAlive: false,
|
||||
order: 2,
|
||||
title: $t('大语言模型'),
|
||||
},
|
||||
name: 'Llm',
|
||||
path: '/llm',
|
||||
children: [
|
||||
{
|
||||
name: 'Bot',
|
||||
path: '/llm/bot',
|
||||
meta: {
|
||||
authority: ['bot'],
|
||||
icon: 'mdi:face-woman-shimmer',
|
||||
title: $t('智能体对话'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/llm/bot/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'SDP',
|
||||
path: '/llm/report',
|
||||
meta: {
|
||||
authority: ['report'],
|
||||
icon: 'mdi:hoop-house',
|
||||
title: $t('智农观数阁'),
|
||||
keepAlive: false,
|
||||
},
|
||||
component: () => import('#/views/llm/report/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
@@ -0,0 +1,45 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'ic:round-handyman',
|
||||
keepAlive: false,
|
||||
authority: ['user'],
|
||||
order: 2,
|
||||
title: $t('其他平台'),
|
||||
},
|
||||
name: 'Out',
|
||||
path: '/out',
|
||||
children: [
|
||||
{
|
||||
name: 'RAG',
|
||||
path: '/out/rag',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:wall-fire',
|
||||
iframeSrc: 'http://s1.ronsunny.cn:13010/',
|
||||
keepAlive: false,
|
||||
title: '检索增强生成',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CVAT',
|
||||
path: '/out/cvat',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:abjad-arabic',
|
||||
link: 'http://171.212.101.199:13013/',
|
||||
keepAlive: true,
|
||||
title: '标注平台入口',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user