|
@@ -38,20 +38,18 @@ $(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
refreshFileCountHint() {
|
|
|
- const sum = _.sum(this.dragTree.children.map(x => { return x.file_count}));
|
|
|
+ const sum = _.sum(this.dragTree.children.map(x => { return x.total_file_count}));
|
|
|
$('#file-count').html(`文件总数:${sum}`);
|
|
|
}
|
|
|
calcTotalFileCount() {
|
|
|
this.dragTree.recursiveFun(this.dragTree.children, x => {
|
|
|
if (x.children && x.children.length > 0) {
|
|
|
x.total_file_count = x.children.reduce((pre, c) => {
|
|
|
- if (x.filing_type === 1) console.log('reduce', c.name, c.total_file_count);
|
|
|
return pre + c.total_file_count
|
|
|
}, 0);
|
|
|
} else {
|
|
|
x.total_file_count = x.file_count || 0;
|
|
|
}
|
|
|
- if (x.filing_type === 1) console.log(x.name, x.total_file_count);
|
|
|
});
|
|
|
}
|
|
|
_loadFilingSourceNode() {
|