|
@@ -124,8 +124,14 @@ let rptArchiveObj = {
|
|
|
},
|
|
|
refreshNodes: function() {
|
|
|
let me = this;
|
|
|
+ const _set_archive_icon = function (tplNode) {
|
|
|
+ if (!tplNode.isParent) {
|
|
|
+ tplNode.icon = "/public/css/ztree/img/diy/11.png"; // 躺枪,ico_docu已换成其他图标,调整的代价大,在这里调整
|
|
|
+ }
|
|
|
+ };
|
|
|
let private_setupIsParent = function(node){
|
|
|
node.isParent = (node.nodeType === RT.NodeType.NODE || node.level === 0);
|
|
|
+ _set_archive_icon(node);
|
|
|
if (node.items && node.items.length) {
|
|
|
for (let i = 0; i < node.items.length; i++) {
|
|
|
private_setupIsParent(node.items[i]);
|