feat(主播中心): 显示调整
This commit is contained in:
parent
6d672f971f
commit
e534029935
@ -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)'
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user