优化
This commit is contained in:
parent
a38c1e9da0
commit
3451ee849b
@ -44,7 +44,7 @@
|
||||
<!-- 左侧:用户信息 -->
|
||||
<div class="user-info">
|
||||
<div class="user-name">{{ member.memberProfile?.userNickname || 'Unknown User' }}</div>
|
||||
<div class="user-id">ID: {{ member.memberProfile?.id || 'N/A' }}</div>
|
||||
<div class="user-id">ID: {{ member.memberProfile?.account || 'N/A' }}</div>
|
||||
<div class="user-target">
|
||||
<span class="target-badge">Target: A</span>
|
||||
</div>
|
||||
@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div class="time-info">
|
||||
<span class="time-label">Time (Days):</span>
|
||||
<span class="time-value">{{ calculateEffectiveDays(member.target?.onlineTime) }}</span>
|
||||
<span class="time-value">{{ member.target.onlineTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -149,14 +149,14 @@
|
||||
<h3>Work Report Help</h3>
|
||||
<button class="close-btn" @click="closeHelpModal">×</button>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="help-modal-body">
|
||||
<div class="help-section">
|
||||
<p class="help-description">
|
||||
Shown below is the work report of the members "More" can view more work detailed.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="help-section">
|
||||
<h4>Status Description:</h4>
|
||||
<div class="status-list">
|
||||
@ -219,9 +219,10 @@ import { ref, onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import MobileHeader from '../components/MobileHeader.vue'
|
||||
import { getTeamMemberWork } from '../api/teamBill.js'
|
||||
import {getUserId} from "@/utils/userStore.js";
|
||||
|
||||
const router = useRouter()
|
||||
const totalSalary = ref('12345')
|
||||
const totalSalary = ref('0.00')
|
||||
const showSalaryModal = ref(false)
|
||||
const showHelpModal = ref(false)
|
||||
const loading = ref(false)
|
||||
@ -385,16 +386,9 @@ const closeHelpModal = () => {
|
||||
showHelpModal.value = false
|
||||
}
|
||||
|
||||
// 显示薪资信息
|
||||
const showSalaryInfo = () => {
|
||||
showSalaryModal.value = true
|
||||
}
|
||||
|
||||
// 组件挂载时获取数据
|
||||
onMounted(() => {
|
||||
// 从路由参数或者默认值获取用户ID
|
||||
const userId = router.currentRoute.value.query.userId || '1911661502909562881'
|
||||
fetchWorkReports(userId)
|
||||
fetchWorkReports(getUserId())
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user