From 7fef68acc6ae5a4307ffddd6c778693bb1e5c8fe Mon Sep 17 00:00:00 2001 From: zxm Date: Mon, 29 Jun 2020 16:18:32 +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 | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index 1b30e863..a73fe78c 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -1350,12 +1350,13 @@ @@ -2122,6 +2123,7 @@ export default { timer: {}, //文件计时器对象 isShowMenuFoldergroup:true,//右键分组菜单项-显隐 isShowMenuFile:true,//右键文件菜单项-显隐 + isShowMenuItemCreateFoldergroup:true,//右键分组"新建文件夹"菜单项-显隐 /**新建文件分组 end*/ }; }, @@ -5326,9 +5328,6 @@ export default { } else { this.top = e.clientY; // fix 位置bug } - console.log("zxm-type:"+type) - console.log("zxm-file.status:"+file.status) - console.log("zxm-currentPageType:"+this.currentPageType) if (type == 2 || type == 3) { //工作文件下 指定显示某些菜单项 if(this.currentPageType==1){ @@ -5336,7 +5335,6 @@ export default { }else{ this.isShowMenuFile = false } - console.log("zxm-isShowMenuFile:"+ this.isShowMenuFile) if (file.status == 2) { if (this.isClient) { this.top = this.top - 100; @@ -5357,11 +5355,17 @@ export default { }else{ this.isShowMenuFoldergroup = true } + //点击空白处只显示“新建文件夹” + if(file=="新建文件夹"){ + this.isShowMenuItemCreateFoldergroup = true + }else{ + this.isShowMenuItemCreateFoldergroup = false + } //显示分组菜单的位置 if (this.isClient) { this.top = this.top - 100; } else { - this.top = this.top - 50; + this.top = this.top - 5; } }else{ //工作文件下 指定显示某些菜单项 @@ -5370,7 +5374,12 @@ export default { }else{ this.isShowMenuFile = false } - console.log("zxm-isShowMenuFile:"+ this.isShowMenuFile) + //显示分组菜单的位置 + if (this.isClient) { + this.top = this.top - 100; + } else { + this.top = this.top - 50; + } } this.rightMenuvisible = true; this.showType = type;