|
|
@ -203,6 +203,31 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :destroy-on-close="true" :visible.sync="setdeveloperstatusVisible" |
|
|
|
|
|
|
|
style="text-align:center" title="批量修改账户状态" width="700px"> |
|
|
|
|
|
|
|
<el-select v-model="change_developer_status" clearable |
|
|
|
|
|
|
|
placeholder="账户状态" style="width: 49%;margin-right: 45px;margin-bottom: 10px"> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="item in status_choices" |
|
|
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
|
|
:disabled="item.disabled" |
|
|
|
|
|
|
|
:label="item.name" |
|
|
|
|
|
|
|
:value="item.id"> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button @click="setdeveloperstatus">确定</el-button> |
|
|
|
|
|
|
|
<el-button @click="setdeveloperstatusVisible=false">取消</el-button> |
|
|
|
|
|
|
|
<div style="text-align: left"> |
|
|
|
|
|
|
|
<p>受影响的开发者ID</p> |
|
|
|
|
|
|
|
<el-row v-for="isid in multipleSelection" :key="isid.issuer_id"> |
|
|
|
|
|
|
|
<el-col :span="16">账户ID:{{ isid.issuer_id }}</el-col> |
|
|
|
|
|
|
|
<el-col :span="8">当前状态:{{ format_status(isid.status) }}</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tabs v-model="activeName" tab-position="top" type="border-card" @tab-click="handleClick"> |
|
|
|
<el-tabs v-model="activeName" tab-position="top" type="border-card" @tab-click="handleClick"> |
|
|
|
<el-tab-pane label="开发者账户" name="iosdeveloper"> |
|
|
|
<el-tab-pane label="开发者账户" name="iosdeveloper"> |
|
|
|
<el-input |
|
|
|
<el-input |
|
|
@ -237,32 +262,41 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"><div> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-select v-model="developer_status_choice" clearable multiple |
|
|
|
<div> |
|
|
|
placeholder="账户状态" style="width: 49%;margin-right: 45px;margin-bottom: 10px"> |
|
|
|
<el-select v-model="developer_status_choice" clearable multiple |
|
|
|
<el-option |
|
|
|
placeholder="账户状态" style="width: 49%;margin-right: 45px;margin-bottom: 10px"> |
|
|
|
v-for="item in status_choices" |
|
|
|
<el-option |
|
|
|
:key="item.id" |
|
|
|
v-for="item in status_choices" |
|
|
|
:label="item.name" |
|
|
|
:key="item.id" |
|
|
|
:value="item.id"> |
|
|
|
:label="item.name" |
|
|
|
</el-option> |
|
|
|
:value="item.id"> |
|
|
|
</el-select> |
|
|
|
</el-option> |
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(1)"> |
|
|
|
</el-select> |
|
|
|
搜索 |
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(1)"> |
|
|
|
</el-button> |
|
|
|
搜索 |
|
|
|
</div> |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button type="plain" @click="activemanydeveloperFun"> |
|
|
|
|
|
|
|
账户状态检测 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button type="plain" @click="setdeveloperstatusFun"> |
|
|
|
|
|
|
|
批量设置账户状态 |
|
|
|
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
<el-table |
|
|
|
v-loading="loading" |
|
|
|
v-loading="loading" |
|
|
|
:data="app_developer_lists" |
|
|
|
:data="app_developer_lists" |
|
|
|
border |
|
|
|
border |
|
|
|
stripe |
|
|
|
stripe |
|
|
|
style="width: 100%"> |
|
|
|
style="width: 100%" |
|
|
|
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
|
|
type="selection" |
|
|
|
|
|
|
|
width="39"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
fixed |
|
|
|
fixed |
|
|
@ -321,14 +355,14 @@ |
|
|
|
<p v-if="!scope.row.certid && scope.row.status!==0"> |
|
|
|
<p v-if="!scope.row.certid && scope.row.status!==0"> |
|
|
|
开发证书不可用,请在编辑中导入或手动创建发布证书</p> |
|
|
|
开发证书不可用,请在编辑中导入或手动创建发布证书</p> |
|
|
|
<p v-if="!scope.row.certid && scope.row.status=== 0">请先激活开发者账户</p> |
|
|
|
<p v-if="!scope.row.certid && scope.row.status=== 0">请先激活开发者账户</p> |
|
|
|
<p v-if="scope.row.certid && scope.row.status!==0">{{ format_status(scope.row) }}</p> |
|
|
|
<p v-if="scope.row.certid && scope.row.status!==0">{{ format_status(scope.row.status) }}</p> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<div v-if="scope.row.certid"> |
|
|
|
<div v-if="scope.row.certid"> |
|
|
|
<el-button v-if="scope.row.status === 1" size="small" type="success"> |
|
|
|
<el-button v-if="scope.row.status === 1" size="small" type="success"> |
|
|
|
{{ format_status(scope.row) }} |
|
|
|
{{ format_status(scope.row.status) }} |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button v-else size="small" type="warning" @click="activedeveloperFun(scope.row,'checkauth')"> |
|
|
|
<el-button v-else size="small" type="warning" @click="activedeveloperFun(scope.row,'checkauth')"> |
|
|
|
{{ format_status(scope.row) }} |
|
|
|
{{ format_status(scope.row.status) }} |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -585,6 +619,7 @@ |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<p>开发者ID: {{ scope.row.developer_id }}</p> |
|
|
|
<p>开发者ID: {{ scope.row.developer_id }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
|
|
|
|
<p>开发者状态: {{ scope.row.developer_status }}</p> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<span>{{ scope.row.developer_id }}</span> |
|
|
|
<span>{{ scope.row.developer_id }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -664,6 +699,7 @@ |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<p>开发者ID: {{ scope.row.developer_id }}</p> |
|
|
|
<p>开发者ID: {{ scope.row.developer_id }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
|
|
|
|
<p>开发者状态: {{ scope.row.developer_status }}</p> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<span>{{ scope.row.developer_id }}</span> |
|
|
|
<span>{{ scope.row.developer_id }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -771,6 +807,7 @@ |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
<p>开发者ID: {{ scope.row.issuer_id }}</p> |
|
|
|
<p>开发者ID: {{ scope.row.issuer_id }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
<p>开发者备注: {{ scope.row.developer_description }}</p> |
|
|
|
|
|
|
|
<p>开发者状态: {{ scope.row.developer_status }}</p> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
<span>{{ scope.row.issuer_id }}</span> |
|
|
|
<span>{{ scope.row.issuer_id }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -1071,7 +1108,10 @@ export default { |
|
|
|
appletoapp_title: '', |
|
|
|
appletoapp_title: '', |
|
|
|
status_choices: [], |
|
|
|
status_choices: [], |
|
|
|
read_only_mode: 'off', |
|
|
|
read_only_mode: 'off', |
|
|
|
developer_status_choice: [] |
|
|
|
developer_status_choice: [], |
|
|
|
|
|
|
|
multipleSelection: [], |
|
|
|
|
|
|
|
setdeveloperstatusVisible: false, |
|
|
|
|
|
|
|
change_developer_status: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, watch: { |
|
|
|
}, watch: { |
|
|
|
'dialogaddDeveloperVisible': function () { |
|
|
|
'dialogaddDeveloperVisible': function () { |
|
|
@ -1081,14 +1121,34 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
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) { |
|
|
|
sort_method_usable_number(a, b) { |
|
|
|
return this.formatter_usable_number(a) - this.formatter_usable_number(b) |
|
|
|
return this.formatter_usable_number(a) - this.formatter_usable_number(b) |
|
|
|
}, |
|
|
|
}, |
|
|
|
formatter_usable_number(row) { |
|
|
|
formatter_usable_number(row) { |
|
|
|
return row.usable_number - row.developer_used_number > 0 ? row.usable_number - row.developer_used_number : 0 |
|
|
|
return row.usable_number - row.developer_used_number > 0 ? row.usable_number - row.developer_used_number : 0 |
|
|
|
}, |
|
|
|
}, |
|
|
|
format_status(row) { |
|
|
|
format_status(status) { |
|
|
|
return format_choices(row.status, this.status_choices) |
|
|
|
return format_choices(status, this.status_choices) |
|
|
|
}, |
|
|
|
}, |
|
|
|
downloadipa(info) { |
|
|
|
downloadipa(info) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
@ -1303,6 +1363,21 @@ export default { |
|
|
|
activedeveloperFun(developer, act) { |
|
|
|
activedeveloperFun(developer, act) { |
|
|
|
this.iosdeveloperFun({"methods": "PUT", "data": {"issuer_id": developer.issuer_id, "act": 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() { |
|
|
|
canceledit() { |
|
|
|
this.dialogaddDeveloperVisible = false; |
|
|
|
this.dialogaddDeveloperVisible = false; |
|
|
|
this.editdeveloperinfo = {auth_type: 0, usable_number: 100, app_limit_number: 100}; |
|
|
|
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) { |
|
|
|
if (this.dialogaddDeveloperVisible) { |
|
|
|
this.canceledit(); |
|
|
|
this.canceledit(); |
|
|
|
this.$message.success("操作成功"); |
|
|
|
this.$message.success("操作成功"); |
|
|
@ -1632,7 +1713,7 @@ export default { |
|
|
|
<style scoped> |
|
|
|
<style scoped> |
|
|
|
.el-main { |
|
|
|
.el-main { |
|
|
|
margin: 20px auto 100px; |
|
|
|
margin: 20px auto 100px; |
|
|
|
width: 1166px; |
|
|
|
width: 1188px; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
padding-bottom: 1px; |
|
|
|
padding-bottom: 1px; |
|
|
|
color: #9b9b9b; |
|
|
|
color: #9b9b9b; |
|
|
|