|
|
@@ -37,8 +37,9 @@ Ext.define('saas.util.FormUtil', {
|
|
|
Ext.Array.each(items, function(item) {
|
|
|
|
|
|
if(item.xtype == 'datefield') {
|
|
|
- item.format = 'Y-m-d H:i:s';
|
|
|
- item.formatText = '';
|
|
|
+ Ext.applyIf(item, {
|
|
|
+ format: 'Y-m-d'
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
if(item.xtype == 'numberfield') {
|
|
|
@@ -88,8 +89,8 @@ Ext.define('saas.util.FormUtil', {
|
|
|
}
|
|
|
|
|
|
if(c.xtype == 'datecolumn') {
|
|
|
- Ext.apply(c, {
|
|
|
- format: 'Y-m-d H:i:s'
|
|
|
+ Ext.applyIf(c, {
|
|
|
+ format: 'Y-m-d'
|
|
|
});
|
|
|
}else if(c.xtype == 'numbercolumn') {
|
|
|
Ext.applyIf(c, {
|