feat: 完善仪表盘快捷操作区块内容
This commit is contained in:
parent
13d2afff37
commit
0178fbb89a
@ -5,17 +5,16 @@
|
|||||||
:header-style="{ paddingBottom: '0' }"
|
:header-style="{ paddingBottom: '0' }"
|
||||||
:body-style="{ padding: '24px 20px 0 20px' }"
|
:body-style="{ padding: '24px 20px 0 20px' }"
|
||||||
>
|
>
|
||||||
<template #extra>
|
|
||||||
<a-link>{{ $t('workplace.quickOperation.setup') }}</a-link>
|
|
||||||
</template>
|
|
||||||
<a-row :gutter="8">
|
<a-row :gutter="8">
|
||||||
<a-col v-for="link in links" :key="link.text" :span="8" class="wrapper">
|
<a-col v-for="link in links" :key="link.text" :span="8" class="wrapper">
|
||||||
<div class="icon">
|
<div @click="router.replace({ path: link.path })">
|
||||||
<component :is="link.icon" />
|
<div class="icon">
|
||||||
|
<svg-icon :icon-class="link.icon" />
|
||||||
|
</div>
|
||||||
|
<a-typography-paragraph class="text">
|
||||||
|
{{ link.text }}
|
||||||
|
</a-typography-paragraph>
|
||||||
</div>
|
</div>
|
||||||
<a-typography-paragraph class="text">
|
|
||||||
{{ $t(link.text) }}
|
|
||||||
</a-typography-paragraph>
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider class="split-line" style="margin: 0" />
|
<a-divider class="split-line" style="margin: 0" />
|
||||||
@ -23,12 +22,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
const links = [
|
const links = [
|
||||||
{ text: 'workplace.contentManagement', icon: 'icon-file' },
|
{ text: '用户管理', icon: 'user', path: '/system/user' },
|
||||||
{ text: 'workplace.contentStatistical', icon: 'icon-storage' },
|
{ text: '角色管理', icon: 'safe', path: '/system/role' },
|
||||||
{ text: 'workplace.advanced', icon: 'icon-settings' },
|
{ text: '部门管理', icon: 'user-group', path: '/system/dept' },
|
||||||
{ text: 'workplace.onlinePromotion', icon: 'icon-mobile' },
|
{ text: '代码生成', icon: 'code', path: '/tool/generator' },
|
||||||
{ text: 'workplace.contentPutIn', icon: 'icon-fire' },
|
{ text: '在线用户', icon: 'anonymity', path: '/monitor/online' },
|
||||||
|
{ text: '操作日志', icon: 'history', path: '/monitor/log/operation' },
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -8,12 +8,14 @@
|
|||||||
<div style="margin-bottom: -1rem">
|
<div style="margin-bottom: -1rem">
|
||||||
<a-row :gutter="8">
|
<a-row :gutter="8">
|
||||||
<a-col v-for="link in links" :key="link.text" :span="8" class="wrapper">
|
<a-col v-for="link in links" :key="link.text" :span="8" class="wrapper">
|
||||||
<div class="icon">
|
<div @click="router.replace({ path: link.path })">
|
||||||
<component :is="link.icon" />
|
<div class="icon">
|
||||||
|
<svg-icon :icon-class="link.icon" />
|
||||||
|
</div>
|
||||||
|
<a-typography-paragraph class="text">
|
||||||
|
{{ link.text }}
|
||||||
|
</a-typography-paragraph>
|
||||||
</div>
|
</div>
|
||||||
<a-typography-paragraph class="text">
|
|
||||||
{{ $t(link.text) }}
|
|
||||||
</a-typography-paragraph>
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
@ -21,19 +23,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
const links = [
|
const links = [
|
||||||
{
|
{ text: '在线用户', icon: 'anonymity', path: '/monitor/online' },
|
||||||
text: 'workplace.contentManagement',
|
{ text: '代码生成', icon: 'code', path: '/tool/generator' },
|
||||||
icon: 'icon-storage',
|
{ text: '角色管理', icon: 'safe', path: '/system/role' },
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'workplace.contentStatistical',
|
|
||||||
icon: 'icon-file',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'workplace.advanced',
|
|
||||||
icon: 'icon-settings',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -14,12 +14,6 @@ export default {
|
|||||||
'workplace.docs.userGuide': 'User Guide',
|
'workplace.docs.userGuide': 'User Guide',
|
||||||
'workplace.docs.faq': 'FAQ',
|
'workplace.docs.faq': 'FAQ',
|
||||||
'workplace.docs.changelog': 'Change Log',
|
'workplace.docs.changelog': 'Change Log',
|
||||||
//
|
|
||||||
'workplace.contentManagement': 'Content Management',
|
|
||||||
'workplace.contentStatistical': 'Content Statistical',
|
|
||||||
'workplace.advanced': 'Advanced',
|
|
||||||
'workplace.onlinePromotion': 'Online Promotion',
|
|
||||||
'workplace.contentPutIn': 'Put In',
|
|
||||||
'workplace.announcement': 'Announcement',
|
'workplace.announcement': 'Announcement',
|
||||||
'workplace.recently.visited': 'Recently Visited',
|
'workplace.recently.visited': 'Recently Visited',
|
||||||
'workplace.record.nodata': 'No data',
|
'workplace.record.nodata': 'No data',
|
||||||
|
@ -14,11 +14,6 @@ export default {
|
|||||||
'workplace.docs.userGuide': '使用指南',
|
'workplace.docs.userGuide': '使用指南',
|
||||||
'workplace.docs.faq': '常见问题',
|
'workplace.docs.faq': '常见问题',
|
||||||
'workplace.docs.changelog': '更新日志',
|
'workplace.docs.changelog': '更新日志',
|
||||||
'workplace.contentManagement': '内容管理',
|
|
||||||
'workplace.contentStatistical': '内容分析',
|
|
||||||
'workplace.advanced': '高级管理',
|
|
||||||
'workplace.onlinePromotion': '线上推广',
|
|
||||||
'workplace.contentPutIn': '内容投放',
|
|
||||||
'workplace.announcement': '公告',
|
'workplace.announcement': '公告',
|
||||||
'workplace.recently.visited': '最近访问',
|
'workplace.recently.visited': '最近访问',
|
||||||
'workplace.record.nodata': '暂无数据',
|
'workplace.record.nodata': '暂无数据',
|
||||||
|
Loading…
Reference in New Issue
Block a user