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;