Browse Source

新增历史钱包

jiangcheng/feature-20260326164657-金币日常优化3.0
ZhangYong 3 weeks ago
parent
commit
89376e9ccb
  1. 1
      src/components/locales/lang/zh-CN.js
  2. 9
      src/views/usergold/gold/clientCountWallet.vue

1
src/components/locales/lang/zh-CN.js

@ -947,6 +947,7 @@ export default {
exceptionData: "异常数据",
time: "时间",
market: {
historyGold: "历史钱包",
hkGold: "香港",
sgHcGold: "新加坡HC",
sgCmGold: "新加坡CM",

9
src/views/usergold/gold/clientCountWallet.vue

@ -33,6 +33,7 @@ const markets = ref([])
// tableData
const tableData = ref([]);
const walletMap = {
1: 'historyGold',
2: 'hkGold',
3: 'sgHcGold',
4: 'myGold',
@ -44,6 +45,7 @@ const walletMap = {
10: 'bjGold'
};
const propToWalletId = {
historyGold: 1,
hkGold: 2,
sgHcGold: 3,
myGold: 4,
@ -132,6 +134,7 @@ const get = async function (val) {
if (result.code === 200) {
tableData.value = result.data.list.map(item => {
const row = {
historyGold: 0,
name: item.userName,
jwcode: item.jwcode,
market: item.marketName,
@ -194,6 +197,7 @@ const cellClick = function (row, column) {
console.log('cellClick', column)
const walletId = propToWalletId[column.property];
const propToMarketName = {
historyGold: t('clientCount.market.historyGold'),
hkGold: t('clientCount.market.hkGold'),
sgHcGold: t('clientCount.market.sgHcGold'),
myGold: t('clientCount.market.myGold'),
@ -636,6 +640,11 @@ const format3 = (num) => {
<el-table-column prop="name" :label="$t('common_list.name')" width="140" />
<el-table-column prop="jwcode" :label="$t('common_list.jwcode')" width="140" />
<el-table-column prop="market" :label="$t('common_list.market')" width="140" />
<el-table-column prop="historyGold" :label="$t('clientCount.market.historyGold')" sortable="custom" min-width="140">
<template #default="scope">
<span>{{ (scope.row.historyGold || 0) }}</span>
</template>
</el-table-column>
<el-table-column prop="hkGold" :label="$t('clientCount.market.hkGold')" sortable="custom" min-width="140">
<template #default="scope">
<span>{{ (scope.row.hkGold || 0) }}</span>

Loading…
Cancel
Save