From aa45ca624cf1d57ff3fcc3dd217711e745007cf8 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 26 Mar 2020 18:03:41 +0800 Subject: [PATCH] =?UTF-8?q?*=E6=8F=90=E5=8F=96=E6=96=87=E4=BB=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=BB=84=E4=BB=B6=20*=E6=B7=BB=E5=8A=A0=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E9=A1=B5=E9=9D=A2=20*=E6=B7=BB=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E3=80=81=E8=A7=86=E9=A2=91=E3=80=81=E9=9F=B3=E4=B9=90?= =?UTF-8?q?=E3=80=81=E6=96=87=E6=A1=A3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/ShowFile/ShowFile.vue | 1851 ++++++++++++++++++++++++++ src/router/index.js | 57 +- src/views/demo/index.vue | 130 +- src/views/favorite/index.vue | 28 + src/views/fileType/audio.vue | 22 + src/views/fileType/document.vue | 22 + src/views/fileType/image.vue | 22 + src/views/fileType/video.vue | 22 + src/views/home/index.vue | 1798 +------------------------ src/views/recently/index.vue | 85 +- 11 files changed, 2162 insertions(+), 1876 deletions(-) create mode 100644 src/components/ShowFile/ShowFile.vue create mode 100644 src/views/favorite/index.vue create mode 100644 src/views/fileType/audio.vue create mode 100644 src/views/fileType/document.vue create mode 100644 src/views/fileType/image.vue create mode 100644 src/views/fileType/video.vue diff --git a/package.json b/package.json index 7f2d60c..3c96d1a 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", + "pl-table": "^2.5.8", "scriptjs": "^2.5.9", "sortablejs": "^1.10.2", "spark-md5": "^3.0.0", diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue new file mode 100644 index 0000000..2caf2ac --- /dev/null +++ b/src/components/ShowFile/ShowFile.vue @@ -0,0 +1,1851 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index e568a7a..1dd2439 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,7 +65,7 @@ export const constantRoutes = [ redirect: '/recently', children: [ { - path: 'recently', + path: '', name: 'recently', component: () => import('@/views/recently/index'), meta: { title: '最近', icon: 'zuijinyuedu' } @@ -73,6 +73,59 @@ export const constantRoutes = [ ] }, + { + path: '/audio', + component: Layout, + redirect: '/audio', + children: [ + { + path: '', + name: 'audio', + component: () => import('@/views/fileType/audio'), + meta: { title: '音乐', icon: 'audio' } + } + ] + }, + { + path: '/video', + component: Layout, + redirect: '/video', + children: [ + { + path: '', + name: 'video', + component: () => import('@/views/fileType/video'), + meta: { title: '视频', icon: 'video' } + } + ] + }, + { + path: '/image', + component: Layout, + redirect: '/image', + children: [ + { + path: '', + name: 'image', + component: () => import('@/views/fileType/image'), + meta: { title: '图片', icon: 'image' } + } + ] + }, + { + path: '/document', + component: Layout, + redirect: '/document', + children: [ + { + path: '', + name: 'document', + component: () => import('@/views/fileType/document'), + meta: { title: '文档', icon: 'document' } + } + ] + }, + { path: '/favorite', component: Layout, @@ -80,7 +133,7 @@ export const constantRoutes = [ { path: 'index', name: 'Form', - component: () => import('@/views/form/index'), + component: () => import('@/views/favorite/index'), meta: { title: '收藏', icon: 'Favoritestarrate' } } ] diff --git a/src/views/demo/index.vue b/src/views/demo/index.vue index 85518f4..caba8bd 100644 --- a/src/views/demo/index.vue +++ b/src/views/demo/index.vue @@ -1,27 +1,131 @@ - - diff --git a/src/views/favorite/index.vue b/src/views/favorite/index.vue new file mode 100644 index 0000000..8f26d38 --- /dev/null +++ b/src/views/favorite/index.vue @@ -0,0 +1,28 @@ + + + + + + diff --git a/src/views/fileType/audio.vue b/src/views/fileType/audio.vue new file mode 100644 index 0000000..5d45fe9 --- /dev/null +++ b/src/views/fileType/audio.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/fileType/document.vue b/src/views/fileType/document.vue new file mode 100644 index 0000000..f879b39 --- /dev/null +++ b/src/views/fileType/document.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/fileType/image.vue b/src/views/fileType/image.vue new file mode 100644 index 0000000..f07c480 --- /dev/null +++ b/src/views/fileType/image.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/fileType/video.vue b/src/views/fileType/video.vue new file mode 100644 index 0000000..f17273d --- /dev/null +++ b/src/views/fileType/video.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 0b2fe65..2cbaf3b 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,1811 +1,25 @@ diff --git a/src/views/recently/index.vue b/src/views/recently/index.vue index 499d818..b51e7fe 100644 --- a/src/views/recently/index.vue +++ b/src/views/recently/index.vue @@ -1,81 +1,28 @@ + + +