|  | @@ -7,13 +7,17 @@ let contentOprObj = {
 | 
	
		
			
				|  |  |      currentCache: [],//按照serialNo排序
 | 
	
		
			
				|  |  |      setting: {
 | 
	
		
			
				|  |  |          header: [
 | 
	
		
			
				|  |  | -            {headerName:"工作内容",headerWidth:160,dataCode:"content", dataType: "String", hAlign: "left", vAlign: "center"},
 | 
	
		
			
				|  |  | -            {headerName:"输出",headerWidth:40,dataCode:"isChecked", cellType:"checkBox", hAlign: "center", vAlign: "center"}
 | 
	
		
			
				|  |  | +            {headerName:"工作内容", headerWidth: 360, rateWidth:0.93, dataCode:"content", dataType: "String", hAlign: "left", vAlign: "center"},
 | 
	
		
			
				|  |  | +            {headerName:"输出", headerWidth: 40, rateWidth: null, dataCode:"isChecked", cellType:"checkBox", hAlign: "center", vAlign: "center"}
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      buildSheet: function(container) {
 | 
	
		
			
				|  |  |          let me = contentOprObj;
 | 
	
		
			
				|  |  |          me.workBook = sheetCommonObj.buildSheet(container, me.setting, 30);
 | 
	
		
			
				|  |  | +        //获取工作内容列比例
 | 
	
		
			
				|  |  | +        let workBookWidth = pageCCOprObj.getWorkBookWidth();
 | 
	
		
			
				|  |  | +        me.setRateWith(workBookWidth);
 | 
	
		
			
				|  |  | +        sheetCommonObj.setColumnWidthByRate(workBookWidth, me.workBook, me.setting.header);
 | 
	
		
			
				|  |  |          me.workBook.options.allowUserDragDrop = false;
 | 
	
		
			
				|  |  |          me.workBook.getSheet(0).setColumnWidth(0, 20, GC.Spread.Sheets.SheetArea.rowHeader);
 | 
	
		
			
				|  |  |          me.workBook.options.allowCopyPasteExcelStyle = false;
 | 
	
	
		
			
				|  | @@ -22,6 +26,12 @@ let contentOprObj = {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          me.bindEvents(me.workBook);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    setRateWith: function (workBookWidth) {
 | 
	
		
			
				|  |  | +        let me = this;
 | 
	
		
			
				|  |  | +        let otherWidthRate = me.setting.header[1]['headerWidth'] / workBookWidth;
 | 
	
		
			
				|  |  | +        let contentWidthRate = 1 - otherWidthRate;
 | 
	
		
			
				|  |  | +        me.setting.header[0]['rateWidth'] = contentWidthRate;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      bindEvents: function (workBook) {
 | 
	
		
			
				|  |  |          let sheet = workBook.getActiveSheet(), me = contentOprObj;
 | 
	
		
			
				|  |  |          const EVENTS = GC.Spread.Sheets.Events;
 | 
	
	
		
			
				|  | @@ -34,6 +44,7 @@ let contentOprObj = {
 | 
	
		
			
				|  |  |          workBook.bind(EVENTS.RangeChanged, me.onRangeChanged);
 | 
	
		
			
				|  |  |          me.bindTools();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      bindTools: function () {
 | 
	
		
			
				|  |  |          let me = contentOprObj;
 | 
	
		
			
				|  |  |          let sheet = me.workBook.getActiveSheet();
 | 
	
	
		
			
				|  | @@ -398,7 +409,7 @@ let characterOprObj = {
 | 
	
		
			
				|  |  |      currentCache: [],
 | 
	
		
			
				|  |  |      setting: {
 | 
	
		
			
				|  |  |          header: [
 | 
	
		
			
				|  |  | -            {headerName:"项目特征",headerWidth:120,dataCode:"character", dataType: "String", hAlign: "left", vAlign: "center"},
 | 
	
		
			
				|  |  | +            {headerName:"项目特征",headerWidth:120, rateWidth:0.9, dataCode:"character", dataType: "String", hAlign: "left", vAlign: "center"},
 | 
	
		
			
				|  |  |              {headerName:"特征值",headerWidth:160,dataCode:"eigenvalue", dataType: "String", cellType: "comboBox", hAlign: "left", vAlign: "center"},
 | 
	
		
			
				|  |  |              {headerName:"输出",headerWidth:40,dataCode:"isChecked", cellType:"checkBox", hAlign: "center", vAlign: "center"}
 | 
	
		
			
				|  |  |          ]
 | 
	
	
		
			
				|  | @@ -406,6 +417,10 @@ let characterOprObj = {
 | 
	
		
			
				|  |  |      buildSheet: function(container) {
 | 
	
		
			
				|  |  |          let me = characterOprObj;
 | 
	
		
			
				|  |  |          me.workBook = sheetCommonObj.buildSheet(container, me.setting, 30);
 | 
	
		
			
				|  |  | +        //获取项目特征列比例
 | 
	
		
			
				|  |  | +        let workBookWidth = pageCCOprObj.getWorkBookWidth();
 | 
	
		
			
				|  |  | +        me.setRateWith(workBookWidth);
 | 
	
		
			
				|  |  | +        sheetCommonObj.setColumnWidthByRate(workBookWidth, me.workBook, me.setting.header);
 | 
	
		
			
				|  |  |          me.workBook.options.allowUserDragDrop = false;
 | 
	
		
			
				|  |  |          me.workBook.getSheet(0).setColumnWidth(0, 20, GC.Spread.Sheets.SheetArea.rowHeader);
 | 
	
		
			
				|  |  |          me.workBook.options.allowCopyPasteExcelStyle = false;
 | 
	
	
		
			
				|  | @@ -414,6 +429,12 @@ let characterOprObj = {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          me.bindEvents(me.workBook);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    setRateWith: function (workBookWidth) {
 | 
	
		
			
				|  |  | +        let me = this;
 | 
	
		
			
				|  |  | +        let otherWidthRate = (me.setting.header[1]['headerWidth'] + me.setting.header[2]['headerWidth']) / workBookWidth;
 | 
	
		
			
				|  |  | +        let contentWidthRate = 1 - otherWidthRate;
 | 
	
		
			
				|  |  | +        me.setting.header[0]['rateWidth'] = contentWidthRate;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      bindEvents: function (workBook) {
 | 
	
		
			
				|  |  |          let sheet = workBook.getActiveSheet(), me = characterOprObj;
 | 
	
		
			
				|  |  |          const EVENTS = GC.Spread.Sheets.Events;
 | 
	
	
		
			
				|  | @@ -1402,4 +1423,16 @@ let pageCCOprObj = {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return updateData;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +    //获取特征及内容工作簿宽度
 | 
	
		
			
				|  |  | +    getWorkBookWidth: function () {
 | 
	
		
			
				|  |  | +        return ($(window).width() - $('.main-nav').width()) / 3 - 50;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +$(window).resize(function () {
 | 
	
		
			
				|  |  | +    let workBookWidth = pageCCOprObj.getWorkBookWidth();
 | 
	
		
			
				|  |  | +    contentOprObj.setRateWith(workBookWidth);
 | 
	
		
			
				|  |  | +    sheetCommonObj.setColumnWidthByRate(workBookWidth, contentOprObj.workBook, contentOprObj.setting.header);
 | 
	
		
			
				|  |  | +    characterOprObj.setRateWith(workBookWidth);
 | 
	
		
			
				|  |  | +    sheetCommonObj.setColumnWidthByRate(workBookWidth, characterOprObj.workBook, characterOprObj.setting.header);
 | 
	
		
			
				|  |  | +});
 |