diff --git a/src/views/HistorySalaryView.vue b/src/views/HistorySalaryView.vue
index e6b66cd..bbba20a 100644
--- a/src/views/HistorySalaryView.vue
+++ b/src/views/HistorySalaryView.vue
@@ -111,7 +111,7 @@
:style="{ boxShadow }"
>
- {{ selectedReport.status }}
+ {{ typeShowText }}
@@ -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)'
diff --git a/src/views/HostCenterView.vue b/src/views/HostCenterView.vue
index af477c3..0c4536c 100644
--- a/src/views/HostCenterView.vue
+++ b/src/views/HostCenterView.vue
@@ -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
}