From d5ccb336a11353d38ac263f1334a072549ed9890 Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 11 Mar 2021 11:00:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/FirAppInfosBase.vue | 18 +++++++++--------- .../src/components/FirAppInfosdevices.vue | 6 +++++- .../src/components/FirAppInfossupersign.vue | 11 +++++++++-- fir_client/src/components/FirApps.vue | 7 +++++-- fir_client/src/components/FirHeader.vue | 4 +++- fir_client/src/components/FirSuperSignBase.vue | 16 +++++++++++++++- fir_ser/api/utils/serializer.py | 5 +++++ 7 files changed, 51 insertions(+), 16 deletions(-) diff --git a/fir_client/src/components/FirAppInfosBase.vue b/fir_client/src/components/FirAppInfosBase.vue index 4355d2d..89bea3a 100644 --- a/fir_client/src/components/FirAppInfosBase.vue +++ b/fir_client/src/components/FirAppInfosBase.vue @@ -168,15 +168,15 @@ }, devices() { this.setfunactive('devices', 57); - if (this.appinfos.issupersign) { - this.$router.push({ - "name": 'FirSuperSignBase', - params: {act: "useddevices"}, - query: {bundleid: this.appinfos.bundle_id} - }) - } else { - this.$router.push({name: 'FirAppInfosdevices'}); - } + // if (this.appinfos.issupersign) { + // this.$router.push({ + // "name": 'FirSuperSignBase', + // params: {act: "useddevices"}, + // query: {bundleid: this.appinfos.bundle_id} + // }) + // } else { + this.$router.push({name: 'FirAppInfosdevices'}); + // } }, supersign() { this.setfunactive('supersign', 70); diff --git a/fir_client/src/components/FirAppInfosdevices.vue b/fir_client/src/components/FirAppInfosdevices.vue index 4c2f113..7e18a6c 100644 --- a/fir_client/src/components/FirAppInfosdevices.vue +++ b/fir_client/src/components/FirAppInfosdevices.vue @@ -2,7 +2,11 @@
-

UDID列表及用户信息

+ + 该应用已经开启超级签,请点击查看最新设备列表 + + - + + style="width: 40%;margin-right: 10px" label="签名限额"> 保存 + + + 已经使用 {{ currentapp.supersign_used_number }} + 个设备额度 + + diff --git a/fir_client/src/components/FirApps.vue b/fir_client/src/components/FirApps.vue index ed155fc..0daf6d0 100644 --- a/fir_client/src/components/FirApps.vue +++ b/fir_client/src/components/FirApps.vue @@ -71,7 +71,7 @@
- + @@ -418,7 +418,8 @@ name: "FirApps", data() { return { - analyseappinfo: {'appname': '', 'short': '', 'changelog': ''}, + analyseappinfo: {}, + short: '', keysearch: '', searchfromtype: '', applists: [], @@ -445,6 +446,7 @@ if (this.uploadsuccess === 2) { delete this.analyseappinfo.icon; this.$message.success(file.name + '上传成功'); + this.analyseappinfo.short = this.short; analyseApps(data => { if (data.code === 1000) { let app_uuid = this.analyseappinfo.app_uuid; @@ -498,6 +500,7 @@ analyseApps(data => { if (data.code === 1000) { this.analyseappinfo.short = data.data.short; + this.short = data.data.short; this.analyseappinfo.domain_name = data.data.domain_name; this.analyseappinfo.app_uuid = data.data.app_uuid; this.analyseappinfo.upload_token = data.data.upload_token; diff --git a/fir_client/src/components/FirHeader.vue b/fir_client/src/components/FirHeader.vue index 4a1c0f7..4e38d46 100644 --- a/fir_client/src/components/FirHeader.vue +++ b/fir_client/src/components/FirHeader.vue @@ -26,7 +26,9 @@ - {{ $store.state.currentapp.name}} + + {{ $store.state.currentapp.name}} diff --git a/fir_client/src/components/FirSuperSignBase.vue b/fir_client/src/components/FirSuperSignBase.vue index ba15380..8336790 100644 --- a/fir_client/src/components/FirSuperSignBase.vue +++ b/fir_client/src/components/FirSuperSignBase.vue @@ -77,7 +77,7 @@ - +
+ + + @@ -612,6 +615,9 @@ // this.dialogaddDeveloperVisible=true; } else if (tabname === "iosdeveloper") { this.iosdeveloperFun({"methods": "GET", "data": data}) + } else if (tabname === "goback") { + alert('goback') + this.$router.go(-1); } }, // eslint-disable-next-line no-unused-vars @@ -752,4 +758,12 @@ border-radius: 1%; } + /*.goback {*/ + /* display: block;*/ + /* cursor: pointer;*/ + /* position: absolute;*/ + /* top: 0;*/ + /* right: 0;*/ + /*}*/ + diff --git a/fir_ser/api/utils/serializer.py b/fir_ser/api/utils/serializer.py index 13333da..f2bf5c9 100644 --- a/fir_ser/api/utils/serializer.py +++ b/fir_ser/api/utils/serializer.py @@ -47,6 +47,11 @@ class AppsSerializer(serializers.ModelSerializer): sign_type_choice.append({'id': auth_t[0], 'name': auth_t[1]}) return sign_type_choice + supersign_used_number = serializers.SerializerMethodField() + + def get_supersign_used_number(self, obj): + return models.APPSuperSignUsedInfo.objects.filter(app_id=obj).all().count() + master_release = serializers.SerializerMethodField() def get_master_release(self, obj):