|
@@ -28,13 +28,15 @@ $(document).ready(function() {
|
|
|
}
|
|
|
});
|
|
|
const sortNodes = this.dragTree.nodes.map(x => {
|
|
|
- return {
|
|
|
+ const result = {
|
|
|
id: x.id,
|
|
|
tree_pid: x.tree_pid,
|
|
|
name: x.name + (x.total_file_count > 0 ? `(${x.total_file_count})` : ''),
|
|
|
spid: x.spid,
|
|
|
source_node: x,
|
|
|
};
|
|
|
+ if (result.source_node.is_fixed) result.isParent = true;
|
|
|
+ return result;
|
|
|
});
|
|
|
this.filingTree = $.fn.zTree.init($('#filing'), this.setting, sortNodes);
|
|
|
}
|