From b3228bdfa0e3b4d0dbebf4903821ee9cf83bdb3a Mon Sep 17 00:00:00 2001 From: xzx Date: Wed, 24 Jun 2020 17:40:25 +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 | 45 +++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index a6acaaf7..44819622 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -363,7 +363,8 @@ @mouseover="isShowIcon" @mouseout="ishideIcon" > -
+ +
-
工作中
+
工作中
+
@@ -2057,7 +2059,7 @@ export default { dialogNewSuperMapVisible: false, newSuperMap: { showName: "", description: "" }, mapAddress: "北京天安门", - isClient: false, // 是否是客户端 + isClient: true, // 是否是客户端 /**新建文件分组 start*/ dialogNewFolderGroup: false, //新建文件分组组弹窗 @@ -3718,6 +3720,13 @@ export default { offset: 100, duration: 2500 }); + if(thisApp.isClient) + { + var newFileName=file.archName +"." +file.extension; + // 客户端重命名文件 + // 1.strFileId:文件ID;2.strNewFileName:新文件名;3.strUserId:用户ID + back.renameFile(file.archID,newFileName,sessionStorage.userId); + } } }) .catch(function(error) { @@ -4420,6 +4429,14 @@ export default { duration: 2500 }); thisApp.goFolder(thisApp.nowFolderIndex); + var nowFile=response.data.data; + var newFileName=file.archName+"."+file.extension; + if(thisApp.isClient) + { + // 客户复制文件 + // 1.strFileId:文件ID;2.strNewFileName:新文件名;3.strUserId:用户ID;4.strFolderId:目的文件夹ID + back.copyFile(nowFile.archID,newFileName,sessionStorage.userId,nowFile.folderID); + } } else { this.$notify({ title: "温馨提示", @@ -4512,6 +4529,23 @@ export default { }); thisApp.dialogCopyAndMove = false; thisApp.listFiles(); + var nowFile=response.data.data; + var newFileName=file.archName+"."+file.extension; + if(thisApp.isClient) + { + var file = response.data.data; + if(thisApp.classif == "copy") + { + // 客户复制文件 + // 1.strFileId:文件ID;2.strNewFileName:新文件名;3.strUserId:用户ID;4.strFolderId:目的文件夹ID;5:strNewFileID:新文件ID + back.copyFile(thisApp.BtnRightFile.archID,newFileName,sessionStorage.userId,nowFile.folderID,nowFile.archID); + } + else{ + // 客户端移动文件 + // 1.strFileId:文件ID;2.strNewFileName:新文件名;3.strUserId:用户ID;4.strFolderId:目的文件夹ID + back.moveFile(nowFile.archID,newFileName,sessionStorage.userId,nowFile.folderID); + } + } } else { thisApp.$notify({ title: "温馨提示", @@ -5157,6 +5191,11 @@ export default { this.dialogNewCloudFileVisible = false; this.isShowNewFiledialog = false; this.createCloudFileName = ""; + var file=response.data.data; + if(this.isClient) + { + thisApp.clientDownLoad(file,1); + } } else { this.$notify({ title: "温馨提示",