/** * 设备参数列表 */ Ext.define('school.view.setting.device.List', { extend: 'school.view.core.base.BasePanel', xtype: 'setting-device-list', controller: 'setting-device-list', // dataUrl: 'http://10.1.80.47:9520/api/device/device/list', dataUrl: '/api/device/device/list', _title: '设备参数', caller: null, pathKey: null, initComponent: function() { var me = this; Ext.apply(this, { searchField: [{ xtype: 'textfield', name: 'deviceName', fieldLabel: '名称' }], gridConfig: { addTitle: '设备参数', addXtype: null, idField: 'id', codeField: null, detailField: null, dataUrl: me.dataUrl, caller: null, rootProperty: 'data.list', totalProperty: 'data.total', actionColumn: [], selModel: { type: 'cellmodel' }, disableDetail: true, hiddenTools: false, toolBtns: [{ xtype: 'button', text: '新增', handler: 'onAddClick' }], columns : [{ text: '设备ID', dataIndex: 'deviceId' }, { text: '设备IP', dataIndex: 'deviceIp', width: 120 }, { text: '设备名称', dataIndex: 'deviceName', width: 120 }, { text: '用户', dataIndex: 'deviceUser' }, { text: '密码', dataIndex: 'devicePassword' }, { text: '端口', dataIndex: 'devicePort' }, { text: '备注', dataIndex: 'deviceRemark', width: 150 }, { xtype:'actioncolumn', width:70, dataIndex:'actioncolumn', text:'操作', align: 'center', items: [{ tooltip: '编辑', iconCls: 'x-fa fa-pencil fa-fw' },{ iconCls:'x-fa fa-trash-o fa-fw', tooltip: '删除' }], listeners: { click: 'onActionClick' } }] }, }); this.callParent(arguments); } });