diff --git a/public/resource/font_2024484_ziwmm4cu4r.js b/public/resource/font_2024484_ziwmm4cu4r.js
index 527c2bc..f53d044 100644
--- a/public/resource/font_2024484_ziwmm4cu4r.js
+++ b/public/resource/font_2024484_ziwmm4cu4r.js
@@ -1 +1 @@
-window._iconfont_svg_string_2024484='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,t,p,i,M,d=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_2024484,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?d(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=c.document,M=!1,F(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){M||(M=!0,p())}function F(){try{i.documentElement.doScroll("left")}catch(l){return void setTimeout(F,50)}z()}}(window);
+window._iconfont_svg_string_2024484='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,t,p,i,M,d=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_2024484,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?d(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,i=c.document,M=!1,F(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,z())})}function z(){M||(M=!0,p())}function F(){try{i.documentElement.doScroll("left")}catch(l){return void setTimeout(F,50)}z()}}(window);
diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue
index 1e75067..90654a0 100644
--- a/src/components/ShowFile/ShowFile.vue
+++ b/src/components/ShowFile/ShowFile.vue
@@ -685,12 +685,7 @@
- {{ rowContextData.size }}字节
- {{
- rowContextData.size > 0
- ? "(" + formatSize(rowContextData.size) + ")"
- : ""
- }}
@@ -1112,6 +1107,7 @@ export default {
dragLoop: null,
positionX: 0,
positionY: 0,
+ showFolderSize: false,
grid: this.defaultGrid,
vmode: this.defaultGrid ? "grid" : "list",
gridColumnNum: -1,
@@ -2585,6 +2581,11 @@ export default {
child[0].iconClass = "menu-point";
child[1].iconClass = "menu-empty";
}
+ if (this.showFolderSize) {
+ child[2].iconClass = "duigou";
+ } else {
+ child[2].iconClass = "menu-empty";
+ }
}
if (arrangementModeIndex > -1) {
const child = this.contextMenus[arrangementModeIndex].child;
@@ -2728,7 +2729,8 @@ export default {
isFavorite: this.queryCondition.isFavorite,
queryFileType: this.queryFileType,
pageIndex: this.pagination.pageIndex,
- pageSize: this.pagination.pageSize
+ pageSize: this.pagination.pageSize,
+ showFolderSize: this.showFolderSize
})
.then(res => {
this.loadData(res, onLoad);
@@ -2751,7 +2753,8 @@ export default {
currentDirectory: this.getQueryPath(),
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
- folder: this.$route.query.folder
+ folder: this.$route.query.folder,
+ showFolderSize: this.showFolderSize
})
.then(res => {
this.loadData(res, onLoad);
@@ -2771,7 +2774,8 @@ export default {
currentDirectory: this.getQueryPath(),
pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize,
- folder: this.$route.query.folder
+ folder: this.$route.query.folder,
+ showFolderSize: this.showFolderSize
})
.then(res => {
this.loadData(res, onLoad);
@@ -2803,7 +2807,8 @@ export default {
tagId: this.queryCondition.tagId,
queryCondition: this.queryCondition,
pageIndex: this.pagination.pageIndex,
- pageSize: this.pagination.pageSize
+ pageSize: this.pagination.pageSize,
+ showFolderSize: this.showFolderSize
})
.then(res => {
this.loadData(res, onLoad);
@@ -2819,7 +2824,8 @@ export default {
currentDirectory: this.getQueryPath(),
folder: this.$route.query.folder,
pageIndex: this.pagination.pageIndex,
- pageSize: this.pagination.pageSize
+ pageSize: this.pagination.pageSize,
+ showFolderSize: this.showFolderSize
})
.then(res => {
this.loadData(res, onLoad);
@@ -3417,6 +3423,10 @@ export default {
this.grid = false;
this.changeVmode();
break;
+ case "show-folder-size":
+ this.showFolderSize = !this.showFolderSize;
+ this.getFileList();
+ break;
case "orderName":
this.sortChangeOfMenu("name", 2);
break;
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8a82d05..b4e4be9 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -23,6 +23,7 @@ export default {
{ label: '查看', operation: 'viewMode' ,child: [
{ iconClass: this.grid?'':'menu-point', label: '列表', operation: 'vmode-list'},
{ iconClass: this.grid?'menu-point':'', label: '缩略图', operation: 'vmode-grid'},
+ { label: '显示文件夹大小', operation: 'show-folder-size'},
]
},
{ label: '排列方式', operation: 'arrangement' ,child: [