From ed841bc8fbe77234d30dee6796eeb6db865310c3 Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 10 Jun 2021 15:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9E=E5=90=8D=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_admin/src/views/appinfos/list.vue | 1 + fir_admin/src/views/storage/list.vue | 2 +- .../src/views/supersign/developer/list.vue | 4 +- .../src/views/supersign/devices/list.vue | 3 ++ fir_admin/src/views/userinfos/list.vue | 17 ++++++++- .../src/components/user/FirSuperSignBase.vue | 2 +- .../user/FirUserProfileCertification.vue | 38 +++++++++++-------- fir_ser/admin/urls.py | 2 +- fir_ser/admin/views/storage.py | 3 +- fir_ser/api/utils/serializer.py | 17 +++++++-- fir_ser/api/views/login.py | 21 ++++++++-- 11 files changed, 79 insertions(+), 31 deletions(-) diff --git a/fir_admin/src/views/appinfos/list.vue b/fir_admin/src/views/appinfos/list.vue index e2d099d..146816f 100644 --- a/fir_admin/src/views/appinfos/list.vue +++ b/fir_admin/src/views/appinfos/list.vue @@ -189,6 +189,7 @@ export default { } }, created() { + this.listQuery.user_id = this.$route.params && this.$route.params.user_id this.fetchData() }, methods: { diff --git a/fir_admin/src/views/storage/list.vue b/fir_admin/src/views/storage/list.vue index a56c59c..c5e88bb 100644 --- a/fir_admin/src/views/storage/list.vue +++ b/fir_admin/src/views/storage/list.vue @@ -167,7 +167,6 @@ export default { access_key: undefined, storage_type: undefined, domain_name: undefined, - user_id: undefined, used_id: undefined }, sortOptions, @@ -175,6 +174,7 @@ export default { } }, created() { + this.listQuery.user_id = this.$route.params && this.$route.params.user_id this.fetchData() }, mounted() { if (this.$route.query.user_id) { diff --git a/fir_admin/src/views/supersign/developer/list.vue b/fir_admin/src/views/supersign/developer/list.vue index 84116b3..0420bc3 100644 --- a/fir_admin/src/views/supersign/developer/list.vue +++ b/fir_admin/src/views/supersign/developer/list.vue @@ -59,7 +59,9 @@ diff --git a/fir_admin/src/views/supersign/devices/list.vue b/fir_admin/src/views/supersign/devices/list.vue index 1e524aa..7a5b70a 100644 --- a/fir_admin/src/views/supersign/devices/list.vue +++ b/fir_admin/src/views/supersign/devices/list.vue @@ -170,6 +170,8 @@ export default { } }, created() { + this.listQuery.issuer_id = this.$route.params && this.$route.params.issuer_id + this.listQuery.user_id = this.$route.params && this.$route.params.user_id this.fetchData() }, methods: { @@ -178,6 +180,7 @@ export default { this.fetchData() }, fetchData() { + console.log(this.listQuery) this.listLoading = true getDevicesInfo(this.listQuery).then(response => { this.list = response.data diff --git a/fir_admin/src/views/userinfos/list.vue b/fir_admin/src/views/userinfos/list.vue index 64027c0..600bb42 100644 --- a/fir_admin/src/views/userinfos/list.vue +++ b/fir_admin/src/views/userinfos/list.vue @@ -60,6 +60,13 @@ {{ scope.row.download_times }} + + +