新增发布功能
This commit is contained in:
@@ -8,3 +8,11 @@ export const savePoolItem = query => {
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
export const deployPoolItem = query => {
|
||||
return request({
|
||||
url: '/admin/seize-treasure/pool/item/deploy',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
@@ -24,6 +24,9 @@
|
||||
<button id="btnAdd" class="btn btn-default" @click="btnAdd">
|
||||
<i class="glyphicon glyphicon-plus-sign"></i>新增
|
||||
</button>
|
||||
<button id="btnDeploy" class="btn btn-default" @click="btnDeploy">
|
||||
<i class="glyphicon glyphicon-plus-sign"></i>发布
|
||||
</button>
|
||||
<button id="btnSearch" class="btn btn-default" @click="btnSearch">
|
||||
<i class="glyphicon glyphicon-search"></i>查询
|
||||
</button>
|
||||
@@ -108,7 +111,7 @@
|
||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||
import { apiResult } from '@/utils/maintainer';
|
||||
import { getRewardList } from '@/api/treasure/reward';
|
||||
import { savePoolItem } from '@/api/treasure/poolItem';
|
||||
import { savePoolItem, deployPoolItem } from '@/api/treasure/poolItem';
|
||||
|
||||
export default {
|
||||
name: "SeizeTreasurePoolItemView",
|
||||
@@ -295,6 +298,13 @@ export default {
|
||||
this.showReward();
|
||||
$("#editModal").modal('show');
|
||||
},
|
||||
btnDeploy() {
|
||||
deployPoolItem({
|
||||
poolType: 1
|
||||
}).then(res => {
|
||||
apiResult(res);
|
||||
});
|
||||
},
|
||||
optEdit() {
|
||||
$('#table').on('click', '.opt-edit', function () {
|
||||
const currentData = $('#table').bootstrapTable('getData')[$(this).data('index')];
|
||||
|
Reference in New Issue
Block a user