{"hidden":false,"children":[{"configs":{"itemId":"module"},"expanded":true,"children":[{"configs":{"layout":"fit","itemId":"viewport1"},"expanded":true,"children":[{"configs":{"itemId":"grid1"},"expanded":true,"children":[{"configs":{"itemId":"store","remoteSort":"true","normalName":"logStore","sorters":"{property:'LOG_DATE',direction:'DESC'}","url":"m?xwl=admin/log/select","timeout":"300000"},"expanded":true,"children":[],"type":"store","events":{"beforeload":"operation.params = Wb.getValue(app.tbar);"}},{"configs":{"itemId":"tbar"},"expanded":true,"children":[{"configs":{"itemId":"fromDate","width":"100"},"expanded":false,"children":[],"type":"date","events":{"select":"app.load();"}},{"configs":{"itemId":"toLabel","xtype":"tbtext","text":"至"},"expanded":false,"children":[],"type":"item"},{"configs":{"itemId":"toDate","width":"100"},"expanded":false,"children":[],"type":"date","events":{"select":"app.load();"}},{"configs":{"itemId":"userName","emptyText":"用户名称","width":"130"},"expanded":false,"children":[],"type":"text"},{"configs":{"itemId":"ip","emptyText":"IP地址"},"expanded":false,"children":[],"type":"text"},{"configs":{"itemId":"logType","emptyText":"类型","keyName":"logType","width":"70"},"expanded":false,"children":[],"type":"combo","events":{"select":"app.load();"}},{"configs":{"itemId":"msg","emptyText":"信息","flex":"1"},"expanded":false,"children":[],"type":"text"},{"configs":{"itemId":"findBtn","tooltip":"查询指定条件的日志信息","iconCls":"seek_icon"},"expanded":false,"children":[],"type":"item","events":{"click":"app.load();"}},{"configs":{"itemId":"resetBtn","tooltip":"重置查询条件","iconCls":"undo_icon"},"expanded":false,"children":[],"type":"item","events":{"click":"Wb.reset([app.userName, app.ip, app.logType, app.msg]);\napp.load();"}}],"type":"toolbar"}],"type":"grid"}],"type":"viewport","events":{"afterrender":"app.finalize();"}}],"type":"module","events":{"initialize":"Wb.apply(app, {\n  load: function() {\n    app.logStore.load();\n  },\n  monEnter: function() {\n    app.tbar.el.on('keydown', function(e) {\n      if (e.getKey() == e.ENTER)\n        app.load();\n    });\n  },\n  finalize: function() {\n    var d = new Date();\n    app.monEnter();\n    app.fromDate.setValue(Ext.Date.add(d, Ext.Date.MONTH, -1));\n    app.toDate.setValue(Ext.Date.add(d, Ext.Date.DAY, 1));\n    app.load();\n  }\n});"}}],"roles":{},"title":"系统日志","iconCls":"db_form_icon","inframe":false,"pageLink":""}