Parcourir la source

标段列表,标段分类被删除后,仍可构建标段树结构

MaiXinRong il y a 3 ans
Parent
commit
73c9867750

+ 1 - 0
app/public/js/shares/tenders2tree.js

@@ -64,6 +64,7 @@ const Tender2Tree = (function () {
                 if (i === 0 && tender.category) {
                     for (const [j, c] of tender.category.entries()) {
                         const cate = findNode('id', c.cid, category);
+                        if (!cate) continue;
                         tenderCategory = getCategoryTreeNode(cate, c.value, tenderCategory);
                     }
                 }

+ 1 - 0
app/public/js/tender_list.js

@@ -233,6 +233,7 @@ function initTenderTree () {
                 if (index === 0 && tender.category) {
                     for (const [i,c] of tender.category.entries()) {
                         const cate = findNode('id', c.cid, category);
+                        if (!cate) continue;
                         tenderCategory = getCategoryNode(cate, c.value, tenderCategory, i+1);
                     }
                 }

+ 1 - 0
app/public/js/tender_list_info.js

@@ -257,6 +257,7 @@ function initTenderTree () {
                 if (index === 0 && tender.category) {
                     for (const [i,c] of tender.category.entries()) {
                         const cate = findNode('id', c.cid, category);
+                        if (!cate) continue;
                         tenderCategory = getCategoryNode(cate, c.value, tenderCategory, i+1);
                     }
                 }

+ 1 - 0
app/public/js/tender_list_manage.js

@@ -232,6 +232,7 @@ function initTenderTree () {
                 if (index === 0 && tender.category) {
                     for (const [i,c] of tender.category.entries()) {
                         const cate = findNode('id', c.cid, category);
+                        if (!cate) continue;
                         tenderCategory = getCategoryNode(cate, c.value, tenderCategory, i+1);
                     }
                 }

+ 1 - 0
app/public/js/tender_list_progress.js

@@ -252,6 +252,7 @@ function initTenderTree () {
                 if (index === 0 && tender.category) {
                     for (const [i,c] of tender.category.entries()) {
                         const cate = findNode('id', c.cid, category);
+                        if (!cate) continue;
                         tenderCategory = getCategoryNode(cate, c.value, tenderCategory, i+1);
                     }
                 }