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 @@ + + + 导出excel + + + + + {{scope.$index}} + + + + + {{scope.row.title}} + + + + + + {{scope.row.author}} + + + + + {{scope.row.pageviews}} + + + + + + {{scope.row.display_time}} + + + + + + + \ No newline at end of file