Browse Source

审核比较,不记录历史选择

MaiXinRong 4 years ago
parent
commit
dd6f410ac3
2 changed files with 3 additions and 2 deletions
  1. 1 1
      app/public/js/stage_compare.js
  2. 2 1
      app/view/stage/compare.ejs

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

@@ -210,7 +210,7 @@ $(document).ready(function () {
                     compareRoles.push(order + 1);
                 }
             }
-            setLocalCache(scCacheKey, compareRoles.join(','));
+            // setLocalCache(scCacheKey, compareRoles.join(','));
             initSpreadSettingWithRoles(compareRoles);
             SpreadJsObj.initSheet(ledgerSpread.getActiveSheet(), ledgerSpreadSetting);
             treeCalc.calculateAll(scTree);

+ 2 - 1
app/view/stage/compare.ejs

@@ -78,9 +78,10 @@
         key: 'stage-compare-pos',
         colWidth: true,
     }
-    const scCacheKey = 'stage-compare-role-' + stage.tid + '-' + stage.order;
+    // const scCacheKey = 'stage-compare-role-' + stage.tid + '-' + stage.order;
     // let scRoles = getLocalCache(scCacheKey);
     // scRoles = scRoles ? scRoles.split(',') : [0];
+    removeLocalCache('stage-compare-role-' + stage.tid + '-' + stage.order);
     scRoles = [0];
     const thousandth = <%- ctx.tender.info.display.thousandth %>;
 </script>