|
|
|
@ -1,59 +1,59 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-main> |
|
|
|
|
|
|
|
|
|
<el-dialog title="发布证书导入" :visible.sync="importcertDeveloperVisible" :destroy-on-close="true" |
|
|
|
|
:close-on-click-modal="false" style="text-align:center" width="700px"> |
|
|
|
|
<el-dialog :close-on-click-modal="false" :destroy-on-close="true" :visible.sync="importcertDeveloperVisible" |
|
|
|
|
style="text-align:center" title="发布证书导入" width="700px"> |
|
|
|
|
<el-form label-width="30%"> |
|
|
|
|
<el-form-item label="发布证书p12文件" style="width: 80%"> |
|
|
|
|
<el-upload |
|
|
|
|
drag |
|
|
|
|
ref="upload" |
|
|
|
|
action="#" |
|
|
|
|
:auto-upload="false" |
|
|
|
|
:before-upload="beforeAvatarUpload" |
|
|
|
|
accept=".p12" |
|
|
|
|
:file-list="fileList" |
|
|
|
|
:auto-upload="false" |
|
|
|
|
:limit="1" |
|
|
|
|
accept=".p12" |
|
|
|
|
action="#" |
|
|
|
|
drag |
|
|
|
|
> |
|
|
|
|
<i class="el-icon-upload"/> |
|
|
|
|
<div class="el-upload__text">将p12证书文件拖到此处,或<em>点击上传</em></div> |
|
|
|
|
</el-upload> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="发布证书p12密码" style="width: 80%"> |
|
|
|
|
<el-input label="证书密码" v-model="cert_pwd"/> |
|
|
|
|
<el-input v-model="cert_pwd" label="证书密码"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-button @click="$refs.upload.submit()">确定导入</el-button> |
|
|
|
|
<el-button @click="importcertDeveloperVisible=false">取消</el-button> |
|
|
|
|
</el-form> |
|
|
|
|
</el-dialog> |
|
|
|
|
<el-dialog :title="title" :visible.sync="dialogaddDeveloperVisible" :destroy-on-close="true" |
|
|
|
|
:close-on-click-modal="false" style="text-align:center" width="750px"> |
|
|
|
|
<el-dialog :close-on-click-modal="false" :destroy-on-close="true" :title="title" |
|
|
|
|
:visible.sync="dialogaddDeveloperVisible" style="text-align:center" width="750px"> |
|
|
|
|
|
|
|
|
|
<el-form ref="storageinfoform" :model="editdeveloperinfo" |
|
|
|
|
label-width="80px" style="margin:0 auto;"> |
|
|
|
|
|
|
|
|
|
<div v-if="editdeveloperinfo.auth_type===0"> |
|
|
|
|
<el-form-item label-width="110px" label="issuer_id"> |
|
|
|
|
<el-input :disabled='isedit' v-model="editdeveloperinfo.issuer_id"/> |
|
|
|
|
<el-form-item label="issuer_id" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.issuer_id" :disabled='isedit'/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="private_key_id"> |
|
|
|
|
<el-form-item label="private_key_id" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.private_key_id"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="p8key"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
:rows="6" v-model="editdeveloperinfo.p8key" :placeholder="placeholder"/> |
|
|
|
|
<el-form-item label="p8key" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.p8key" |
|
|
|
|
:placeholder="placeholder" :rows="6" type="textarea"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="设备数量" style="text-align: left"> |
|
|
|
|
<el-input-number v-model="editdeveloperinfo.usable_number" :min="0" :max="100" label="设备数量"/> |
|
|
|
|
<el-form-item label="设备数量" label-width="110px" style="text-align: left"> |
|
|
|
|
<el-input-number v-model="editdeveloperinfo.usable_number" :max="100" :min="0" label="设备数量"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label-width="110px" label="证书id"> |
|
|
|
|
<el-input :disabled='isedit' v-model="editdeveloperinfo.certid"/> |
|
|
|
|
<el-form-item label="证书id" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.certid" :disabled='isedit'/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label-width="110px" label="备注"> |
|
|
|
|
<el-form-item label="备注" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.description"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div style=""> |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
|
@click="isorenewcert">删除发布证书 |
|
|
|
|
</el-button> |
|
|
|
|
</el-tooltip> |
|
|
|
|
<el-button v-if="isedit && editdeveloperinfo.is_actived" type="success" size="small" |
|
|
|
|
<el-button v-if="isedit && editdeveloperinfo.is_actived" size="small" type="success" |
|
|
|
|
@click="activedeveloperFun(editdeveloperinfo,'checkauth')">账户激活检测 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
@ -94,44 +94,44 @@ |
|
|
|
|
</el-form> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="设备消耗详细信息" :destroy-on-close="true" :visible.sync="dialogShowDeviceBillInfo" |
|
|
|
|
:close-on-click-modal="false" center width="750px"> |
|
|
|
|
<el-dialog :close-on-click-modal="false" :destroy-on-close="true" :visible.sync="dialogShowDeviceBillInfo" |
|
|
|
|
center title="设备消耗详细信息" width="750px"> |
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
:data="app_bill_info_lists" |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="app_bill_info_lists" |
|
|
|
|
border |
|
|
|
|
stripe |
|
|
|
|
style="width: 100%"> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="app_name" |
|
|
|
|
align="center" |
|
|
|
|
label="应用名称" |
|
|
|
|
prop="app_name" |
|
|
|
|
> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
prop="remote_addr" |
|
|
|
|
align="center" |
|
|
|
|
label="客户端IP"> |
|
|
|
|
label="客户端IP" |
|
|
|
|
prop="remote_addr"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="action" |
|
|
|
|
label="账单类型" |
|
|
|
|
align="center" |
|
|
|
|
label="账单类型" |
|
|
|
|
prop="action" |
|
|
|
|
width="100"> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
:formatter="deviceformatter" |
|
|
|
|
align="center" |
|
|
|
|
prop="created_time" |
|
|
|
|
label="日期" |
|
|
|
|
prop="created_time" |
|
|
|
|
width="160"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="应用状态" |
|
|
|
|
align="center" |
|
|
|
|
label="应用状态" |
|
|
|
|
width="110"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-tag v-if="scope.row.app_status===false" type="info">应用删除</el-tag> |
|
|
|
@ -141,8 +141,8 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
label="设备状态" |
|
|
|
|
align="center" |
|
|
|
|
label="设备状态" |
|
|
|
|
width="110"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-tag v-if="scope.row.is_used===false" type="info">已经释放</el-tag> |
|
|
|
@ -155,13 +155,13 @@ |
|
|
|
|
</el-table> |
|
|
|
|
<div style="margin-top: 20px"> |
|
|
|
|
<el-pagination |
|
|
|
|
@size-change="billhandleSizeChange" |
|
|
|
|
@current-change="billhandleCurrentChange" |
|
|
|
|
:current-page.sync="billpagination.currentPage" |
|
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
|
:page-size="billpagination.pagesize" |
|
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
|
:total="billpagination.total" |
|
|
|
|
layout="total,sizes, prev, pager, next" |
|
|
|
|
:total="billpagination.total"> |
|
|
|
|
@size-change="billhandleSizeChange" |
|
|
|
|
@current-change="billhandleCurrentChange"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
<span slot="footer"> |
|
|
|
@ -169,52 +169,55 @@ |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" tab-position="top"> |
|
|
|
|
<el-tabs v-model="activeName" tab-position="top" type="border-card" @tab-click="handleClick"> |
|
|
|
|
<el-tab-pane label="开发者账户" name="iosdeveloper"> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="appidseach" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入用户ID"/> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
placeholder="输入用户ID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
搜索 |
|
|
|
|
</el-button> |
|
|
|
|
<div style="width: 40%;margin-right: 30px;float:right"> |
|
|
|
|
<el-link :underline="false">总设备量:{{ developer_used_info.all_usable_number }} 已经使用:【平台:{{ |
|
|
|
|
developer_used_info.all_use_number}} 】【其他:{{developer_used_info.other_used_sum}} 】 |
|
|
|
|
developer_used_info.all_use_number |
|
|
|
|
}} 】【其他:{{ developer_used_info.other_used_sum }} 】 |
|
|
|
|
还剩:{{ developer_used_info.all_usable_number - developer_used_info.flyapp_used_sum }} 可用 |
|
|
|
|
</el-link> |
|
|
|
|
<el-progress |
|
|
|
|
type="line" |
|
|
|
|
:color="developer_usedColor" |
|
|
|
|
:text-inside="true" :stroke-width="18" :percentage="percentage" |
|
|
|
|
status="success"/> |
|
|
|
|
:percentage="percentage" |
|
|
|
|
:stroke-width="18" :text-inside="true" status="success" |
|
|
|
|
type="line"/> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="app_developer_lists" |
|
|
|
|
border |
|
|
|
|
v-loading="loading" |
|
|
|
|
stripe |
|
|
|
|
style="width: 100%"> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
fixed |
|
|
|
|
prop="issuer_id" |
|
|
|
|
align="center" |
|
|
|
|
fixed |
|
|
|
|
label="用户 issuer_id" |
|
|
|
|
prop="issuer_id" |
|
|
|
|
width="300"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
|
<p>开发者账户已使用设备数: {{ scope.row.developer_used_number }}</p> |
|
|
|
|
<p>开发者账户可用设备数: {{ 100 - scope.row.developer_used_number }}</p> |
|
|
|
|
<p>由于您设置可用设备数: {{ scope.row.usable_number }} ,所以现在可用设备数: {{ |
|
|
|
|
scope.row.usable_number - scope.row.developer_used_number > 0 |
|
|
|
|
?scope.row.usable_number-scope.row.developer_used_number :0 }}</p> |
|
|
|
|
? scope.row.usable_number - scope.row.developer_used_number : 0 |
|
|
|
|
}}</p> |
|
|
|
|
|
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
|
<el-tag size="medium" v-if="scope.row.issuer_id"><i class="el-icon-key"/> {{ |
|
|
|
|
scope.row.issuer_id }} |
|
|
|
|
<el-tag v-if="scope.row.issuer_id" size="medium"><i class="el-icon-key"/> {{ |
|
|
|
|
scope.row.issuer_id |
|
|
|
|
}} |
|
|
|
|
</el-tag> |
|
|
|
|
</div> |
|
|
|
|
</el-popover> |
|
|
|
@ -222,49 +225,53 @@ |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="is_actived" |
|
|
|
|
align="center" |
|
|
|
|
label="是否激活" |
|
|
|
|
prop="is_actived" |
|
|
|
|
width="110"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button v-if="scope.row.is_actived === true" type="success" size="small">已激活</el-button> |
|
|
|
|
<el-button v-else type="danger" size="small" |
|
|
|
|
<el-button v-if="scope.row.is_actived === true" size="small" type="success">已激活</el-button> |
|
|
|
|
<el-button v-else size="small" type="danger" |
|
|
|
|
@click="activedeveloperFun(scope.row,'checkauth')">点击激活 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="certid" |
|
|
|
|
label="账户状态" |
|
|
|
|
align="center" |
|
|
|
|
label="账户状态" |
|
|
|
|
prop="certid" |
|
|
|
|
width="100"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
|
<p v-if="!scope.row.certid && scope.row.is_actived === true"> |
|
|
|
|
开发证书不可用,请在编辑中导入或手动创建发布证书</p> |
|
|
|
|
<p v-if="!scope.row.certid && scope.row.is_actived !== true">请先激活开发者账户</p> |
|
|
|
|
<p v-if="scope.row.certid && scope.row.is_actived === true">账户已经启用</p> |
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
|
<el-button v-if="scope.row.certid " type="success" size="small">可用</el-button> |
|
|
|
|
<el-button v-else type="danger" size="small">不可用</el-button> |
|
|
|
|
<el-button v-if="scope.row.certid " size="small" type="success">可用</el-button> |
|
|
|
|
<el-button v-else size="small" type="danger">不可用</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-popover> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="usable_number" |
|
|
|
|
label="可用设备" |
|
|
|
|
align="center" |
|
|
|
|
label="可用设备" |
|
|
|
|
prop="usable_number" |
|
|
|
|
width="60"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
|
<p>可用设备数: {{ scope.row.usable_number-scope.row.developer_used_number > 0 |
|
|
|
|
?scope.row.usable_number-scope.row.developer_used_number :0}}</p> |
|
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
|
<p>可用设备数: {{ |
|
|
|
|
scope.row.usable_number - scope.row.developer_used_number > 0 |
|
|
|
|
? scope.row.usable_number - scope.row.developer_used_number : 0 |
|
|
|
|
}}</p> |
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
|
<el-tag size="medium"> {{ scope.row.usable_number-scope.row.developer_used_number > |
|
|
|
|
0 ?scope.row.usable_number-scope.row.developer_used_number :0 }} |
|
|
|
|
<el-tag size="medium"> {{ |
|
|
|
|
scope.row.usable_number - scope.row.developer_used_number > |
|
|
|
|
0 ? scope.row.usable_number - scope.row.developer_used_number : 0 |
|
|
|
|
}} |
|
|
|
|
</el-tag> |
|
|
|
|
</div> |
|
|
|
|
</el-popover> |
|
|
|
@ -272,12 +279,12 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
prop="use_number" |
|
|
|
|
align="center" |
|
|
|
|
label="设备消耗" |
|
|
|
|
prop="use_number" |
|
|
|
|
width="60"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
|
<p>开发者账户已使用设备数【本平台】: {{ scope.row.use_number }}</p> |
|
|
|
|
<p>开发者账户已使用设备数【其他】: {{ scope.row.developer_used_other_number }}</p> |
|
|
|
|
<div slot="reference" class="name-wrapper"> |
|
|
|
@ -289,21 +296,21 @@ |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
:formatter="formatter" |
|
|
|
|
prop="cert_expire_time" |
|
|
|
|
label="证书到期时间" |
|
|
|
|
align="center" |
|
|
|
|
label="证书到期时间" |
|
|
|
|
prop="cert_expire_time" |
|
|
|
|
width="160"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
align="center" |
|
|
|
|
prop="description" |
|
|
|
|
label="备注" |
|
|
|
|
prop="description" |
|
|
|
|
> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
align="center" |
|
|
|
|
fixed="right" |
|
|
|
|
label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="150"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
|
@ -327,7 +334,7 @@ |
|
|
|
|
<el-form ref="storageinfoform" :model="editdeveloperinfo" |
|
|
|
|
label-width="80px" style="margin:0 auto;"> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="100px" label="认证类型"> |
|
|
|
|
<el-form-item label="认证类型" label-width="100px"> |
|
|
|
|
<el-select v-model="editdeveloperinfo.auth_type" placeholder="认证类型" |
|
|
|
|
style="margin-left: -100px"> |
|
|
|
|
<el-option v-for="st in apple_auth_list" :key="st.id" :label="st.name" |
|
|
|
@ -335,36 +342,36 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div v-if="editdeveloperinfo.auth_type===0"> |
|
|
|
|
<el-form-item label-width="110px" label="issuer_id"> |
|
|
|
|
<el-input :disabled='isedit' v-model="editdeveloperinfo.issuer_id"/> |
|
|
|
|
<el-form-item label="issuer_id" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.issuer_id" :disabled='isedit'/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="private_key_id"> |
|
|
|
|
<el-form-item label="private_key_id" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.private_key_id" :placeholder="placeholder"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="p8key"> |
|
|
|
|
<el-input type="textarea" |
|
|
|
|
:rows="6" v-model="editdeveloperinfo.p8key" :placeholder="placeholder"/> |
|
|
|
|
<el-form-item label="p8key" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.p8key" |
|
|
|
|
:placeholder="placeholder" :rows="6" type="textarea"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="设备数量" style="text-align: left"> |
|
|
|
|
<el-input-number v-model="editdeveloperinfo.usable_number" :min="0" :max="100" label="设备数量"/> |
|
|
|
|
<el-form-item label="设备数量" label-width="110px" style="text-align: left"> |
|
|
|
|
<el-input-number v-model="editdeveloperinfo.usable_number" :max="100" :min="0" label="设备数量"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label-width="110px" label="备注"> |
|
|
|
|
<el-form-item label="备注" label-width="110px"> |
|
|
|
|
<el-input v-model="editdeveloperinfo.description"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div style=""> |
|
|
|
|
<el-button @click="updateorcreate" type="primary" plain>保存信息并添加</el-button> |
|
|
|
|
<el-button plain type="primary" @click="updateorcreate">保存信息并添加</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
<el-card style="margin-top: 20px;text-align: left" header="获取密钥帮助"> |
|
|
|
|
<el-card header="获取密钥帮助" style="margin-top: 20px;text-align: left"> |
|
|
|
|
<h1>获取密钥:</h1> |
|
|
|
|
<p>前往 AppStore Connect 。按照 |
|
|
|
|
<el-button plain type="primary" size="small" @click="$router.push({name:'FirSuperSignHelp'})"> |
|
|
|
|
<el-button plain size="small" type="primary" @click="$router.push({name:'FirSuperSignHelp'})"> |
|
|
|
|
此步骤 |
|
|
|
|
</el-button> |
|
|
|
|
获取 API 密钥,将获取到的密钥添加到这里。 |
|
|
|
@ -379,72 +386,72 @@ |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="设备消耗" name="useddevices"> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="udidsearch" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入UDID"/> |
|
|
|
|
placeholder="输入UDID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="Bundleidsearch" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入BundleID"/> |
|
|
|
|
placeholder="输入BundleID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 23%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="appidseach" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入用户ID"/> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
placeholder="输入用户ID" |
|
|
|
|
style="width: 23%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
搜索 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
:data="app_devices_lists" |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="app_devices_lists" |
|
|
|
|
border |
|
|
|
|
stripe |
|
|
|
|
style="width: 100%"> |
|
|
|
|
<el-table-column |
|
|
|
|
fixed |
|
|
|
|
align="center" |
|
|
|
|
prop="device_udid" |
|
|
|
|
fixed |
|
|
|
|
label="设备ID" |
|
|
|
|
prop="device_udid" |
|
|
|
|
> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="device_name" |
|
|
|
|
align="center" |
|
|
|
|
label="设备名称" |
|
|
|
|
prop="device_name" |
|
|
|
|
width="120"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="bundle_id" |
|
|
|
|
align="center" |
|
|
|
|
label="应用ID" |
|
|
|
|
prop="bundle_id" |
|
|
|
|
width="180"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="bundle_name" |
|
|
|
|
align="center" |
|
|
|
|
label="应用名称" |
|
|
|
|
prop="bundle_name" |
|
|
|
|
width="160"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="developer_id" |
|
|
|
|
label="开发者ID" |
|
|
|
|
align="center" |
|
|
|
|
label="开发者ID" |
|
|
|
|
prop="developer_id" |
|
|
|
|
width="200"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
v-if="$store.state.userinfo&&$store.state.userinfo.role == 3" |
|
|
|
|
prop="other_uid" |
|
|
|
|
align="center" |
|
|
|
|
label="被使用户uid"> |
|
|
|
|
label="被使用户uid" |
|
|
|
|
prop="other_uid"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
:formatter="deviceformatter" |
|
|
|
|
prop="created_time" |
|
|
|
|
align="center" |
|
|
|
|
label="授权时间" |
|
|
|
|
prop="created_time" |
|
|
|
|
width="160"> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -453,35 +460,35 @@ |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="设备管理" name="devicesudid"> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="udidsearch" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入UDID"/> |
|
|
|
|
placeholder="输入UDID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="Bundleidsearch" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入BundleID"/> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
placeholder="输入BundleID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
搜索 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
:data="app_udid_lists" |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="app_udid_lists" |
|
|
|
|
border |
|
|
|
|
stripe |
|
|
|
|
style="width: 100%"> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
fixed |
|
|
|
|
align="center" |
|
|
|
|
prop="udid" |
|
|
|
|
fixed |
|
|
|
|
label="设备ID" |
|
|
|
|
prop="udid" |
|
|
|
|
> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-popover trigger="hover" placement="top"> |
|
|
|
|
<el-popover placement="top" trigger="hover"> |
|
|
|
|
<p>Bundle_ID: {{ scope.row.bundle_id }}</p> |
|
|
|
|
<p>应用名称: {{ scope.row.bundle_name }}</p> |
|
|
|
|
<p>UDID: {{ scope.row.udid }}</p> |
|
|
|
@ -492,47 +499,47 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="imei" |
|
|
|
|
label="imei" |
|
|
|
|
align="center" |
|
|
|
|
label="imei" |
|
|
|
|
prop="imei" |
|
|
|
|
width="160"> |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="product" |
|
|
|
|
label="设备名称" |
|
|
|
|
align="center" |
|
|
|
|
label="设备名称" |
|
|
|
|
prop="product" |
|
|
|
|
width="100"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="version" |
|
|
|
|
label="设备型号" |
|
|
|
|
align="center" |
|
|
|
|
label="设备型号" |
|
|
|
|
prop="version" |
|
|
|
|
width="100"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="serial" |
|
|
|
|
label="设备序列号" |
|
|
|
|
align="center" |
|
|
|
|
label="设备序列号" |
|
|
|
|
prop="serial" |
|
|
|
|
width="140"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
v-if="$store.state.userinfo&&$store.state.userinfo.role == 3" |
|
|
|
|
prop="other_uid" |
|
|
|
|
align="center" |
|
|
|
|
label="被使用户uid"> |
|
|
|
|
label="被使用户uid" |
|
|
|
|
prop="other_uid"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
:formatter="deviceformatter" |
|
|
|
|
prop="created_time" |
|
|
|
|
label="添加时间" |
|
|
|
|
align="center" |
|
|
|
|
label="添加时间" |
|
|
|
|
prop="created_time" |
|
|
|
|
width="160"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
align="center" |
|
|
|
|
fixed="right" |
|
|
|
|
label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="110"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button |
|
|
|
@ -551,31 +558,31 @@ |
|
|
|
|
</el-tab-pane> |
|
|
|
|
<el-tab-pane label="设备消耗账单" name="devicesbill"> |
|
|
|
|
<el-input |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px" |
|
|
|
|
v-model="udidsearch" |
|
|
|
|
clearable |
|
|
|
|
placeholder="输入UDID"/> |
|
|
|
|
placeholder="输入UDID" |
|
|
|
|
style="width: 30%;margin-right: 30px;margin-bottom: 10px"/> |
|
|
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
<el-button icon="el-icon-search" type="primary" @click="handleCurrentChange(pagination.currentPage)"> |
|
|
|
|
搜索 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table |
|
|
|
|
:data="app_bill_lists" |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="app_bill_lists" |
|
|
|
|
border |
|
|
|
|
stripe |
|
|
|
|
style="width: 100%"> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
fixed |
|
|
|
|
prop="udid" |
|
|
|
|
align="center" |
|
|
|
|
fixed |
|
|
|
|
label="设备ID" |
|
|
|
|
prop="udid" |
|
|
|
|
> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-tooltip effect="dark" content="点击查看设备安装详细信息" placement="top"> |
|
|
|
|
<el-tooltip content="点击查看设备安装详细信息" effect="dark" placement="top"> |
|
|
|
|
<el-link :underline="false" @click="showDeviceBill(scope.row.udid)"> |
|
|
|
|
{{ scope.row.udid }} |
|
|
|
|
</el-link> |
|
|
|
@ -583,30 +590,30 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="product" |
|
|
|
|
align="center" |
|
|
|
|
label="设备名称" |
|
|
|
|
width="200" |
|
|
|
|
align="center"> |
|
|
|
|
prop="product" |
|
|
|
|
width="200"> |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="version" |
|
|
|
|
align="center" |
|
|
|
|
label="设备版本" |
|
|
|
|
prop="version" |
|
|
|
|
> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
prop="counts" |
|
|
|
|
align="center" |
|
|
|
|
label="设备安装次数" |
|
|
|
|
prop="counts" |
|
|
|
|
width="110"> |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
label="设备状态" |
|
|
|
|
align="center" |
|
|
|
|
label="设备状态" |
|
|
|
|
width="110"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-tag v-if="!scope.row.udid_sync_info_id" type="info">已经释放</el-tag> |
|
|
|
@ -619,15 +626,15 @@ |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
<div style="margin-top: 20px" v-if="activeName!== 'adddeveloper'"> |
|
|
|
|
<div v-if="activeName!== 'adddeveloper'" style="margin-top: 20px"> |
|
|
|
|
<el-pagination |
|
|
|
|
@size-change="handleSizeChange" |
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
:current-page.sync="pagination.currentPage" |
|
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
|
:page-size="pagination.pagesize" |
|
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
|
:total="pagination.total" |
|
|
|
|
layout="total,sizes, prev, pager, next" |
|
|
|
|
:total="pagination.total"> |
|
|
|
|
@size-change="handleSizeChange" |
|
|
|
|
@current-change="handleCurrentChange"> |
|
|
|
|
</el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</el-tabs> |
|
|
|
@ -637,7 +644,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
|
|
import {iosdeveloper, iosdevices, iosdevicesudid, developercert, DeviceBillInfo} from "@/restful"; |
|
|
|
|
import {developercert, DeviceBillInfo, iosdeveloper, iosdevices, iosdevicesudid} from "@/restful"; |
|
|
|
|
import {getUserInfoFun, removeAaary} from "@/utils"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|