|  | @@ -424,27 +424,96 @@ let colSettingObj = {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return false;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    updateColSetting: function () {
 | 
	
		
			
				|  |  | -        let sheet = this.settingSpread.getActiveSheet();
 | 
	
		
			
				|  |  | -         let mainSheet = projectObj.mainSpread.getActiveSheet();
 | 
	
		
			
				|  |  | -         for (let iRow = 0; iRow < sheet.getRowCount(); iRow++) {
 | 
	
		
			
				|  |  | -         projectObj.project.projSetting.main_tree_col.cols[iRow].visible = sheet.getValue(iRow, 0);
 | 
	
		
			
				|  |  | -         projectObj.project.projSetting.mainGridSetting.cols[iRow].visible = sheet.getValue(iRow, 0);
 | 
	
		
			
				|  |  | -         }
 | 
	
		
			
				|  |  | -         SheetDataHelper.massOperationSheet(mainSheet, function () {
 | 
	
		
			
				|  |  | -         SheetDataHelper.refreshColumnVisible(projectObj.project.projSetting.mainGridSetting, mainSheet);
 | 
	
		
			
				|  |  | -         //左右滚动条到最左边
 | 
	
		
			
				|  |  | -         mainSheet.showColumn(projectObj.project.projSetting.mainGridSetting.frozenCols, GC.Spread.Sheets.HorizontalPosition.left);
 | 
	
		
			
				|  |  | -         });
 | 
	
		
			
				|  |  | -         //refresh nodes to autoFitRow
 | 
	
		
			
				|  |  | -         projectObj.mainController.refreshTreeNode(projectObj.project.mainTree.roots, true);
 | 
	
		
			
				|  |  | -         projectObj.project.pushNow('editColSetting', projectObj.project.projSetting.moduleName, {
 | 
	
		
			
				|  |  | -         projectID: projectObj.project.ID(),
 | 
	
		
			
				|  |  | -         main_tree_col: projectObj.project.projSetting.main_tree_col
 | 
	
		
			
				|  |  | -         });
 | 
	
		
			
				|  |  | +    updateColSetting: function (skipSetValue = false) {
 | 
	
		
			
				|  |  | +        let mainSheet = projectObj.mainSpread.getActiveSheet();
 | 
	
		
			
				|  |  | +        if(!skipSetValue){
 | 
	
		
			
				|  |  | +            let sheet = this.settingSpread.getActiveSheet();
 | 
	
		
			
				|  |  | +            for (let iRow = 0; iRow < sheet.getRowCount(); iRow++) {
 | 
	
		
			
				|  |  | +                projectObj.project.projSetting.main_tree_col.cols[iRow].visible = sheet.getValue(iRow, 0);
 | 
	
		
			
				|  |  | +                projectObj.project.projSetting.mainGridSetting.cols[iRow].visible = sheet.getValue(iRow, 0);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        SheetDataHelper.massOperationSheet(mainSheet, function () {
 | 
	
		
			
				|  |  | +            SheetDataHelper.refreshColumnVisible(projectObj.project.projSetting.mainGridSetting, mainSheet);
 | 
	
		
			
				|  |  | +            //左右滚动条到最左边
 | 
	
		
			
				|  |  | +            mainSheet.showColumn(projectObj.project.projSetting.mainGridSetting.frozenCols, GC.Spread.Sheets.HorizontalPosition.left);
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        //refresh nodes to autoFitRow
 | 
	
		
			
				|  |  | +        projectObj.mainController.refreshTreeNode(projectObj.project.mainTree.roots, true);
 | 
	
		
			
				|  |  | +        if(!skipSetValue){
 | 
	
		
			
				|  |  | +            //列设置将项目特征和工作内容都取消打钩后,更新快速列设置
 | 
	
		
			
				|  |  | +            if(!this.getVisible('itemCharacterText') && !this.getVisible('jobContentText')){
 | 
	
		
			
				|  |  | +                switchTznrHtml(true);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if(this.getVisible('itemCharacterText') && this.getVisible('jobContentText')){
 | 
	
		
			
				|  |  | +                switchTznrHtml(false);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        projectObj.project.pushNow('editColSetting', projectObj.project.projSetting.moduleName, {
 | 
	
		
			
				|  |  | +            projectID: projectObj.project.ID(),
 | 
	
		
			
				|  |  | +            main_tree_col: projectObj.project.projSetting.main_tree_col
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    setVisible: function (field, visible) {
 | 
	
		
			
				|  |  | +        let mainTreeCols = projectObj.project.projSetting.main_tree_col.cols;
 | 
	
		
			
				|  |  | +        for(let colSetting of mainTreeCols){
 | 
	
		
			
				|  |  | +            if(colSetting.data.field === field){
 | 
	
		
			
				|  |  | +                colSetting.visible = visible;
 | 
	
		
			
				|  |  | +                break;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        let mainGridCols = projectObj.project.projSetting.mainGridSetting.cols;
 | 
	
		
			
				|  |  | +        for(let colSetting of mainGridCols){
 | 
	
		
			
				|  |  | +            if(colSetting.data.field === field){
 | 
	
		
			
				|  |  | +                colSetting.visible = visible;
 | 
	
		
			
				|  |  | +                break;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    getVisible: function(field){
 | 
	
		
			
				|  |  | +        let cols = projectObj.project.projSetting.main_tree_col.cols;
 | 
	
		
			
				|  |  | +        for(let colSetting of cols){
 | 
	
		
			
				|  |  | +            if(colSetting.data.field === field){
 | 
	
		
			
				|  |  | +                return colSetting.visible;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +function switchTznrHtml(show) {
 | 
	
		
			
				|  |  | +    if(show){
 | 
	
		
			
				|  |  | +        let newHmtl = $('#switchTznr').html().replace('隐藏', '显示');
 | 
	
		
			
				|  |  | +        $('#switchTznr').html(newHmtl);
 | 
	
		
			
				|  |  | +        $('#switchTznr').find('i').removeClass('fa-eye-slash');
 | 
	
		
			
				|  |  | +        $('#switchTznr').find('i').addClass('fa-eye');
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    else {
 | 
	
		
			
				|  |  | +        let newHmtl = $('#switchTznr').html().replace('显示', '隐藏');
 | 
	
		
			
				|  |  | +        $('#switchTznr').html(newHmtl);
 | 
	
		
			
				|  |  | +        $('#switchTznr').find('i').removeClass('fa-eye');
 | 
	
		
			
				|  |  | +        $('#switchTznr').find('i').addClass('fa-eye-slash');
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +$('#switchTznr').click(function () {
 | 
	
		
			
				|  |  | +    let me = colSettingObj;
 | 
	
		
			
				|  |  | +    let cur = $(this).text();
 | 
	
		
			
				|  |  | +    if(cur.includes('显示特征内容')){
 | 
	
		
			
				|  |  | +        switchTznrHtml(false);
 | 
	
		
			
				|  |  | +        me.setVisible('itemCharacterText', true);
 | 
	
		
			
				|  |  | +        me.setVisible('jobContentText', true);
 | 
	
		
			
				|  |  | +        me.updateColSetting(true);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    else {
 | 
	
		
			
				|  |  | +        switchTznrHtml(true);
 | 
	
		
			
				|  |  | +        me.setVisible('itemCharacterText', false);
 | 
	
		
			
				|  |  | +        me.setVisible('jobContentText', false);
 | 
	
		
			
				|  |  | +        me.updateColSetting(true);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +});
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  $('#poj-set').on('shown.bs.modal', function (e) {
 | 
	
		
			
				|  |  |      if (!colSettingObj.settingSpread) {
 | 
	
		
			
				|  |  |          colSettingObj.initSettingSpread();
 | 
	
	
		
			
				|  | @@ -452,6 +521,15 @@ $('#poj-set').on('shown.bs.modal', function (e) {
 | 
	
		
			
				|  |  |              disableSpread(colSettingObj.settingSpread);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    if($('#tab_display_setting').hasClass('active')){
 | 
	
		
			
				|  |  | +        let sheet = colSettingObj.settingSpread.getActiveSheet();
 | 
	
		
			
				|  |  | +        SheetDataHelper.massOperationSheet(sheet, function () {
 | 
	
		
			
				|  |  | +            for(let row = 0; row < sheet.getRowCount(); row++){
 | 
	
		
			
				|  |  | +                let orgData = projectObj.project.projSetting.main_tree_col.cols[row].visible;
 | 
	
		
			
				|  |  | +                sheet.setValue(row, 0, orgData);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    }  
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  $('#poj-set').on('hidden.bs.modal', function (e) {
 | 
	
	
		
			
				|  | @@ -467,7 +545,6 @@ $('#poj-set').on('hidden.bs.modal', function (e) {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  $('#tab_display_setting').on('shown.bs.tab', function () {
 | 
	
		
			
				|  |  |      if(colSettingObj.settingSpread){
 | 
	
		
			
				|  |  |          colSettingObj.settingSpread.refresh();
 |