wang hou sheng 8 months ago
parent b0738fff88
commit 663c3bf325
  1. 40
      src/views/store/auth.vue
  2. 4
      src/views/store/modules/Commit.vue

@ -19,13 +19,26 @@
<a-form-item class="search-btn">
<a-button type="primary" @click="handleQrcode">授权二维码</a-button>
</a-form-item>
<a-form-item class="search-btn">
<a-button type="primary" @click="handleBatchTest">批量发布体验版</a-button>
</a-form-item>
<a-form-item class="search-btn">
<a-button type="primary" @click="handleBatch">批量发布正式版</a-button>
</a-form-item>
</a-form>
</a-row>
<!-- 操作板块 -->
<div class="row-item-tab clearfix"></div>
</div>
<a-table :rowKey="(record) => record.id" :columns="columns" :data-source="list" bordered :pagination="false">
<a-table
:rowKey="(record) => record.appid"
:columns="columns"
:data-source="list"
bordered
:pagination="false"
:rowSelection="rowSelection"
>
<span slot="exp_info" slot-scope="text, item">
<p v-if="item.exp_info.exp_version">版本:{{ item.exp_info.exp_version }}</p>
<p v-if="item.exp_info.exp_time">时间:{{ item.exp_info.exp_time }}</p>
@ -41,7 +54,7 @@
</span>
<!-- 操作项 -->
<span class="actions" slot="action" slot-scope="text, item">
<a @click="handleCommit(item)">发布体验版</a>
<a @click="handleCommit(item.appid)">发布体验版</a>
<a @click="handleAudit(item.appid)">发布正式版</a>
<a @click="handleVersion(item)">刷新版本</a>
</span>
@ -194,8 +207,27 @@ export default {
handleQrcode() {
this.$refs.qrcode.show()
},
handleCommit(item) {
this.$refs.commit.show(item)
handleCommit(appid) {
this.$refs.commit.show(appid)
},
handleBatchTest() {
let appids = this.selectedRowKeys.join(',')
if (appids === '') {
this.$message.error('请选择需要提交的APPID')
return false
}
this.$refs.commit.show(appids)
},
handleBatch() {
let appids = this.selectedRowKeys.join(',')
if (appids === '') {
this.$message.error('请选择需要提交的APPID')
return false
}
Api.audit({ appid: appids }).then((result) => {
this.$message.success(result.message, 1.5)
this.fetchData()
})
},
handleSearch() {
this.queryParam.page = 1

@ -51,8 +51,8 @@ export default {
/**
* 显示对话框
*/
show(item) {
this.form.appid = item.appid
show(appid) {
this.form.appid = appid
this.visible = true
this.getTemplatelist()
},

Loading…
Cancel
Save