Browse Source

debug

master
linquan 1 day ago
parent
commit
00d0076b19
  1. 13
      src/views/serverBattlePass/shopLog/index.vue
  2. 2
      src/views/serverBattlePass/update/index.vue

13
src/views/serverBattlePass/shopLog/index.vue

@ -39,9 +39,9 @@
</div>
<div class="flex-warp">
<el-form :inline="true">
<el-form-item prop="total" label="总数">{{ tableData.total }}</el-form-item>
<el-form-item prop="total" label="总比例">
<div v-if="tableData.total && tableData.rechargeTotal">{{ (tableData.total / tableData.rechargeTotal) * 100 }}%</div>
<el-form-item prop="total" label="总数">{{ tableData.total }}</el-form-item>
<el-form-item prop="total" label="总比例">
<div v-if="tableData.total && tableData.rechargeTotal">{{ (tableData.total / tableData.rechargeTotal).toFixed(4) * 100 }}%</div>
<div v-else>0%</div>
</el-form-item>
</el-form>
@ -72,7 +72,7 @@
</el-table-column>
<el-table-column prop="State" label="购买比例" width="100">
<template #default="scope">
{{ scope.row.num / tableData.total }}
{{ (scope.row.num / tableData.total * 100).toFixed(2) }} %
</template>
</el-table-column>
</el-table>
@ -140,13 +140,8 @@ export default defineComponent({
if (res.code != 0 || !res.data || !res.data.list) {
return;
}
// state.tableData.list = res.data.list;
state.tableData.total = res.data.total;
state.tableData.rechargeTotal = res.data.rechargeTotal;
let now = new Date().getTime() / 1000;
console.log('gameGMGetBattlePass: time ', now);
// let BattlePassConfig = unique();
console.log('gameGMGetBattlePass: state.servers ', state.servers);
for (let i in state.servers) {
let data = {
id: state.servers[i].id,

2
src/views/serverBattlePass/update/index.vue

@ -447,8 +447,6 @@ export default defineComponent({
}
};
const handleSelectionChange = (selection: any[]) => {
// state.checkTime = 0;
if (state.ignoreSelectList.length > 0) {
selection.forEach((item) => {
if (state.ignoreSelectList.includes(item.id)) {

Loading…
Cancel
Save