From ffec6b6df7669066ebcb3d600cd56eb23eaf22b5 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 11 Sep 2017 14:43:12 +0800 Subject: [PATCH] add:upload excel --- README-en.md | 1 + README.md | 1 + src/components/UploadExcel/index.vue | 78 ++++++++++++++++++++++++++++ src/router/index.js | 3 +- src/views/excel/uploadExcel.vue | 29 +++++++++++ 5 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 src/components/UploadExcel/index.vue create mode 100644 src/views/excel/uploadExcel.vue diff --git a/README-en.md b/README-en.md index 6f9ffa0b..39d4c892 100644 --- a/README-en.md +++ b/README-en.md @@ -33,6 +33,7 @@ - 401, 404 error page - Error log - Exporting to Excel +- Upload Excel - Table example - Interactive table example - Drag & drop table example diff --git a/README.md b/README.md index 7e6135e8..34e78b92 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ - 401,404错误页面 - 错误日志 - 导出excel +- 前端可视化excel - table example - 动态table example - 拖拽table example diff --git a/src/components/UploadExcel/index.vue b/src/components/UploadExcel/index.vue new file mode 100644 index 00000000..f02aeae7 --- /dev/null +++ b/src/components/UploadExcel/index.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index d4d504be..c235005a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -150,7 +150,8 @@ export const asyncRouterMap = [ icon: 'EXCEL', children: [ { path: 'download', component: _import('excel/index'), name: '导出excel' }, - { path: 'download2', component: _import('excel/selectExcel'), name: '导出已选择项' } + { path: 'download2', component: _import('excel/selectExcel'), name: '导出已选择项' }, + { path: 'upload', component: _import('excel/uploadExcel'), name: 'upload excel' } ] }, { diff --git a/src/views/excel/uploadExcel.vue b/src/views/excel/uploadExcel.vue new file mode 100644 index 00000000..731ea265 --- /dev/null +++ b/src/views/excel/uploadExcel.vue @@ -0,0 +1,29 @@ + + +