From e25046df93d4bd87ba1196036cd845a0548d8e7a Mon Sep 17 00:00:00 2001 From: youngS Date: Wed, 21 Apr 2021 17:06:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E9=80=89=E6=8B=A9=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_admin/src/views/login/index.vue | 2 +- fir_admin/src/views/storage/Detail.vue | 4 +- fir_admin/src/views/storage/list.vue | 15 ++- fir_admin/src/views/userinfos/UserDetail.vue | 125 ++++++++++--------- fir_ser/admin/views/storage.py | 2 + fir_ser/api/utils/baseutils.py | 13 ++ fir_ser/api/utils/serializer.py | 8 +- 7 files changed, 102 insertions(+), 67 deletions(-) diff --git a/fir_admin/src/views/login/index.vue b/fir_admin/src/views/login/index.vue index a73364e..a454a50 100644 --- a/fir_admin/src/views/login/index.vue +++ b/fir_admin/src/views/login/index.vue @@ -113,7 +113,7 @@ export default { this.$router.push({ path: this.redirect || '/' }) this.loading = false }).catch((err) => { - this.loading = false; + this.loading = false console.log(err) }) } else { diff --git a/fir_admin/src/views/storage/Detail.vue b/fir_admin/src/views/storage/Detail.vue index e6d9a54..56755e9 100644 --- a/fir_admin/src/views/storage/Detail.vue +++ b/fir_admin/src/views/storage/Detail.vue @@ -107,8 +107,9 @@ + 存储使用中,无法修改存储相关配置,请悉知 - 修改 + 修改
取消 保存修改 @@ -135,6 +136,7 @@ const defaultForm = { download_auth_type: undefined, cnd_auth_key: undefined, updated_time: undefined, + used_id: undefined, download_auth_type_choices: [] } diff --git a/fir_admin/src/views/storage/list.vue b/fir_admin/src/views/storage/list.vue index 9fa1b92..f778aca 100644 --- a/fir_admin/src/views/storage/list.vue +++ b/fir_admin/src/views/storage/list.vue @@ -62,12 +62,10 @@ {{ scope.row| certLableFilter }} - + @@ -169,7 +167,8 @@ export default { access_key: undefined, storage_type: undefined, domain_name: undefined, - user_id: undefined + user_id: undefined, + used_id: undefined }, sortOptions, storage_choices: [] @@ -177,6 +176,10 @@ export default { }, created() { this.fetchData() + },mounted() { + if (this.$route.query.user_id) { + this.listQuery.user_id = this.$route.query.user_id + } }, methods: { handleFilter() { diff --git a/fir_admin/src/views/userinfos/UserDetail.vue b/fir_admin/src/views/userinfos/UserDetail.vue index 12d1e1b..b221e2d 100644 --- a/fir_admin/src/views/userinfos/UserDetail.vue +++ b/fir_admin/src/views/userinfos/UserDetail.vue @@ -50,23 +50,7 @@ - - - - - - - - - 审核认证信息 - - - - - 用户需要先提交认证信息,才可以进行认证修改 - - - + @@ -126,12 +110,12 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + 查看私有存储信息 + + + + + + + + + + + + + + 审核认证信息 + + + + + 用户需要先提交认证信息,才可以进行认证修改 @@ -234,6 +229,7 @@