From 3488930e4d97b8d6f89b6006c5721fb67201329b Mon Sep 17 00:00:00 2001 From: spiritree Date: Tue, 25 Jul 2017 16:51:43 +0800 Subject: [PATCH] add new export-excel function --- src/router/index.js | 7 +++- src/views/excel/excel2.vue | 81 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 src/views/excel/excel2.vue diff --git a/src/router/index.js b/src/router/index.js index 0d476f2f..83d23584 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -46,6 +46,7 @@ const ErrorLog = _import('errlog/index'); /* excel */ const ExcelDownload = _import('excel/index'); +const SelectExcelDownload = _import('excel/excel2'); /* theme */ const Theme = _import('theme/index'); @@ -174,8 +175,10 @@ export const asyncRouterMap = [ redirect: 'noredirect', name: 'excel', icon: 'EXCEL', - noDropdown: true, - children: [{ path: 'download', component: ExcelDownload, name: '导出excel' }] + children: [ + { path: 'download', component: ExcelDownload, name: '导出excel' }, + { path: 'download2', component: SelectExcelDownload, name: '选择导出excel' } + ] }, { path: '/theme', diff --git a/src/views/excel/excel2.vue b/src/views/excel/excel2.vue new file mode 100644 index 00000000..3ae51152 --- /dev/null +++ b/src/views/excel/excel2.vue @@ -0,0 +1,81 @@ + + + \ No newline at end of file