浏览代码

日期组件不允许输入

zhuth 7 年之前
父节点
当前提交
9b8d46f0cd
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      frontend/saas-web/app/util/FormUtil.js

+ 4 - 0
frontend/saas-web/app/util/FormUtil.js

@@ -50,6 +50,7 @@ Ext.define('saas.util.FormUtil', {
                         
                         if(item.xtype == 'datefield') {
                             Ext.applyIf(item, {
+                                editable: false,
                                 format: 'Y-m-d'
                             });
                         }
@@ -122,6 +123,9 @@ Ext.define('saas.util.FormUtil', {
                                         Ext.apply(editor, {
                                             format: 'Y-m-d'
                                         });
+                                        Ext.applyIf(editor, {
+                                            editable: false
+                                        });
                                     }
                                 }
                             });