Browse Source

fix: 空值导致总计为空

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

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

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

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

@ -137,7 +137,20 @@ const get = async function (val) {
// 0
total.value = 0
// 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)
//

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

@ -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

Loading…
Cancel
Save