Explorar el Código

fix: TASK #5261 归档部分调整

Tony Kang hace 3 semanas
padre
commit
88b9d532aa
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      app/public/report/js/rpt_archive.js

+ 6 - 0
app/public/report/js/rpt_archive.js

@@ -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]);