Index: ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js =================================================================== diff -u -r22651 -r24657 --- ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js (.../configObj.js) (revision 22651) +++ ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js (.../configObj.js) (revision 24657) @@ -279,6 +279,7 @@ heightforPrint:'50%', headRowHeight:'25', dataRowHeight:'25', + tdAlign:'center', fontConfig: new FontConfig(), headFontConfig: new FontConfig(), dataItemFontConfig: new FontConfig(), @@ -310,6 +311,7 @@ saveValueFromCmp(this,'heightforPrint','table_height_forPrint'); saveValueFromCmp(this,'headRowHeight','table_head_row_height'); saveValueFromCmp(this,'dataRowHeight','table_data_row_height'); + saveValueFromCmp(this,'tdAlign','table_data_tdAlign'); }, loadNormalConfig: function(cmpIdPrefix){ loadValueToCmp(this,'border','table_border'); @@ -321,6 +323,7 @@ loadValueToCmp(this,'heightforPrint','table_height_forPrint'); loadValueToCmp(this,'headRowHeight','table_head_row_height'); loadValueToCmp(this,'dataRowHeight','table_data_row_height'); + loadValueToCmp(this,'tdAlign','table_data_tdAlign'); }, statics: { convertFromJsonObjs: function(objs){ @@ -355,6 +358,7 @@ heightforPrint: obj.heightforPrint, headRowHeight: obj.headRowHeight, dataRowHeight: obj.dataRowHeight, + tdAlign: StringUtils.defaultIfEmpty(obj.tdAlign,'center'), fontConfig: FontConfig.convertFromJsonObj(obj.fontConfig), headFontConfig: FontConfig.convertFromJsonObj(obj.headFontConfig), dataItemFontConfig: FontConfig.convertFromJsonObj(obj.dataItemFontConfig), @@ -379,6 +383,7 @@ heightforPrint: this.heightforPrint, headRowHeight: this.headRowHeight, dataRowHeight: this.dataRowHeight, + tdAlign: this.tdAlign, fontConfig: this.fontConfig.convertToJsonObj(), headFontConfig: this.headFontConfig.convertToJsonObj(), dataItemFontConfig: this.dataItemFontConfig.convertToJsonObj(), @@ -543,7 +548,7 @@ } itemsObj['item'+(i+1)] = tdItemI; } - tempStr = '