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