7 changed files with 86 additions and 68 deletions
@ -0,0 +1,29 @@ |
|||||
|
import type { MenuModule } from '/@/router/types.d'; |
||||
|
const menu: MenuModule = { |
||||
|
orderNo: 500, |
||||
|
menu: { |
||||
|
name: 'Excel', |
||||
|
path: '/excel', |
||||
|
children: [ |
||||
|
{ |
||||
|
path: '/customExport', |
||||
|
name: '选择导出格式', |
||||
|
}, |
||||
|
{ |
||||
|
path: '/jsonExport', |
||||
|
name: 'JSON数据导出', |
||||
|
}, |
||||
|
{ |
||||
|
path: '/arrayExport', |
||||
|
name: 'Array数据导出', |
||||
|
}, |
||||
|
{ |
||||
|
path: '/importExcel', |
||||
|
name: '导入', |
||||
|
}, |
||||
|
// ],
|
||||
|
// },
|
||||
|
], |
||||
|
}, |
||||
|
}; |
||||
|
export default menu; |
||||
@ -0,0 +1,53 @@ |
|||||
|
import type { AppRouteModule } from '/@/router/types'; |
||||
|
|
||||
|
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant'; |
||||
|
|
||||
|
export default { |
||||
|
layout: { |
||||
|
path: '/excel', |
||||
|
name: 'Excel', |
||||
|
component: PAGE_LAYOUT_COMPONENT, |
||||
|
redirect: '/excel/customExport', |
||||
|
meta: { |
||||
|
icon: 'ant-design:area-chart-outlined', |
||||
|
title: 'Excel', |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
routes: [ |
||||
|
{ |
||||
|
path: '/customExport', |
||||
|
name: 'CustomExport', |
||||
|
component: () => import('/@/views/demo/echarts/excel/CustomExport.vue'), |
||||
|
meta: { |
||||
|
title: '选择导出格式', |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
path: '/jsonExport', |
||||
|
name: 'JsonExport', |
||||
|
component: () => import('/@/views/demo/echarts/excel/JsonExport.vue'), |
||||
|
meta: { |
||||
|
title: 'JSON数据导出', |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
path: '/arrayExport', |
||||
|
name: 'ArrayExport', |
||||
|
component: () => import('/@/views/demo/echarts/excel/ArrayExport.vue'), |
||||
|
meta: { |
||||
|
title: 'Array数据导出', |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
path: '/importExcel', |
||||
|
name: 'ImportExcel', |
||||
|
component: () => import('/@/views/demo/echarts/excel/ImportExcel.vue'), |
||||
|
meta: { |
||||
|
title: '导入', |
||||
|
}, |
||||
|
}, |
||||
|
// ],
|
||||
|
// },
|
||||
|
], |
||||
|
} as AppRouteModule; |
||||
@ -1,4 +1,4 @@ |
|||||
// github repo url
|
// github repo url
|
||||
export const GITHUB_URL = 'https://github.com/anncwb/vue-vben-admin'; |
export const GITHUB_URL = 'https://github.com/anncwb/vue-vben-admin'; |
||||
// vue-vben-admin-next-doc
|
// vue-vben-admin-next-doc
|
||||
export const DOC_URL = ''; |
export const DOC_URL = 'https://vvbin.cn/doc-next/'; |
||||
|
|||||
Loading…
Reference in new issue