diff --git a/src/views/Jyh/PersonalCenter/index.vue b/src/views/Jyh/PersonalCenter/index.vue index 09fe292..19124e8 100644 --- a/src/views/Jyh/PersonalCenter/index.vue +++ b/src/views/Jyh/PersonalCenter/index.vue @@ -21,12 +21,16 @@ - + + 前往治理中心 + + + - +
@@ -44,7 +48,7 @@ import EarlyWarning from './Detail/EarlyWarning.vue'; import SubscribeList from './Detail/SubscribeList.vue'; import PersonalSettings from './Detail/PersonalSettings.vue'; import { useAccount } from '@/utils/hooks/useAccount'; - +import { Message } from 'vue-devui/message'; const { namespace } = getOrgInfo(); const avatarUrl = '/src/assets/imgs/avatar/male.png'; @@ -63,6 +67,15 @@ const openDelete = (row: any) => { const router = useRouter(); +// 前往治理中心按钮点击事件 +const goToGovernCenter = () => { + Message.warning('请联系平台管理员,开通账号权限'); + // 可以在此添加跳转逻辑,当前无权限时不实际跳转 + // if (hasPermission) { + // router.push('/govern-center'); + // } +}; + // 分页 const changeIndex = () => { // getGroupClaListData(); @@ -284,4 +297,18 @@ const signCla = (row: any) => { width: 100%; margin-top: 12px; } + +.goToGovernCenter { + position: absolute; + right: 0; + bottom: 0; + padding: 8px 16px; + color: #0A59F7; + font-family: HarmonyOS Sans SC; + font-weight: medium; + font-size: 14px; + line-height: 22px; + letter-spacing: 0px; + text-align: left; +}