Browse Source

fix: 空值导致总计为空

fix:退款审核提交人id
zhangyong/feature-20250716164232-金币前端
lihui 5 days ago
parent
commit
795651239c
  1. 3
      src/views/audit/gold/refundAudit.vue
  2. 15
      src/views/usergold/gold/clientCountBalance.vue
  3. 21
      src/views/usergold/gold/clientCountDetail.vue

3
src/views/audit/gold/refundAudit.vue

@ -177,6 +177,7 @@ const tableData = ref([])
const marketOptions = ref([]) const marketOptions = ref([])
const refundGoodsOptions = ref([]) const refundGoodsOptions = ref([])
const adminInfo = ref({}) const adminInfo = ref({})
// //
const stats = ref({ const stats = ref({
totalNum: 0, totalNum: 0,
@ -284,7 +285,7 @@ const handleApprove = async (row) => {
try { try {
const params = { const params = {
orderCode: row.orderCode, orderCode: row.orderCode,
auditId: adminInfo.value.id,
auditId: adminData.value.id,
action: 1,// action1,2 action: 1,// action1,2
rejectReason: '' rejectReason: ''
} }

15
src/views/usergold/gold/clientCountBalance.vue

@ -137,7 +137,20 @@ const get = async function (val) {
// 0 // 0
total.value = 0 total.value = 0
// ElMessage.warning('') // ElMessage.warning('')
} else {
}
// , result.data.list
if(resultGoldTotal.data===0){
//
tableData.value = []
// 0
permanentGold.value = 0
freeJuneGold.value = 0
freeDecemberGold.value = 0
taskGold.value = 0
goldtotal.value = 0
freeGold.value = 0
}
else {
// //
console.log('总数据请求成功', result) console.log('总数据请求成功', result)
// //

21
src/views/usergold/gold/clientCountDetail.vue

@ -203,6 +203,15 @@ const get = async function (val) {
totalFreeGold.value = data.freeGolds totalFreeGold.value = data.freeGolds
totalTaskGold.value = data.taskGolds totalTaskGold.value = data.taskGolds
totalGoldTotal.value = data.sumGolds totalGoldTotal.value = data.sumGolds
}
if (totalResult.code === 0) {
//
tableData.value = []
totalPermanentGold.value = 0
totalFreeGold.value = 0
totalTaskGold.value = 0
totalGoldTotal.value = 0
} else { } else {
ElMessage.error('获取合计数据失败') ElMessage.error('获取合计数据失败')
} }
@ -216,9 +225,7 @@ const get = async function (val) {
// //
const reset = function () { const reset = function () {
goldDetail.value ={
}
goldDetail.value = {}
goldDetail.value.markets = [] goldDetail.value.markets = []
selectedMarketPath.value = [] selectedMarketPath.value = []
delete sortField.value delete sortField.value
@ -554,10 +561,10 @@ const format3 = (num) => {
<el-col> <el-col>
<el-card> <el-card>
<div> <div>
金币总数{{ format3(totalGoldTotal/100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
永久金币{{ format3(totalPermanentGold/100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
免费金币{{ format3(totalFreeGold/100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
任务金币{{ format3(totalTaskGold /100|| 0) }}
金币总数{{ format3(totalGoldTotal / 100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
永久金币{{ format3(totalPermanentGold / 100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
免费金币{{ format3(totalFreeGold / 100 || 0) }}&nbsp;&nbsp;&nbsp;&nbsp;
任务金币{{ format3(totalTaskGold / 100 || 0) }}
</div> </div>
<div style="height: 584px; overflow-y: auto"> <div style="height: 584px; overflow-y: auto">
<el-table :data="tableData" style="width: 100%" @sort-change="handleSortChange" height="584px"> <el-table :data="tableData" style="width: 100%" @sort-change="handleSortChange" height="584px">

Loading…
Cancel
Save