feat: 调整不同身份的政策可见项

This commit is contained in:
hzj 2025-11-04 11:37:05 +08:00
parent cc455d5b76
commit fc67ec4318
3 changed files with 9 additions and 4 deletions

View File

@ -505,7 +505,7 @@ const goToPersonalSalary = () => {
}
const goToPlatformPolicy = () => {
router.push('/platform-salary')
router.push('/platform-salary?from=agencycenter')
}
//

View File

@ -44,7 +44,7 @@
<div class="salary-header">
<div class="salary-title">{{ t('my_salary') }}</div>
<button class="salary-link" @click="showDatePicker">
{{ t('personal_salary') }}
{{ t('personal_salary') }} >
</button>
</div>
</div>
@ -67,7 +67,7 @@
<div class="task-header">
<div class="task-title">{{ t('todays_task') }}</div>
<button class="policy-link" @click="goToPlatformPolicy">
{{ t('platform_policy') }}
{{ t('platform_policy') }} >
</button>
</div>
<div class="task-content">
@ -226,7 +226,7 @@ const showDatePicker = () => {
}
const goToPlatformPolicy = () => {
router.push('/platform-salary')
router.push('/platform-salary?from=hostcenter')
}
const goToNotification = () => {

View File

@ -63,6 +63,7 @@
</div>
<!-- 第二行 -->
<div
v-if="fromPage"
style="
width: max-content;
display: flex;
@ -98,8 +99,12 @@ import GeneralHeader from '@/components/GeneralHeader.vue'
import { get } from '../utils/http.js'
import { getTeamId } from '@/utils/userStore.js'
import { setDocumentDirection } from '@/locales/i18n'
import { useRoute } from 'vue-router'
const { t, locale } = useI18n()
const route = useRoute()
const fromPage = ref(route.query.from == 'agencycenter')
//
locale.value && setDocumentDirection(locale.value)