feat: 低代码平台增加应用列表

This commit is contained in:
wangxuefeng
2025-03-04 14:46:19 +08:00
parent 09ff94c188
commit 6fc133bb7d
24 changed files with 798 additions and 785 deletions

View File

@@ -6,5 +6,6 @@ VITE_BASE_URL = /
# 前端可见变量(必须以 VITE_ 开头)
VITE_PORT = 10010
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
# VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'
VITE_DEBUG_MODE = true

View File

@@ -28,7 +28,11 @@
name: 'low-code-renderer',
classListArray: ['responsive-iframe'],
model: {
id: route.meta?.app?.url,
name: route.meta?.app?.name,
applicationId: route.meta?.app?.applicationId,
projectId: route.meta?.app?.projectId,
fileId: route.meta?.app?.fileId,
url: route.meta?.app?.url,
},
});

View File

@@ -25,6 +25,9 @@ const routes: Array<RouteRecordRaw> = [
sync: true,
alive: true,
degrade: true,
applicationId: 0,
projectId: 4,
fileId: 'b91n1y9yr',
},
},
component: () => import('@/components/renderer-adapter/index.vue'),

View File

@@ -3,7 +3,8 @@
import { getApplicationList, createApplication, deleteApplication } from '@/io';
const addData = {
name: 'test',
name: '低代码平台',
alias: 'low-code-platform',
active: true,
};

View File

@@ -3,9 +3,10 @@
import { getProjectList, createProject, deleteProject } from '@/io';
const addData = {
application_id: 3,
description: 'test project',
name: 'test project',
application_id: 1,
description: '低代码项目管理平台',
name: '低代码项目管理平台',
alias: 'low-code-project-management-platform',
platform: 'web',
};

View File

@@ -9,6 +9,14 @@ declare global {
};
}
type LowCodeFile = {
fileId: string;
url: string;
applicationId?: number;
projectId?: number;
name?: string;
};
type WujieType = {
/** 唯一性用户必须保证 */
name: string;
@@ -88,7 +96,7 @@ declare module 'vue-router' {
activeMenu?: string;
/** 菜单排序号 */
orderNo?: number;
app?: WujieType;
app?: LowCodeFile;
/** 是否外链 */
isExt?: boolean;
/** 外链打开方式