Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r33919 -r33935 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 33919) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 33935) @@ -2862,28 +2862,12 @@ trigger2Cls: 'x-form-search-trigger', listeners: { render: function (c) { - var clickCount = 0; c.getEl().on('keypress', function (e) { - if (clickCount == 0) { - setTimeout(function () { - Ext4.getCmp('pageNow').setValue(1); - waitPackingTaskStore.load(); - clickCount = 0; - }, 1000); - clickCount++; + if (e.getKey() == 13) { + Ext4.getCmp('pageNow').setValue(1); + waitPackingTaskStore.load(); } }); - c.getEl().on('keydown', function (e) { - //删除键 - if (e.getKey() == 8 && clickCount == 0) { - setTimeout(function () { - Ext4.getCmp('pageNow').setValue(1); - waitPackingTaskStore.load(); - clickCount = 0; - }, 1000); - clickCount++; - } - }); } }, onTriggerClick: function () {