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