diff --git a/fir_client/src/components/base/AppleDeveloperBindApp.vue b/fir_client/src/components/base/AppleDeveloperBindApp.vue
index 34c2573..7fe518d 100644
--- a/fir_client/src/components/base/AppleDeveloperBindApp.vue
+++ b/fir_client/src/components/base/AppleDeveloperBindApp.vue
@@ -41,6 +41,7 @@
该应用已经消耗 {{ option.app_used_number }} 个设备数
描述: {{ option.description }}
+ 账户状态: {{ option.status_display }}
diff --git a/fir_client/src/components/user/FirSuperSignBase.vue b/fir_client/src/components/user/FirSuperSignBase.vue
index 945a4be..82f0237 100644
--- a/fir_client/src/components/user/FirSuperSignBase.vue
+++ b/fir_client/src/components/user/FirSuperSignBase.vue
@@ -203,6 +203,31 @@
+
+
+
+
+
+
+ 确定
+ 取消
+
+
受影响的开发者ID
+
+ 账户ID:{{ isid.issuer_id }}
+ 当前状态:{{ format_status(isid.status) }}
+
+
+
+
+
-
-
-
-
-
-
- 搜索
-
-
+
+
+
+
+
+
+
+ 搜索
+
+
+ 账户状态检测
+
+
+ 批量设置账户状态
+
+
-
-
-
+ style="width: 100%"
+ @selection-change="handleSelectionChange">
+
+
开发证书不可用,请在编辑中导入或手动创建发布证书
请先激活开发者账户
- {{ format_status(scope.row) }}
+ {{ format_status(scope.row.status) }}
- {{ format_status(scope.row) }}
+ {{ format_status(scope.row.status) }}
- {{ format_status(scope.row) }}
+ {{ format_status(scope.row.status) }}
@@ -585,6 +619,7 @@
开发者ID: {{ scope.row.developer_id }}
开发者备注: {{ scope.row.developer_description }}
+ 开发者状态: {{ scope.row.developer_status }}
{{ scope.row.developer_id }}
@@ -664,6 +699,7 @@
开发者ID: {{ scope.row.developer_id }}
开发者备注: {{ scope.row.developer_description }}
+ 开发者状态: {{ scope.row.developer_status }}
{{ scope.row.developer_id }}
@@ -771,6 +807,7 @@
开发者ID: {{ scope.row.issuer_id }}
开发者备注: {{ scope.row.developer_description }}
+ 开发者状态: {{ scope.row.developer_status }}
{{ scope.row.issuer_id }}
@@ -1071,7 +1108,10 @@ export default {
appletoapp_title: '',
status_choices: [],
read_only_mode: 'off',
- developer_status_choice: []
+ developer_status_choice: [],
+ multipleSelection: [],
+ setdeveloperstatusVisible: false,
+ change_developer_status: ''
}
}, watch: {
'dialogaddDeveloperVisible': function () {
@@ -1081,14 +1121,34 @@ export default {
}
},
methods: {
+ setdeveloperstatusFun() {
+ if (this.multipleSelection && this.multipleSelection.length > 0) {
+ this.setdeveloperstatusVisible = true
+ } else {
+ this.$message.warning("开发者账户未选择")
+ }
+ },
+ setdeveloperstatus() {
+ if (this.change_developer_status === '') {
+ this.$message.warning("账户状态未选择")
+ } else {
+ this.iosdeveloperFun({
+ "methods": "PUT",
+ "data": {"issuer_ids": this.getIssuerIds(), "act": 'setstatus', "status": this.change_developer_status}
+ });
+ }
+ },
+ handleSelectionChange(val) {
+ this.multipleSelection = val;
+ },
sort_method_usable_number(a, b) {
return this.formatter_usable_number(a) - this.formatter_usable_number(b)
},
formatter_usable_number(row) {
return row.usable_number - row.developer_used_number > 0 ? row.usable_number - row.developer_used_number : 0
},
- format_status(row) {
- return format_choices(row.status, this.status_choices)
+ format_status(status) {
+ return format_choices(status, this.status_choices)
},
downloadipa(info) {
this.loading = true;
@@ -1303,6 +1363,21 @@ export default {
activedeveloperFun(developer, act) {
this.iosdeveloperFun({"methods": "PUT", "data": {"issuer_id": developer.issuer_id, "act": act}});
},
+ activemanydeveloperFun() {
+ let issuer_ids = this.getIssuerIds()
+ if (issuer_ids.length === 0) {
+ this.$message.warning("开发者账户未选择")
+ } else {
+ this.iosdeveloperFun({"methods": "PUT", "data": {"issuer_ids": issuer_ids, "act": 'checkauth'}});
+ }
+ },
+ getIssuerIds() {
+ let issuer_ids = []
+ for (let i = 0; i < this.multipleSelection.length; i++) {
+ issuer_ids.push(this.multipleSelection[i]['issuer_id'])
+ }
+ return issuer_ids
+ },
canceledit() {
this.dialogaddDeveloperVisible = false;
this.editdeveloperinfo = {auth_type: 0, usable_number: 100, app_limit_number: 100};
@@ -1461,7 +1536,13 @@ export default {
}
}
}
-
+ if (params.methods === 'PUT') {
+ this.$message.success("操作成功");
+ }
+ if (params.data.act === 'setstatus') {
+ this.setdeveloperstatusVisible = false
+ this.change_developer_status = ''
+ }
if (this.dialogaddDeveloperVisible) {
this.canceledit();
this.$message.success("操作成功");
@@ -1632,7 +1713,7 @@ export default {