Browse Source

Merge branch 'refs/heads/lihui/feature-20250711103624-金币二期' into milestone-20250711-金币前端二期

zhangrenyuan/feature-20250714163943-金币前端二期
lihui 2 weeks ago
parent
commit
363c602faf
  1. 4
      src/views/usergold/clientCountBalance.vue
  2. 4
      src/views/usergold/clientCountDetail.vue
  3. 13
      src/views/workspace/index.vue

4
src/views/usergold/clientCountBalance.vue

@ -35,7 +35,9 @@ const getmarket = async () => {
console.log('获取地区数据成功', result) console.log('获取地区数据成功', result)
// { value, label } // { value, label }
if (Array.isArray(result.data) && typeof result.data[0] === 'string') { if (Array.isArray(result.data) && typeof result.data[0] === 'string') {
market.value = result.data.map(item => ({ value: item, label: item }));
market.value = result.data
.filter(item => item !== null && item !== undefined && item.trim() !== '') //
.map(item => ({ value: item, label: item }));
} else { } else {
market.value = result.data; market.value = result.data;
} }

4
src/views/usergold/clientCountDetail.vue

@ -101,7 +101,9 @@ const getArea = async () => {
}); });
// { value, label } // { value, label }
if (Array.isArray(result.data) && typeof result.data[0] === 'string') { if (Array.isArray(result.data) && typeof result.data[0] === 'string') {
market.value = result.data.map(item => ({ value: item, label: item }));
market.value = result.data
.filter(item => item !== null && item !== undefined && item.trim() !== '') //
.map(item => ({ value: item, label: item }));
} else { } else {
market.value = result.data; market.value = result.data;
} }

13
src/views/workspace/index.vue

@ -408,8 +408,12 @@ const processData = (data) => {
dailyRefund.value = yesterdayRefund.toFixed(2) dailyRefund.value = yesterdayRefund.toFixed(2)
yearlyRechargeNum.value = summary.yearlyRechargeNum yearlyRechargeNum.value = summary.yearlyRechargeNum
sumWow.value = (summary.sumWow / length.value).toFixed(2)
sumDaily.value = (summary.sumDaily / length.value).toFixed(2)
// //
// sumWow.value = (marketCards.sumWow / length.value).toFixed(2)
// //
// sumDaily.value = (marketCards.sumDaily / length.value).toFixed(2)
rechargeNum.value = summary.rechargeNum rechargeNum.value = summary.rechargeNum
firstRecharge.value = summary.firstRecharge firstRecharge.value = summary.firstRecharge
} }
@ -712,6 +716,11 @@ const getCardData = async () => {
try { try {
const response = await API({ url: '/workbench/getCard', data: {} }) const response = await API({ url: '/workbench/getCard', data: {} })
workDataUpdateTime.value = response.updateTime workDataUpdateTime.value = response.updateTime
//
sumWow.value = response.sumWow .toFixed(2)
//
sumDaily.value = response.sumDaily.toFixed(2)
if (response && response.data) { if (response && response.data) {
processData(response.data) processData(response.data)
} else if (Array.isArray(response?.marketCards)) { } else if (Array.isArray(response?.marketCards)) {

Loading…
Cancel
Save