|
|
@@ -35,6 +35,12 @@ Ext.define('saas.util.FormUtil', {
|
|
|
Ext.apply(item, cusItem);
|
|
|
});
|
|
|
Ext.Array.each(items, function(item) {
|
|
|
+ if(item.xtype == 'numberfield') {
|
|
|
+ Ext.applyIf(item, {
|
|
|
+ hideTrigger: true, // 隐藏trigger
|
|
|
+ mouseWheelEnabled: false // 取消滚轮事件
|
|
|
+ });
|
|
|
+ }
|
|
|
// 设置必填
|
|
|
if(item.allowBlank==false){
|
|
|
// TODO 需要判断类型
|
|
|
@@ -51,6 +57,16 @@ Ext.define('saas.util.FormUtil', {
|
|
|
return c.dataIndex
|
|
|
});
|
|
|
|
|
|
+ Ext.Array.each(columns, function(c) {
|
|
|
+ var editor = c.editor;
|
|
|
+ if(editor && editor.xtype == 'numberfield') {
|
|
|
+ Ext.applyIf(editor, {
|
|
|
+ hideTrigger: true, // 隐藏trigger
|
|
|
+ mouseWheelEnabled: false // 取消滚轮事件
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
formModel.set('detail' + index + '.detailBindFields', cnames);
|
|
|
item.bind = {
|
|
|
store: '{detail' + index + '.detailStore}'
|