diff --git a/src/components/locales/lang/zh-CN.js b/src/components/locales/lang/zh-CN.js index 06fda8c..158774e 100644 --- a/src/components/locales/lang/zh-CN.js +++ b/src/components/locales/lang/zh-CN.js @@ -947,6 +947,7 @@ export default { exceptionData: "异常数据", time: "时间", market: { + historyGold: "历史钱包", hkGold: "香港", sgHcGold: "新加坡HC", sgCmGold: "新加坡CM", diff --git a/src/views/usergold/gold/clientCountWallet.vue b/src/views/usergold/gold/clientCountWallet.vue index fc49a9e..ac1741e 100644 --- a/src/views/usergold/gold/clientCountWallet.vue +++ b/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) => { + + +