新增奖池线统计

This commit is contained in:
liaozetao
2023-10-13 17:30:21 +08:00
parent 059419da08
commit 0407798ba0
2 changed files with 28 additions and 2 deletions

View File

@@ -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
});
}

View File

@@ -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();
}
},
};