Index: ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js =================================================================== diff -u -r15107 -r15117 --- ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js (.../configObj.js) (revision 15107) +++ ssts-web/src/main/webapp/disinfectsystem/labelTemplateDesign/configObj.js (.../configObj.js) (revision 15117) @@ -1,3 +1,4 @@ + Ext4.define("StyleConfig", { getStyleStr: function(){ return ''; @@ -11,7 +12,7 @@ fontSize: '16px', fontSizeValue: '16', fontSizeUnit: 'px', - fontFamily: '宋体', + fontFamily: '宋体' }, extend: 'StyleConfig', constructor: function(config){ @@ -475,7 +476,7 @@ if(dataRowConfig != null){ var itemsPerRow = tableConfig.itemsPerRow; var dataItems = obj[itemsPropName]; - alert(itemsPropName) +// alert(itemsPropName) var mod = dataItems.length % itemsPerRow; var itemsCount = dataItems.length; var rowsCount = parseInt(itemsCount/itemsPerRow); @@ -516,6 +517,7 @@ return tableHtml; } function transformTemplateConfigObjs(template){ + if(isUndefinedOrNullOrEmpty(template.templateInfo)){ template.templateInfo = {}; }else{ @@ -529,4 +531,4 @@ templateInfo.tableConfigs = TableConfig.convertFromJsonObjs(templateInfo.tableConfigs); } return template; -} \ No newline at end of file +}