123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /**
- * 通知公告列表
- */
- Ext.define('saas.view.message.NoticeList', {
- extend: 'Ext.container.Container',
- xtype: 'sys-notice-list',
- viewModel: {
- stores: {
- list: {
- model: 'saas.model.message.Notice',
- autoLoad: true
- }
- }
- },
- controller: 'sys-notice-list',
- layout: 'border',
- items: [{
- xtype: 'toolbar',
- margin: '0 0 12 0',
- padding: '10 4',
- region: 'north',
- items: [{
- xtype: 'tbfill'
- }, {
- text: '新增',
- handler: 'handleAdd'
- }]
- }, {
- region: 'center',
- layout: 'fit',
- items: [{
- xtype: 'grid',
- padding: '8 12',
- border: true,
- bind: {
- store: '{list}'
- },
- columns: [{
- text: '操作',
- width: 80,
- align: 'center',
- focusCls: null,
- resizable: false,
- draggable: false,
- xtype: 'actioncolumn',
- items: [{
- iconCls: 'x-fa fa-pencil',
- tooltip: '修改',
- handler: 'handleEdit'
- }, {
- iconCls: 'x-fa fa-trash-o fa-fw',
- tooltip: '删除',
- handler: 'handleDelete'
- }]
- }, {
- text: '级别',
- focusCls: null,
- resizable: false,
- draggable: false,
- width: 60,
- align: 'center',
- dataIndex: 'levelDesc'
- }, {
- text: '内容',
- focusCls: null,
- resizable: false,
- draggable: false,
- flex: 1,
- dataIndex: 'content'
- }, {
- xtype: 'datecolumn',
- text: '发布时间',
- focusCls: null,
- resizable: false,
- draggable: false,
- width: 140,
- align: 'center',
- dataIndex: 'createTime',
- format: 'Y-m-d H:i'
- }, {
- text: '发布人',
- focusCls: null,
- resizable: false,
- draggable: false,
- width: 80,
- dataIndex: 'creatorName'
- }, {
- text: '上线',
- xtype: 'checkcolumn',
- dataIndex: 'status',
- switch: true,
- width: 90,
- listeners: {
- checkchange: 'onCheckChange'
- }
- }]
- }]
- }]
- });
|