|
|
@ -203,6 +203,15 @@ const get = async function (val) { |
|
|
|
totalFreeGold.value = data.freeGolds |
|
|
|
totalTaskGold.value = data.taskGolds |
|
|
|
totalGoldTotal.value = data.sumGolds |
|
|
|
} |
|
|
|
if (totalResult.code === 0) { |
|
|
|
// 将表格数据设置为空数组 |
|
|
|
tableData.value = [] |
|
|
|
totalPermanentGold.value = 0 |
|
|
|
totalFreeGold.value = 0 |
|
|
|
totalTaskGold.value = 0 |
|
|
|
totalGoldTotal.value = 0 |
|
|
|
|
|
|
|
} else { |
|
|
|
ElMessage.error('获取合计数据失败') |
|
|
|
} |
|
|
@ -216,9 +225,7 @@ const get = async function (val) { |
|
|
|
|
|
|
|
// 重置 |
|
|
|
const reset = function () { |
|
|
|
goldDetail.value ={ |
|
|
|
|
|
|
|
} |
|
|
|
goldDetail.value = {} |
|
|
|
goldDetail.value.markets = [] |
|
|
|
selectedMarketPath.value = [] |
|
|
|
delete sortField.value |
|
|
@ -478,8 +485,8 @@ const getMarket = async function () { |
|
|
|
} |
|
|
|
} |
|
|
|
const format3 = (num) => { |
|
|
|
// 每三位添加逗号 |
|
|
|
return num.toLocaleString('en-US') |
|
|
|
// 每三位添加逗号 |
|
|
|
return num.toLocaleString('en-US') |
|
|
|
} |
|
|
|
</script> |
|
|
|
<template> |
|
|
@ -554,10 +561,10 @@ const format3 = (num) => { |
|
|
|
<el-col> |
|
|
|
<el-card> |
|
|
|
<div> |
|
|
|
金币总数:{{ format3(totalGoldTotal/100 || 0) }} |
|
|
|
永久金币:{{ format3(totalPermanentGold/100 || 0) }} |
|
|
|
免费金币:{{ format3(totalFreeGold/100 || 0) }} |
|
|
|
任务金币:{{ format3(totalTaskGold /100|| 0) }} |
|
|
|
金币总数:{{ format3(totalGoldTotal / 100 || 0) }} |
|
|
|
永久金币:{{ format3(totalPermanentGold / 100 || 0) }} |
|
|
|
免费金币:{{ format3(totalFreeGold / 100 || 0) }} |
|
|
|
任务金币:{{ format3(totalTaskGold / 100 || 0) }} |
|
|
|
</div> |
|
|
|
<div style="height: 584px; overflow-y: auto"> |
|
|
|
<el-table :data="tableData" style="width: 100%" @sort-change="handleSortChange" height="584px"> |
|
|
|