diff --git a/src/components/HostCenter/workReportBox.vue b/src/components/HostCenter/workReportBox.vue index 7f0a350..756fc61 100644 --- a/src/components/HostCenter/workReportBox.vue +++ b/src/components/HostCenter/workReportBox.vue @@ -96,6 +96,8 @@ watch( // 更新展示类型 const updateTypeShowText = () => { + console.log('更新展示类型') + if (props.type == 'In Progress') { typeShowText.value = t('in_progress') } else if (props.type == 'Pending') { @@ -111,23 +113,23 @@ watch( () => props.type, (newType) => { console.log('newType:', newType) - - if (newType == 'In Progress') { + updateTypeShowText() + if (newType == 'In Progress' || newType == t('in_progress')) { backgroundImage.value = 'linear-gradient(112deg, #759CFF 5.66%, #3D73FF 42.49%)' fontSize.value = '0.9em' typeShowText.value = t('in_progress') } - if (newType == 'Pending') { + if (newType == 'Pending' || newType == t('pending')) { backgroundImage.value = 'linear-gradient(112deg, #FF7578 5.66%, #FF3D40 42.49%)' fontSize.value = '1em' typeShowText.value = t('pending') } - if (newType == 'Completed') { + if (newType == 'Completed' || newType == t('completed')) { backgroundImage.value = 'linear-gradient(112deg, #75FF98 5.66%, #3DFF54 42.49%)' fontSize.value = '1em' typeShowText.value = t('completed') } - if (newType == 'Out of account') { + if (newType == 'Out of account' || newType == t('out_of_account')) { backgroundImage.value = 'linear-gradient(112deg, #BDBDBD 5.66%, #AEAEAE 42.49%)' fontSize.value = '0.7em' typeShowText.value = t('out_of_account') diff --git a/src/locales/ar.json b/src/locales/ar.json index 43be142..0cf99b9 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -20,6 +20,7 @@ "not_authorized": "غير مُصرح به للانضمام", "cancellation_failed": "فشلت الإلغاء", "network_error": "خطأ في الشبكة، يرجى التحقق من اتصالك والمحاولة مرة أخرى", + "host": "المضيف", "host_center": "مركز المضيف", "my_account": "حسابي", "my_salary": "راتبي", @@ -180,5 +181,7 @@ "information_details": "تفاصيل المعلومات", "no_transaction_records": "لا توجد سجلات معاملات", "retry": "إعادة المحاولة", - "failed_to_load_data": "فشل تحميل البيانات" + "failed_to_load_data": "فشل تحميل البيانات", + + "no_data_available": "لا توجد بيانات متاحة" } diff --git a/src/locales/en.json b/src/locales/en.json index aa69664..7538abd 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -20,6 +20,7 @@ "not_authorized": "Not authorized to join", "cancellation_failed": "Cancellation failed", "network_error": "Network error,please check yourconnection and try again", + "host": "Host", "host_center": "Host Center", "my_account": "My account", "my_salary": "My salary:", @@ -180,5 +181,7 @@ "information_details": "Information details", "no_transaction_records": "No transaction records", "retry": "Retry", - "failed_to_load_data": "Failed to load data" + "failed_to_load_data": "Failed to load data", + + "no_data_available": "No data available" } diff --git a/src/locales/zh.json b/src/locales/zh.json index 2067fae..8e14035 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -20,6 +20,7 @@ "not_authorized": "无权加入", "cancellation_failed": "取消失败", "network_error": "网络错误,请检查您的连接并重试。", + "host": "主播", "host_center": "主播中心", "my_account": "我的账户", "my_salary": "我的工资", @@ -180,5 +181,7 @@ "information_details": "信息详情", "no_transaction_records": "无交易记录", "retry": "重试", - "failed_to_load_data": "加载数据失败" + "failed_to_load_data": "加载数据失败", + + "no_data_available": "暂无数据" } diff --git a/src/views/AgencyCenterView.vue b/src/views/AgencyCenterView.vue index 5556cd9..6853eeb 100644 --- a/src/views/AgencyCenterView.vue +++ b/src/views/AgencyCenterView.vue @@ -413,10 +413,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 } diff --git a/src/views/TeamBillView.vue b/src/views/TeamBillView.vue index 524381c..d0248dd 100644 --- a/src/views/TeamBillView.vue +++ b/src/views/TeamBillView.vue @@ -1,6 +1,13 @@