feat: 调整不同身份的政策可见项
This commit is contained in:
parent
cc455d5b76
commit
fc67ec4318
@ -505,7 +505,7 @@ const goToPersonalSalary = () => {
|
||||
}
|
||||
|
||||
const goToPlatformPolicy = () => {
|
||||
router.push('/platform-salary')
|
||||
router.push('/platform-salary?from=agencycenter')
|
||||
}
|
||||
|
||||
// 获取团队成员数量
|
||||
|
||||
@ -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 = () => {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user