feat: 调整不同身份的政策可见项
This commit is contained in:
parent
cc455d5b76
commit
fc67ec4318
@ -505,7 +505,7 @@ const goToPersonalSalary = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goToPlatformPolicy = () => {
|
const goToPlatformPolicy = () => {
|
||||||
router.push('/platform-salary')
|
router.push('/platform-salary?from=agencycenter')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取团队成员数量
|
// 获取团队成员数量
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
<div class="salary-header">
|
<div class="salary-header">
|
||||||
<div class="salary-title">{{ t('my_salary') }}</div>
|
<div class="salary-title">{{ t('my_salary') }}</div>
|
||||||
<button class="salary-link" @click="showDatePicker">
|
<button class="salary-link" @click="showDatePicker">
|
||||||
{{ t('personal_salary') }}
|
{{ t('personal_salary') }} >
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
<div class="task-header">
|
<div class="task-header">
|
||||||
<div class="task-title">{{ t('todays_task') }}</div>
|
<div class="task-title">{{ t('todays_task') }}</div>
|
||||||
<button class="policy-link" @click="goToPlatformPolicy">
|
<button class="policy-link" @click="goToPlatformPolicy">
|
||||||
{{ t('platform_policy') }}
|
{{ t('platform_policy') }} >
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="task-content">
|
<div class="task-content">
|
||||||
@ -226,7 +226,7 @@ const showDatePicker = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const goToPlatformPolicy = () => {
|
const goToPlatformPolicy = () => {
|
||||||
router.push('/platform-salary')
|
router.push('/platform-salary?from=hostcenter')
|
||||||
}
|
}
|
||||||
|
|
||||||
const goToNotification = () => {
|
const goToNotification = () => {
|
||||||
|
|||||||
@ -63,6 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 第二行 -->
|
<!-- 第二行 -->
|
||||||
<div
|
<div
|
||||||
|
v-if="fromPage"
|
||||||
style="
|
style="
|
||||||
width: max-content;
|
width: max-content;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -98,8 +99,12 @@ import GeneralHeader from '@/components/GeneralHeader.vue'
|
|||||||
import { get } from '../utils/http.js'
|
import { get } from '../utils/http.js'
|
||||||
import { getTeamId } from '@/utils/userStore.js'
|
import { getTeamId } from '@/utils/userStore.js'
|
||||||
import { setDocumentDirection } from '@/locales/i18n'
|
import { setDocumentDirection } from '@/locales/i18n'
|
||||||
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
const { t, locale } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
const route = useRoute()
|
||||||
|
|
||||||
|
const fromPage = ref(route.query.from == 'agencycenter')
|
||||||
|
|
||||||
// 监听语言变化并设置文档方向
|
// 监听语言变化并设置文档方向
|
||||||
locale.value && setDocumentDirection(locale.value)
|
locale.value && setDocumentDirection(locale.value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user