|
|
|
@ -42,7 +42,8 @@ |
|
|
|
|
<!-- 操作项 --> |
|
|
|
|
<span class="actions" slot="action" slot-scope="text, item"> |
|
|
|
|
<a @click="handleCommit(item)">发布体验版</a> |
|
|
|
|
<a @click="handleVersion(item)">刷新版本信息</a> |
|
|
|
|
<a @click="handleAudit(item.appid)">发布正式版</a> |
|
|
|
|
<a @click="handleVersion(item)">刷新版本</a> |
|
|
|
|
</span> |
|
|
|
|
</a-table> |
|
|
|
|
<Qrcode ref="qrcode" /> |
|
|
|
@ -89,6 +90,16 @@ const columns = [ |
|
|
|
|
width: '180px', |
|
|
|
|
dataIndex: 'nick_name', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '审核状态(正式版)', |
|
|
|
|
width: '180px', |
|
|
|
|
dataIndex: 'audit_status_text', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '拒绝原因(正式版)', |
|
|
|
|
width: '180px', |
|
|
|
|
dataIndex: 'audit_reason', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '体验版', |
|
|
|
|
width: '200px', |
|
|
|
@ -96,7 +107,7 @@ const columns = [ |
|
|
|
|
scopedSlots: { customRender: 'exp_info' }, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '线上版', |
|
|
|
|
title: '正式版', |
|
|
|
|
width: '200px', |
|
|
|
|
key: 'release_info', |
|
|
|
|
scopedSlots: { customRender: 'release_info' }, |
|
|
|
@ -117,7 +128,7 @@ const columns = [ |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|
width: '300px', |
|
|
|
|
width: '250px', |
|
|
|
|
key: 'action', |
|
|
|
|
fixed: 'right', |
|
|
|
|
scopedSlots: { customRender: 'action' }, |
|
|
|
@ -207,7 +218,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
handleVersion(item) { |
|
|
|
|
this.isLoading = true |
|
|
|
|
Api.getVersion({ appid: item.appid }).then(() => { |
|
|
|
|
Api.getVersion({ appid: item.appid }).then((result) => { |
|
|
|
|
this.$message.success(result.message, 1.5) |
|
|
|
|
this.fetchData() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -230,6 +242,21 @@ export default { |
|
|
|
|
handleAcceptance(item) { |
|
|
|
|
this.$refs.acceptance.add(item) |
|
|
|
|
}, |
|
|
|
|
handleAudit(appid) { |
|
|
|
|
const self = this |
|
|
|
|
const modal = this.$confirm({ |
|
|
|
|
title: '您确定要发布正式版吗?', |
|
|
|
|
content: '', |
|
|
|
|
onOk() { |
|
|
|
|
return Api.audit({ appid: appid }) |
|
|
|
|
.then((result) => { |
|
|
|
|
this.$message.success(result.message, 1.5) |
|
|
|
|
this.fetchData() |
|
|
|
|
}) |
|
|
|
|
.finally(() => modal.destroy()) |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 刷新列表 |
|
|
|
|
* @param Boolean bool 强制刷新到第一页 |
|
|
|
|