Browse Source

充值审核去空格尝试

lhl
lihuilin 3 weeks ago
parent
commit
d9a91abab1
  1. 29
      gold-system/src/views/audit/rechargeAudit.vue

29
gold-system/src/views/audit/rechargeAudit.vue

@ -98,6 +98,10 @@ const trueGold = ref(0)
const trueCount = ref(0) const trueCount = ref(0)
const trueRGold = ref(0) const trueRGold = ref(0)
const trueFGold = ref(0) const trueFGold = ref(0)
//
const formattedTrueGold = computed(() => trueGold.value.toFixed(2))
const formattedTrueRGold = computed(() => trueRGold.value.toFixed(2))
const formattedTrueFGold = computed(() => trueFGold.value.toFixed(2))
// //
const pendingCount = ref(0) const pendingCount = ref(0)
// //
@ -215,6 +219,7 @@ const get = async function (val) {
} }
// //
const search = function () { const search = function () {
trimJwCode();
getObj.value.pageNum = 1 getObj.value.pageNum = 1
get() get()
} }
@ -410,7 +415,7 @@ const pass = function (row) {
passObj.value = row passObj.value = row
passObj.value.adminId = adminData.value.adminId passObj.value.adminId = adminData.value.adminId
passObj.value.auditId = row.auditId passObj.value.auditId = row.auditId
passObj.value.status = 1
// passObj.value.status = 1
passObj.value.rechargeId = row.rechargeId passObj.value.rechargeId = row.rechargeId
passObj.value.detailId = row.detailId passObj.value.detailId = row.detailId
passObj.value.jwcode = row.jwcode passObj.value.jwcode = row.jwcode
@ -424,6 +429,8 @@ const pass = function (row) {
// //
const passConfirm = async function () { const passConfirm = async function () {
try { try {
//
passObj.value.status = 1
console.log('通过对象', passObj.value) console.log('通过对象', passObj.value)
// POST // POST
// passObj.value.flag = 0; // passObj.value.flag = 0;
@ -442,8 +449,12 @@ const passConfirm = async function () {
message: '通过成功!' message: '通过成功!'
}) })
} catch (error) { } catch (error) {
console.log('请求失败', error)
//
console.error('请求失败', error);
//
ElMessage({
type: 'error',
message: '网络请求出错,请检查网络连接!'
});
} }
} }
@ -538,6 +549,14 @@ const handleSortChange = (column) => {
sortOrder.value = column.order === 'ascending' ? 'ASC' : 'DESC' sortOrder.value = column.order === 'ascending' ? 'ASC' : 'DESC'
get() get()
} }
//
const trimJwCode = () => {
if (rechargeVo.value.jwcode) {
//
rechargeVo.value.jwcode = rechargeVo.value.jwcode.replace(/\s/g, '');
}
}
</script> </script>
<template> <template>
@ -659,8 +678,8 @@ const handleSortChange = (column) => {
<div> <div>
总条数{{ trueCount }}总金币数{{ 总条数{{ trueCount }}总金币数{{
trueGold
}}金币永久金币{{ trueRGold }}金币免费金币{{ trueFGold }}金币
formattedTrueGold
}}金币永久金币{{ formattedTrueRGold }}金币免费金币{{ formattedTrueFGold }}金币
</div> </div>
</el-tabs> </el-tabs>
<div style="height: 540px; overflow-y: auto"> <div style="height: 540px; overflow-y: auto">

Loading…
Cancel
Save