From f9847bbfce190041cde20100f579df0fd291bb7d Mon Sep 17 00:00:00 2001 From: han2015 <1019850453@qq.com> Date: Wed, 28 Jan 2026 16:52:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E7=9B=98=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=A9=BA=E9=97=B4=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/doc/space.ts | 35 +++++++++++ src/views/hr/archives/index.vue | 30 +++++++++- src/views/hr/archives/yunpaninfo.vue | 88 ++++++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 src/views/hr/archives/yunpaninfo.vue diff --git a/src/api/doc/space.ts b/src/api/doc/space.ts index edd42dd..3d3a850 100644 --- a/src/api/doc/space.ts +++ b/src/api/doc/space.ts @@ -63,6 +63,41 @@ export function doAccessManage(uid:string,data?: any){ }); } +/** + * 空间权限控制管理 + * uid: manager's id + * userid: object's id + */ +export function doGetUserInfo(uid:string,data:{uuid:string}){ + return request({ + url: '/hxpan/api/user/info', + method: 'post', + headers: { + 'Identifier':uid, + 'Content-Type': 'application/x-www-form-urlencoded', + 'App-Api-Token': apptoken + }, + data: data + }); +} + +/** + * 空间权限控制管理 + * uid: manager's id + * userid: object's id + */ +export function doSetUserInfo(uid:string,data:{uuid:string,totalSizeLimit:number}){ + return request({ + url: '/hxpan/api/user/edit', + method: 'post', + headers: { + 'Identifier':uid, + 'App-Api-Token': apptoken + }, + data: data + }); +} + /** * 删除空间 */ diff --git a/src/views/hr/archives/index.vue b/src/views/hr/archives/index.vue index 4e0fe9b..7723284 100644 --- a/src/views/hr/archives/index.vue +++ b/src/views/hr/archives/index.vue @@ -6,6 +6,7 @@ + + + + + {{props.title}} + + + 空间总大小: {{ userInfo.totalSizeLimit/1024/1024 }}M + + + + + 分配空间大小: {{ newsize}}GB !! + + + + + + + + + + + \ No newline at end of file
空间总大小: {{ userInfo.totalSizeLimit/1024/1024 }}M