|
|
@ -1,5 +1,5 @@ |
|
|
<script setup> |
|
|
<script setup> |
|
|
import {computed, onMounted, ref, watch} from 'vue' |
|
|
|
|
|
|
|
|
import {computed, onMounted, ref, watch, nextTick} from 'vue' |
|
|
import {dayjs, ElMessage} from 'element-plus' |
|
|
import {dayjs, ElMessage} from 'element-plus' |
|
|
import request from '@/util/http.js' |
|
|
import request from '@/util/http.js' |
|
|
import API from '@/util/http.js' |
|
|
import API from '@/util/http.js' |
|
|
@ -44,6 +44,10 @@ const formatTime = (val) => val ? dayjs(val).format('YYYY-MM-DD HH:mm:ss') : '' |
|
|
const adminData = ref({}) |
|
|
const adminData = ref({}) |
|
|
// 充值明细表格 |
|
|
// 充值明细表格 |
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
|
|
|
const tableRef = ref(null) |
|
|
|
|
|
const scrollTableTop = () => { |
|
|
|
|
|
tableRef.value?.setScrollTop?.(0) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 搜索beanConsumeLive 表单 |
|
|
// 搜索beanConsumeLive 表单 |
|
|
const beanConsumeLive = ref({ |
|
|
const beanConsumeLive = ref({ |
|
|
@ -251,6 +255,8 @@ const selectLiveBy = async function (val) { |
|
|
console.log('接口响应结果', result); // 打印接口响应结果 |
|
|
console.log('接口响应结果', result); // 打印接口响应结果 |
|
|
if (result.code === 200 && result.data && result.data.list) { |
|
|
if (result.code === 200 && result.data && result.data.list) { |
|
|
tableData.value = result.data.list; |
|
|
tableData.value = result.data.list; |
|
|
|
|
|
await nextTick() |
|
|
|
|
|
scrollTableTop() |
|
|
total.value = result.data.total; |
|
|
total.value = result.data.total; |
|
|
} |
|
|
} |
|
|
// 复制一份 beanConsumeLive.value 并设置固定的 payType 值 1是直播 |
|
|
// 复制一份 beanConsumeLive.value 并设置固定的 payType 值 1是直播 |
|
|
@ -588,7 +594,7 @@ const getTagText = (state) => { |
|
|
{{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }} |
|
|
{{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }} |
|
|
</div> |
|
|
</div> |
|
|
<div style="overflow-y: auto"> |
|
|
<div style="overflow-y: auto"> |
|
|
<el-table :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange" |
|
|
|
|
|
|
|
|
<el-table ref="tableRef" :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange" |
|
|
:row-style="{ height: '50px' }"> |
|
|
: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"> |
|
|
|