Parcourir la source

[VersionBeta] V.1.0.0.0

[Adds]
1.优化回收站
new-cli
zxm il y a 4 ans
Parent
révision
44d90604f9
1 fichiers modifiés avec 32 ajouts et 4 suppressions
  1. +32
    -4
      src/views/main_web/recycle.vue

+ 32
- 4
src/views/main_web/recycle.vue Voir le fichier

@@ -16,7 +16,7 @@
v-if="!isShowRecycleTip" v-if="!isShowRecycleTip"
v-for="(folder, index) in filesList" v-for="(folder, index) in filesList"
:key="index"> :key="index">
<div class="yinyong_warpBox hidescollbar">
<div class="yinyong_warpBox hidescollbar" @click="clickYinyongWarpBox()">
<div class="yiyun_section_top" id="bignav"> <div class="yiyun_section_top" id="bignav">
<!-- 系统时间 --> <!-- 系统时间 -->
<div class="section_item fl section_item_aside_fl "> <div class="section_item fl section_item_aside_fl ">
@@ -78,7 +78,8 @@
<div class="yiyun_wenjian_list" <div class="yiyun_wenjian_list"
v-for="foldergroup in folder.listFoldergroup" v-for="foldergroup in folder.listFoldergroup"
:key="foldergroup.folderGroupID" :key="foldergroup.folderGroupID"
@contextmenu.prevent="rightFoldergroupShowMenu($event, foldergroup)">
@contextmenu.prevent="rightFoldergroupShowMenu($event, foldergroup)"
@click="clickFoldergroup(foldergroup)">
<div class="defultImage-mid foldernew-mid" > <div class="defultImage-mid foldernew-mid" >
</div> </div>
<strong class="yiyunwenjian_name" > <strong class="yiyunwenjian_name" >
@@ -230,6 +231,14 @@
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);
}); });
}).catch(()=>{
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500
});
}); });
}, },
/** /**
@@ -270,6 +279,14 @@
.catch(error => { .catch(error => {
console.log(error); console.log(error);
}); });
}).catch(()=>{
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500
});
}); });
}, },
/** /**
@@ -299,6 +316,16 @@
this.rightMenuvisible = false; this.rightMenuvisible = false;
}, },
/******* 右键文件分组菜单 *********/ /******* 右键文件分组菜单 *********/
clickYinyongWarpBox:function(){
this.rightMenuvisible = false;
this.rightFoldergroupMenuvisible = false;
},
/**
* 单机分组
*/
clickFoldergroup:function(foldergroup){
this.rightFoldergroupMenuvisible = false;
},
/** /**
* 右键文件分组 * 右键文件分组
*/ */
@@ -363,7 +390,7 @@
offset: 100, offset: 100,
duration: 2500 duration: 2500
}); });
}); ;
});
}, },
/** /**
* 彻底删除 * 彻底删除
@@ -407,13 +434,14 @@
}, },
}, },
watch: { watch: {
rightMenuvisible(value) {
rightMenuvisiblerightMenuvisible(value) {
if (value) { if (value) {
document.body.addEventListener("click", this.closeShowMenu); document.body.addEventListener("click", this.closeShowMenu);
} else { } else {
document.body.removeEventListener("click", this.closeShowMenu); document.body.removeEventListener("click", this.closeShowMenu);
} }
} }
} }
}; };
</script> </script>


Chargement…
Annuler
Enregistrer