feat(主播中心): 显示调整
This commit is contained in:
parent
6d672f971f
commit
e534029935
@ -111,7 +111,7 @@
|
|||||||
:style="{ boxShadow }"
|
:style="{ boxShadow }"
|
||||||
>
|
>
|
||||||
<div style="font-weight: 500" :style="{ color }">
|
<div style="font-weight: 500" :style="{ color }">
|
||||||
{{ selectedReport.status }}
|
{{ typeShowText }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -263,9 +263,28 @@ const dailyTargets = ref([])
|
|||||||
const color = ref('')
|
const color = ref('')
|
||||||
const boxShadow = 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(
|
watch(
|
||||||
() => selectedReport.value?.status,
|
() => selectedReport.value?.status,
|
||||||
(newStatus) => {
|
(newStatus) => {
|
||||||
|
console.log('newStatus:', newStatus)
|
||||||
|
updateTypeShowText(newStatus)
|
||||||
if (newStatus == 'In Progress') {
|
if (newStatus == 'In Progress') {
|
||||||
boxShadow.value = '0 0 1px 0 #6085FF'
|
boxShadow.value = '0 0 1px 0 #6085FF'
|
||||||
color.value = 'rgba(61, 115, 255, 1)'
|
color.value = 'rgba(61, 115, 255, 1)'
|
||||||
|
|||||||
@ -170,10 +170,10 @@ const fetchMemberWorkData = async () => {
|
|||||||
// 格式化状态
|
// 格式化状态
|
||||||
const formatStatus = (status) => {
|
const formatStatus = (status) => {
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
SETTLED: t('completed'),
|
SETTLED: 'Completed',
|
||||||
UNPAID: t('in_progress'),
|
UNPAID: 'In Progress',
|
||||||
HANG_UP: t('out_of_account'),
|
HANG_UP: 'Out of account',
|
||||||
PAY_OUT: t('completed'),
|
PAY_OUT: 'Completed',
|
||||||
}
|
}
|
||||||
return statusMap[status] || status
|
return statusMap[status] || status
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user