From e534029935b6ed72c8d7079b7b4dc7b6d21e4b82 Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Thu, 30 Oct 2025 16:59:51 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E4=B8=BB=E6=92=AD=E4=B8=AD=E5=BF=83):=20?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/HistorySalaryView.vue | 21 ++++++++++++++++++++-
src/views/HostCenterView.vue | 8 ++++----
2 files changed, 24 insertions(+), 5 deletions(-)
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
}