Explorar el Código

标段列表,显示层级相关

MaiXinRong hace 2 años
padre
commit
d897d02fdb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/public/js/tender_showhide.js

+ 1 - 1
app/public/js/tender_showhide.js

@@ -156,7 +156,7 @@ function doTrStatus(node, status, all = '') {
 
 let tenderTreeShowLevel;
 const getChildrenLevel = function (node) {
-    let iLevel = node.level;
+    let iLevel = node.level || 1;
     if (node.children && node.children.length > 0) {
         for (const c of node.children) {
             iLevel = Math.max(iLevel, getChildrenLevel(c));