Browse Source

从表最大长度设为50

zhuth 7 years ago
parent
commit
d582fab042
1 changed files with 5 additions and 1 deletions
  1. 5 1
      frontend/saas-web/app/util/FormUtil.js

+ 5 - 1
frontend/saas-web/app/util/FormUtil.js

@@ -94,7 +94,11 @@ Ext.define('saas.util.FormUtil', {
                                     c.cls = 'x-grid-necessary';
                                 }
 
-                                if(c.xtype == 'datecolumn') {
+                                if(c.xtype == 'textfield') {
+                                    Ext.applyIf(c, {
+                                        maxLength: 50
+                                    });
+                                }else if(c.xtype == 'datecolumn') {
                                     Ext.applyIf(c, {
                                         format: 'Y-m-d'
                                     });