From 32607d24fed5bf1f3da4152c707d5dad519854c4 Mon Sep 17 00:00:00 2001 From: xzx Date: Fri, 12 Jun 2020 14:51:08 +0800 Subject: [PATCH] [VersionBeta] V.1.0.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Adds] 1.文件状态样式修改 --- src/views/main_web/workspace.vue | 105 +++++++++++++++++++------------ static/css/main.css | 17 ++++- 2 files changed, 82 insertions(+), 40 deletions(-) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index ab132ef6..7069417a 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -226,7 +226,7 @@
@@ -286,7 +286,7 @@
工作文件 @@ -327,7 +327,7 @@
-
+
公共文件
@@ -650,11 +650,18 @@
+
+ +
下载中
+
@@ -1491,11 +1498,10 @@
-
+
-
+
- - - + 点击上传本地文件
@@ -3773,20 +3762,58 @@ export default { /** * 客户端下载方法 */ - clientDownLoad: function(file) { + clientDownLoad: function(file,type) { + var thisApp=this; if (this.isClient) { - var archid = file.archID; - var filename = file.archName + "." + file.extension; - var folderID = file.folderID; - var folderName = this.listUserFolders[this.nowFolderIndex].folderName; - var projID = file.projID; - back.downloadFile( - archid, - filename, - folderID, - sessionStorage.projName, - folderName - ); + this.$axios({ + method: "put", + url: encodeURI(process.env.API_HOST + "projects/download/" + file.archID +"/" +sessionStorage.userId + "/" + type) + }) + .then(response => { + console.log(response) + if(response.data.state == 1) + { + thisApp.$notify({ + title: "温馨提示", + message:"文件已开始下载...", + type: "info", + offset: 30, + duration: 2000 + }); + var archid = file.archID; + var filename = file.archName + "." + file.extension; + var folderID = file.folderID; + var folderName = thisApp.listUserFolders[thisApp.nowFolderIndex].folderName; + var projID = file.projID; + back.downloadFile( + archid,- + filename, + folderID, + sessionStorage.projName, + folderName + ); + } + else + { + this.$notify({ + title: "温馨提示", + message: response.data.message, + type: "error", + offset: 30, + duration: 2000 + }); + } + + }) + .catch(error => { + this.$notify({ + title: "温馨提示", + message: "下载失败", + type: "error", + offset: 30, + duration: 2000 + }); + }); } }, /** diff --git a/static/css/main.css b/static/css/main.css index 01d83525..b6304e60 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -8678,7 +8678,22 @@ h5.dulilabel{ width: 48px; height: 48px; left: 50%; - top: 33%; + top:33%; margin-left: -24px; margin-top: -24px; +} +.uploadText{ + position: relative; + top: 40px; + left: 30px; + font-size: 13px +} +.minifont{ + font-size: 11px; + color: #71717d; + margin-top: 2px +} +.largeicon{ + color: #000; + font-size: 22px } \ No newline at end of file