From a185412446a5bef99151101590a20f5e763a4063 Mon Sep 17 00:00:00 2001 From: spiritree Date: Tue, 26 Sep 2017 13:40:07 +0800 Subject: [PATCH] add Export2Zip demo --- src/icons/svg/zip.svg | 1 + src/router/index.js | 11 +++++ src/views/zip/index.vue | 74 +++++++++++++++++++++++++++++++++ src/views/zip/select.vue | 88 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 174 insertions(+) create mode 100644 src/icons/svg/zip.svg create mode 100644 src/views/zip/index.vue create mode 100644 src/views/zip/select.vue diff --git a/src/icons/svg/zip.svg b/src/icons/svg/zip.svg new file mode 100644 index 00000000..e9a9d012 --- /dev/null +++ b/src/icons/svg/zip.svg @@ -0,0 +1 @@ + diff --git a/src/router/index.js b/src/router/index.js index a705a736..b50c7426 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -154,6 +154,17 @@ export const asyncRouterMap = [ { path: 'upload', component: _import('excel/uploadExcel'), name: 'upload excel' } ] }, + { + path: '/zip', + component: Layout, + redirect: '/zip/download', + name: 'zip', + icon: 'zip', + children: [ + { path: 'download', component: _import('zip/index'), name: '导出zip' }, + { path: 'download2', component: _import('zip/select'), name: '导出已选择项' } + ] + }, { path: '/theme', component: Layout, diff --git a/src/views/zip/index.vue b/src/views/zip/index.vue new file mode 100644 index 00000000..fa32a983 --- /dev/null +++ b/src/views/zip/index.vue @@ -0,0 +1,74 @@ + + + diff --git a/src/views/zip/select.vue b/src/views/zip/select.vue new file mode 100644 index 00000000..fc4ac7fb --- /dev/null +++ b/src/views/zip/select.vue @@ -0,0 +1,88 @@ + + +