新增奖池线统计
This commit is contained in:
@@ -25,4 +25,13 @@ export const deployedPoolItem = query => {
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
//统计
|
||||
export const showPoolItemCount = query => {
|
||||
return request({
|
||||
url: '/admin/seize-treasure/pool/item/count',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
@@ -155,7 +155,7 @@
|
||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||
import { apiResult } from '@/utils/maintainer';
|
||||
import { getRewardList } from '@/api/treasure/reward';
|
||||
import { savePoolItem, deployPoolItem, deployedPoolItem } from '@/api/treasure/poolItem';
|
||||
import { savePoolItem, deployPoolItem, deployedPoolItem, showPoolItemCount } from '@/api/treasure/poolItem';
|
||||
|
||||
export default {
|
||||
name: "SeizeTreasurePoolItemView",
|
||||
@@ -166,6 +166,7 @@ export default {
|
||||
this.$nextTick(function () {
|
||||
this.initTable();
|
||||
});
|
||||
this.showPoolItemCount();
|
||||
},
|
||||
mounted() {
|
||||
this.optEdit();
|
||||
@@ -308,6 +309,21 @@ export default {
|
||||
},
|
||||
btnSearch() {
|
||||
TableHelper.doRefresh('#table');
|
||||
this.showPoolItemCount();
|
||||
},
|
||||
showPoolItemCount() {
|
||||
showPoolItemCount({
|
||||
poolType: 1,
|
||||
poolGroup: $('#poolGroup').val()
|
||||
}).then(res => {
|
||||
let data = res.data;
|
||||
$('#giftCount').val(data.giftCount);
|
||||
$('#giftValue').val(data.giftValue);
|
||||
$('#rewardLineCount').val(data.rewardLineCount);
|
||||
$('#rewardLineNum').val(data.rewardLineNum);
|
||||
$('#totalGiftValue').val(data.totalGiftValue);
|
||||
$('#singleLineRatio').val(data.singleLineRatio + '%');
|
||||
});
|
||||
},
|
||||
showReward(rewardId) {
|
||||
getRewardList().then(res => {
|
||||
@@ -419,6 +435,7 @@ export default {
|
||||
TableHelper.doRefresh('#table');
|
||||
$("#editModal").modal('hide');
|
||||
});
|
||||
this.showPoolItemCount();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user