From 9db23ed6499e404c66b3a403bbd6d00b89962f52 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 26 Aug 2022 17:35:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/interface/file.ts | 6 +- frontend/src/components/file-role/index.vue | 159 ++++++++++++++++++ frontend/src/lang/modules/zh.ts | 8 +- frontend/src/views/file-management/create.vue | 18 +- 4 files changed, 181 insertions(+), 10 deletions(-) create mode 100644 frontend/src/components/file-role/index.vue diff --git a/frontend/src/api/interface/file.ts b/frontend/src/api/interface/file.ts index 15af96bc6..13e6c8402 100644 --- a/frontend/src/api/interface/file.ts +++ b/frontend/src/api/interface/file.ts @@ -25,19 +25,19 @@ export namespace File { export interface FileTree { id: string; name: string; - isDir: Boolean; + isDir: boolean; path: string; children?: FileTree[]; } export interface FileCreate { path: string; - isDir: Boolean; + isDir: boolean; mode: number; } export interface FileDelete { path: string; - isDir: Boolean; + isDir: boolean; } } diff --git a/frontend/src/components/file-role/index.vue b/frontend/src/components/file-role/index.vue new file mode 100644 index 000000000..b126cb7b9 --- /dev/null +++ b/frontend/src/components/file-role/index.vue @@ -0,0 +1,159 @@ + + diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 0ba405c2c..e82935248 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -175,7 +175,13 @@ export default { shareList: '分享列表', zip: '压缩', user: '用户', - group: '组', + group: '用户组', path: '路径', + public: '公共', + setRole: '设置权限', + link: '是否链接', + rRole: '读取', + wRole: '写入', + xRole: '可执行', }, }; diff --git a/frontend/src/views/file-management/create.vue b/frontend/src/views/file-management/create.vue index 282cf9864..68924e14c 100644 --- a/frontend/src/views/file-management/create.vue +++ b/frontend/src/views/file-management/create.vue @@ -7,9 +7,12 @@ @open="onOpen" v-loading="loading" > - + + + +