From 3a9fa09cbc23e39a35078c02cc473495a3334751 Mon Sep 17 00:00:00 2001
From: lannoy0523 <46735290+lannoy0523@users.noreply.github.com>
Date: Mon, 6 Nov 2023 16:07:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:admin=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=20#1357=20(#1376)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* feat:admin增加文件系统客户端管理 #1357
* feat:admin增加文件系统客户端管理 #1357
* feat:admin增加文件系统客户端管理 #1357
---
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 | 201 ++++++++++++++++++
3 files changed, 225 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..589865f947
--- /dev/null
+++ b/src/frontend/devops-op/src/views/node/FileSystem.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.online ? "是":"否" }}
+
+
+
+
+ {{ formatNormalDate(scope.row.heartbeatTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+