From b9323bc1adcea49f082447c5d552e4f2c73baff5 Mon Sep 17 00:00:00 2001 From: p71924506 <222@qq.com> Date: Wed, 19 Apr 2023 18:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=AE=A1=E7=90=863.0=E7=9A=84=E6=96=87=E4=BB=B6=E5=A4=B9ls?= =?UTF-8?q?=E5=8F=8Amkdir=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/assets/back.svg | 1 + src/styles/index.scss | 1 + src/utils/http/interface.js | 27 ++- src/views/fileList/FileListV3.vue | 312 +++++++++++++----------------- yarn.lock | 5 + 6 files changed, 167 insertions(+), 180 deletions(-) create mode 100644 src/assets/back.svg diff --git a/package.json b/package.json index b4aa583..76651ec 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "core-js": "^3.26.1", "docx-preview": "^0.1.14", "element-ui": "2.13.2", + "file-saver": "^2.0.5", "js-base64": "^3.7.3", "js-cookie": "2.2.0", "js-md5": "^0.7.3", diff --git a/src/assets/back.svg b/src/assets/back.svg new file mode 100644 index 0000000..cb49d04 --- /dev/null +++ b/src/assets/back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index 3b4da51..cfd7f68 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -62,4 +62,5 @@ div:focus { // main-container global css .app-container { padding: 20px; + height: 100vh; } diff --git a/src/utils/http/interface.js b/src/utils/http/interface.js index 3449c4d..7057ae9 100644 --- a/src/utils/http/interface.js +++ b/src/utils/http/interface.js @@ -212,6 +212,29 @@ export const insertExpertInfo = data =>{ }) } +export const getFilesDirMeta = data =>{ + return axios({ + headers:{ + "Authorization": localStorage.getItem("systemToken") + }, + url: '/file/getFilesDirMeta', + method: 'post', + data + }) +} + + +export const mkdir = data =>{ + return axios({ + headers:{ + "Authorization": localStorage.getItem("systemToken") + }, + url: '/file/mkdir', + method: 'post', + data + }) +} + // 默认全部倒出 // 根据需要进行 export default { @@ -234,5 +257,7 @@ export default { getExpertInfoByName, getAllRankInfo, insertRankInfo, - insertExpertInfo + insertExpertInfo, + getFilesDirMeta, + mkdir } diff --git a/src/views/fileList/FileListV3.vue b/src/views/fileList/FileListV3.vue index e0c19d4..c2715aa 100644 --- a/src/views/fileList/FileListV3.vue +++ b/src/views/fileList/FileListV3.vue @@ -1,12 +1,12 @@