|
|
@ -1,5 +1,5 @@ |
|
|
<script setup> |
|
|
<script setup> |
|
|
import { onMounted, ref, watch } from 'vue' |
|
|
|
|
|
|
|
|
import { onMounted, ref, watch, nextTick } from 'vue' |
|
|
|
|
|
|
|
|
import { ElMessage } from 'element-plus' |
|
|
import { ElMessage } from 'element-plus' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
@ -105,6 +105,10 @@ const markets = ref([]) |
|
|
|
|
|
|
|
|
// 充值明细表格 |
|
|
// 充值明细表格 |
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
|
|
|
const tableRef = ref(null) |
|
|
|
|
|
const scrollTableTop = () => { |
|
|
|
|
|
tableRef.value?.setScrollTop?.(0) |
|
|
|
|
|
} |
|
|
// 各金币字段变量 |
|
|
// 各金币字段变量 |
|
|
// const sumGoldTotal = ref(0) |
|
|
// const sumGoldTotal = ref(0) |
|
|
const permanentGold = ref(0) |
|
|
const permanentGold = ref(0) |
|
|
@ -185,6 +189,8 @@ const get = async function (val) { |
|
|
}) |
|
|
}) |
|
|
console.log('响应数据', result) |
|
|
console.log('响应数据', result) |
|
|
tableData.value = result.data.list |
|
|
tableData.value = result.data.list |
|
|
|
|
|
await nextTick() |
|
|
|
|
|
scrollTableTop() |
|
|
total.value = result.data.total |
|
|
total.value = result.data.total |
|
|
const totalResult = await API({ |
|
|
const totalResult = await API({ |
|
|
url: '/goldDetail/getTotal', |
|
|
url: '/goldDetail/getTotal', |
|
|
@ -550,8 +556,9 @@ const format3 = (num) => { |
|
|
{{ $t('common.taskGold') }}:{{ format3(totalTaskGold || 0) }} |
|
|
{{ $t('common.taskGold') }}:{{ format3(totalTaskGold || 0) }} |
|
|
<a style="color:#b1b1b1; font-size: small;">{{ $t('common.netGoldChangeTip') }}</a> |
|
|
<a style="color:#b1b1b1; font-size: small;">{{ $t('common.netGoldChangeTip') }}</a> |
|
|
</div> |
|
|
</div> |
|
|
<div style="height: 65vh; "> |
|
|
|
|
|
<el-table :data="tableData" style="height: 65vh" @sort-change="handleSortChange" :row-style="{ height: '50px' }"> |
|
|
|
|
|
|
|
|
<div style="height: 65vh;"> |
|
|
|
|
|
<el-table ref="tableRef" :data="tableData" style="height: 65vh" @sort-change="handleSortChange" |
|
|
|
|
|
:row-style="{ height: '50px' }"> |
|
|
<el-table-column type="index" :label="$t('common_list.id')" width="80px" fixed="left"> |
|
|
<el-table-column type="index" :label="$t('common_list.id')" width="80px" fixed="left"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<span>{{ |
|
|
<span>{{ |
|
|
|