2020-10-19 21:18:13 +08:00
|
|
|
import type { AppRouteModule } from '/@/router/types';
|
|
|
|
|
|
2020-12-03 21:49:32 +08:00
|
|
|
import { LAYOUT } from '/@/router/constant';
|
2020-10-19 21:18:13 +08:00
|
|
|
|
2020-11-12 23:15:11 +08:00
|
|
|
const excel: AppRouteModule = {
|
2020-12-03 21:49:32 +08:00
|
|
|
path: '/excel',
|
|
|
|
|
name: 'Excel',
|
|
|
|
|
component: LAYOUT,
|
|
|
|
|
redirect: '/excel/customExport',
|
|
|
|
|
meta: {
|
|
|
|
|
icon: 'mdi:microsoft-excel',
|
|
|
|
|
title: 'routes.demo.excel.excel',
|
2020-10-19 21:18:13 +08:00
|
|
|
},
|
|
|
|
|
|
2020-12-03 21:49:32 +08:00
|
|
|
children: [
|
2020-10-19 21:18:13 +08:00
|
|
|
{
|
2020-12-03 21:49:32 +08:00
|
|
|
path: 'customExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
name: 'CustomExport',
|
2020-10-20 21:24:27 +08:00
|
|
|
component: () => import('/@/views/demo/excel/CustomExport.vue'),
|
2020-10-19 21:18:13 +08:00
|
|
|
meta: {
|
2020-11-26 21:10:21 +08:00
|
|
|
title: 'routes.demo.excel.customExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-03 21:49:32 +08:00
|
|
|
path: 'jsonExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
name: 'JsonExport',
|
2020-10-20 21:24:27 +08:00
|
|
|
component: () => import('/@/views/demo/excel/JsonExport.vue'),
|
2020-10-19 21:18:13 +08:00
|
|
|
meta: {
|
2020-11-26 21:10:21 +08:00
|
|
|
title: 'routes.demo.excel.jsonExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-03 21:49:32 +08:00
|
|
|
path: 'arrayExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
name: 'ArrayExport',
|
2020-10-20 21:24:27 +08:00
|
|
|
component: () => import('/@/views/demo/excel/ArrayExport.vue'),
|
2020-10-19 21:18:13 +08:00
|
|
|
meta: {
|
2020-11-26 21:10:21 +08:00
|
|
|
title: 'routes.demo.excel.arrayExport',
|
2020-10-19 21:18:13 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-12-03 21:49:32 +08:00
|
|
|
path: 'importExcel',
|
2020-10-19 21:18:13 +08:00
|
|
|
name: 'ImportExcel',
|
2020-10-20 21:24:27 +08:00
|
|
|
component: () => import('/@/views/demo/excel/ImportExcel.vue'),
|
2020-10-19 21:18:13 +08:00
|
|
|
meta: {
|
2020-11-26 21:10:21 +08:00
|
|
|
title: 'routes.demo.excel.importExcel',
|
2020-10-19 21:18:13 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-11-12 23:15:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default excel;
|