主页跳转
This commit is contained in:
parent
6558fd68c9
commit
64d3c54e91
@ -137,14 +137,13 @@
|
||||
v-for="(item, index) in iconList"
|
||||
:key="index"
|
||||
>
|
||||
<a-card size="small" :bordered="false" hoverable>
|
||||
<a-card size="small" :bordered="false" hoverable v-on="item.eventObject || {}">
|
||||
<a-skeleton v-if="loading" :paragraph="{ rows: 1, width: '100%' }" />
|
||||
<div class="cursor-pointer py-2" v-else>
|
||||
<p class="flex justify-center">
|
||||
<component
|
||||
:is="item.icon"
|
||||
:style="{ color: item.color, fontSize: `${item.size}px` }"
|
||||
v-on="item.eventObject || {}"
|
||||
/>
|
||||
</p>
|
||||
<p class="flex justify-center mb-0"
|
||||
@ -219,6 +218,7 @@
|
||||
import AreaRanking from './components/AreaRanking.vue';
|
||||
import { getConsoleInfo } from '@/api/dashboard/console';
|
||||
import { CountTo } from '@/components/CountTo/index';
|
||||
import { useRouter } from 'vue-router';
|
||||
import {
|
||||
UsergroupAddOutlined,
|
||||
BarChartOutlined,
|
||||
@ -233,6 +233,7 @@
|
||||
/**
|
||||
* 定义参数
|
||||
*/
|
||||
const router = useRouter();
|
||||
const loading = ref(true);
|
||||
const visits = ref<any>({});
|
||||
const saleroom = ref<any>({});
|
||||
@ -247,7 +248,9 @@
|
||||
title: '用户管理',
|
||||
color: '#69c0ff',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/system/user' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -256,7 +259,9 @@
|
||||
title: '租户管理',
|
||||
color: '#69c0ff',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/system/tenant' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -265,7 +270,9 @@
|
||||
title: '操作日志',
|
||||
color: '#ff9c6e',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/system/logger/operLog' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -274,7 +281,9 @@
|
||||
title: '参数管理',
|
||||
color: '#b37feb',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/data/param' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -283,7 +292,9 @@
|
||||
title: '字典管理',
|
||||
color: '#ffd666',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/data/dict' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -292,7 +303,9 @@
|
||||
title: '消息管理',
|
||||
color: '#5cdbd3',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/data/message' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -301,7 +314,9 @@
|
||||
title: '定时任务',
|
||||
color: '#ff85c0',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/monitor/job' });
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -310,7 +325,9 @@
|
||||
title: '配置管理',
|
||||
color: '#ffc069',
|
||||
eventObject: {
|
||||
click: () => {},
|
||||
click: () => {
|
||||
router.push({ path: '/data/config' });
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user