feat(主播中心): 显示调整

This commit is contained in:
hzj 2025-10-30 16:59:51 +08:00
parent 6d672f971f
commit e534029935
2 changed files with 24 additions and 5 deletions

View File

@ -111,7 +111,7 @@
:style="{ boxShadow }"
>
<div style="font-weight: 500" :style="{ color }">
{{ selectedReport.status }}
{{ typeShowText }}
</div>
</div>
</div>
@ -263,9 +263,28 @@ const dailyTargets = ref([])
const color = ref('')
const boxShadow = ref('')
const typeShowText = ref('')
//
const updateTypeShowText = (status) => {
console.log('更新展示类型')
if (status == 'In Progress') {
typeShowText.value = t('in_progress')
} else if (status == 'Pending') {
typeShowText.value = t('pending')
} else if (status == 'Completed') {
typeShowText.value = t('completed')
} else if (status == 'Out of account') {
typeShowText.value = t('out_of_account')
}
}
watch(
() => selectedReport.value?.status,
(newStatus) => {
console.log('newStatus:', newStatus)
updateTypeShowText(newStatus)
if (newStatus == 'In Progress') {
boxShadow.value = '0 0 1px 0 #6085FF'
color.value = 'rgba(61, 115, 255, 1)'

View File

@ -170,10 +170,10 @@ const fetchMemberWorkData = async () => {
//
const formatStatus = (status) => {
const statusMap = {
SETTLED: t('completed'),
UNPAID: t('in_progress'),
HANG_UP: t('out_of_account'),
PAY_OUT: t('completed'),
SETTLED: 'Completed',
UNPAID: 'In Progress',
HANG_UP: 'Out of account',
PAY_OUT: 'Completed',
}
return statusMap[status] || status
}