|
@@ -258,6 +258,33 @@ $(document).ready(() => {
|
|
|
if (tender.s2b_dagl_check) checkOption.limit3f.checkType.push('dagl');
|
|
|
// 界面布局
|
|
|
autoFlashHeight();
|
|
|
+ let featureDisplay;
|
|
|
+ const changeFeaturesDisplay = function (show, init = false) {
|
|
|
+ $('#features-show').html(show ? '<i class="fa fa-eye-slash"></i> 隐藏特征' : '<i class="fa fa-eye"></i> 显示特征');
|
|
|
+ const featureCols = ledgerSpreadSetting.cols.find(x => { return x.field === 'features'; });
|
|
|
+ if (!featureCols) return;
|
|
|
+ featureCols.visible = show ? true : false;
|
|
|
+ if (!init) {
|
|
|
+ featureDisplay = show;
|
|
|
+ setLocalCache(featureShowCache, show ? 1 : 0);
|
|
|
+ SpreadJsObj.refreshColumnVisible(slSpread.getActiveSheet(), 1);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ const reloadFeaturesDisplayCache = function () {
|
|
|
+ const featureCols = ledgerSpreadSetting.cols.find(x => { return x.field === 'features'; });
|
|
|
+ if (featureCols) {
|
|
|
+ $('#features-show').show();
|
|
|
+ featureDisplay = getLocalCache(featureShowCache);
|
|
|
+ featureDisplay = featureDisplay ? parseInt(featureDisplay) : 1;
|
|
|
+ changeFeaturesDisplay(featureDisplay, true);
|
|
|
+ } else {
|
|
|
+ $('#features-show').hide();
|
|
|
+ }
|
|
|
+ };
|
|
|
+ reloadFeaturesDisplayCache();
|
|
|
+ $('#features-show').click(function() {
|
|
|
+ changeFeaturesDisplay(!featureDisplay);
|
|
|
+ });
|
|
|
// 初始化 台账树结构 数据结构
|
|
|
removeLocalCache('bills-fold');
|
|
|
const stageTreeSetting = {
|