From 964a66369d63a1de89dd693cb2cb28e7118ee07e Mon Sep 17 00:00:00 2001 From: xzx Date: Thu, 11 Jun 2020 17:03:21 +0800 Subject: [PATCH 1/2] [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 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index 93b174b0..297c40ad 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -3873,7 +3873,7 @@ export default { * 协作文件点击文件事件:直接打开文件 */ fileClickColl: function (file) { - if (!this.isClient) { + if (this.isClient) { if (file.status == 1 || file.status == 0) { this.$confirm("对方正在工作中,请稍后查看", '', { confirmButtonText: "确定", @@ -4109,6 +4109,26 @@ export default { }); } }, + /** + * 客户端下载方法 + */ + clientDownLoad:function(file){ + 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 + ); + } + }, /** * 重命名我的文件 * file:源数据 From 0321ffc6bbb609ed1590ce36d9ed878fb4dc4e5f Mon Sep 17 00:00:00 2001 From: xzx Date: Thu, 11 Jun 2020 17:19:42 +0800 Subject: [PATCH 2/2] [VersionBeta] V.1.0.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Adds] 1.添加客户端方法:clientUpload --- src/views/main_web/workspace.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index 297c40ad..90c16a33 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -1802,6 +1802,7 @@ @click="showNewFiledialog" >