Browse Source

Merge branch 'dev' of ssh://10.10.100.21/source/saas-platform into dev

guq 7 years ago
parent
commit
0c372f5f3e
1 changed files with 10 additions and 0 deletions
  1. 10 0
      frontend/saas-web/app/view/core/query/QueryGridPanel.js

+ 10 - 0
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -281,6 +281,16 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                     tdCls: 'x-querygrid-code-column'
                 });
             }
+            if(c.xtype == 'datecolumn') {
+                Ext.applyIf(c, {
+                    exportStyle: {
+                        format: 'Medium Date'
+                    },
+                    exportRenderer: function (value) {
+                        return Ext.Date.format(new Date(value), 'Y-m-d');
+                    }
+                })
+            }
         });
 
         return columns;