From cab19045ec646b6317d2c2bd5d7527714fac7412 Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Wed, 1 Nov 2023 15:16:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:admin=E5=A2=9E=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=B3=BB=E7=BB=9F=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20#1357?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-op/src/api/fileSystem.js | 17 ++ src/frontend/devops-op/src/router/index.js | 7 + .../devops-op/src/views/node/FileSystem.vue | 196 ++++++++++++++++++ 3 files changed, 220 insertions(+) create mode 100644 src/frontend/devops-op/src/api/fileSystem.js create mode 100644 src/frontend/devops-op/src/views/node/FileSystem.vue diff --git a/src/frontend/devops-op/src/api/fileSystem.js b/src/frontend/devops-op/src/api/fileSystem.js new file mode 100644 index 0000000000..c04d98f8a4 --- /dev/null +++ b/src/frontend/devops-op/src/api/fileSystem.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export const DEFAULT_PAGE_SIZE = 10 +const PREFIX = '/opdata/api/fs-client' + +export function queryFileSystemClient(projectId, repoName, pageNumber) { + return request({ + url: `${PREFIX}/list/`, + method: 'get', + params: { + pageNumber: pageNumber, + pageSize: DEFAULT_PAGE_SIZE, + projectId: projectId, + repoName: repoName + } + }) +} diff --git a/src/frontend/devops-op/src/router/index.js b/src/frontend/devops-op/src/router/index.js index 972a6d31af..2960e381b5 100644 --- a/src/frontend/devops-op/src/router/index.js +++ b/src/frontend/devops-op/src/router/index.js @@ -20,6 +20,7 @@ export const ROUTER_NAME_FILTER_RULE = 'FilterRule' export const ROUTER_NAME_JOB = 'Job' export const ROUTER_NAME_SHED_LOCK = 'Shedlock' export const ROUTER_NAME_PROJECT_METRICS = 'ProjectMetrics' +export const ROUTER_NAME_FILE_SYSTEM = 'FileSystem' Vue.use(Router) @@ -133,6 +134,12 @@ export const asyncRoutes = [ meta: { title: '文件管理', icon: 'file' }, component: () => import('@/views/node/index') }, + { + path: 'fileSystem', + name: ROUTER_NAME_FILE_SYSTEM, + meta: { title: '客户端管理', icon: 'file' }, + component: () => import('@/views/node/FileSystem') + }, { path: 'emptyFolder', name: ROUTER_NAME_EMPTY_FOLDER, diff --git a/src/frontend/devops-op/src/views/node/FileSystem.vue b/src/frontend/devops-op/src/views/node/FileSystem.vue new file mode 100644 index 0000000000..bb6276c073 --- /dev/null +++ b/src/frontend/devops-op/src/views/node/FileSystem.vue @@ -0,0 +1,196 @@ + + + + + + From 87a697f43dda661bf4a7166ce2c00b86f3581c92 Mon Sep 17 00:00:00 2001 From: lannoy0523 <935275025@qq.com> Date: Fri, 3 Nov 2023 10:46:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:admin=E5=A2=9E=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=B3=BB=E7=BB=9F=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20#1357?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/devops-op/src/views/node/FileSystem.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/devops-op/src/views/node/FileSystem.vue b/src/frontend/devops-op/src/views/node/FileSystem.vue index bb6276c073..48458f8dd5 100644 --- a/src/frontend/devops-op/src/views/node/FileSystem.vue +++ b/src/frontend/devops-op/src/views/node/FileSystem.vue @@ -1,7 +1,7 @@