Browse Source

优化SessionStorage内容

TonyKang 4 năm trước cách đây
mục cha
commit
ba6d3ac119

+ 1 - 0
web/building_saas/pm/js/pm_newMain.js

@@ -2949,6 +2949,7 @@ function initNodesVisibility(nodes, visible) {
 
 function initProjects(callback, expandCallback) {
     GetAllProjectData(function (datas) {
+        sessionStorage.setItem('projects_tree_data', JSON.stringify(datas)); // 报表用,不要删除
         //设置工程专业
         for (let data of datas) {
             if (data.projType === projectType.tender) {

+ 0 - 1
web/building_saas/pm/js/pm_tree.js

@@ -570,7 +570,6 @@ const pmTree = {
         })()
 
         let tree = new Tree(setting);
-        sessionStorage.setItem('projects_tree_data', JSON.stringify(arrData)); // 报表用,不要删除
         tree.loadData(arrData);
         return tree;