Skip to content

Commit

Permalink
增加图表界面
Browse files Browse the repository at this point in the history
  • Loading branch information
admin8756 committed Apr 25, 2024
1 parent 6408f25 commit 2788daf
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router';
import error from './modules/error';
import results from './modules/results';
import other from './modules/other';
import charts from './modules/charts';
import { name } from '../../package.json';
// 默认布局
const DefaultLayout = () => import('../layouts/DefaultLayout.vue');
Expand Down Expand Up @@ -37,6 +38,7 @@ const routes = [
},
component: import('../pages/loginPage.vue'),
},
...charts,
...results,
...other,
...error,
Expand Down
58 changes: 58 additions & 0 deletions src/router/modules/charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
const DefaultLayout = () => import('@/layouts/DefaultLayout.vue');
export default [
{
path: '/charts',
component: DefaultLayout,
meta: {
title: '福录大全',
},
children: [
{
path: '/bar',
name: 'ChartBar',
component: () => import('@/pages/charts/ChartBar.vue'),
meta: {
title: '柱状图',
},
},
{
path: '/line',
name: 'ChartLine',
component: () => import('@/pages/charts/ChartLine.vue'),
meta: {
title: '折线图',
},
},
{
path: '/pie',
name: 'ChartPie',
component: () => import('@/pages/charts/ChartPie.vue'),
meta: {
title: '饼图',
},
},
{
path: '/dataset',
name: 'ChartDataset',
component: () => import('@/pages/charts/ChartDataset.vue'),
meta: {
title: '数据集',
},
},{
path:'/radar',
name:'ChartRadar',
component:()=>import('@/pages/charts/ChartRadar.vue'),
meta:{
title:'雷达图'
}
},{
path:'/scatter',
name:'ChartScatter',
component:()=>import('@/pages/charts/ChartScatter.vue'),
meta:{
title:'散点图'
}
}
],
},
];

0 comments on commit 2788daf

Please sign in to comment.