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