|
|
@@ -174,19 +174,26 @@ Ext.define('school.view.interaction.homework.List', {
|
|
|
}, {
|
|
|
text: '班级',
|
|
|
dataIndex: 'classz_name'
|
|
|
+ }, {
|
|
|
+ text: '学科',
|
|
|
+ dataIndex: 'subject_id',
|
|
|
+ renderer: function(v) {
|
|
|
+ let store = Ext.StoreMgr.get('store_subject');
|
|
|
+ let idx = store.findBy(function(r) {
|
|
|
+ return r.get('subject_id') == v
|
|
|
+ });
|
|
|
+ let record;
|
|
|
+ if(idx >= 0) {
|
|
|
+ record = store.getAt(idx);
|
|
|
+ return record.get('subject_name')
|
|
|
+ }else {
|
|
|
+ return v;
|
|
|
+ }
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '标题',
|
|
|
dataIndex: 'task_title',
|
|
|
- width: 120,
|
|
|
- // tdCls: 'x-detail-column',
|
|
|
- // listeners: {
|
|
|
- // click: function (view, td, row, col, e, record, tr, eOpts, event) {
|
|
|
- // let gridConfig = me.gridConfig;
|
|
|
- // school.util.BaseUtil.openTab(gridConfig.addXtype, gridConfig.addTitle + '(' + record.get('task_title') + ')', gridConfig.addXtype + '-' + record.get(gridConfig.idField), {
|
|
|
- // initId: record.get(gridConfig.idField)
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }
|
|
|
+ width: 120
|
|
|
}, {
|
|
|
text: '内容',
|
|
|
dataIndex: 'task_context',
|
|
|
@@ -205,7 +212,7 @@ Ext.define('school.view.interaction.homework.List', {
|
|
|
}, {
|
|
|
text: '发布时间',
|
|
|
dataIndex: 'publish_date',
|
|
|
- width: 120
|
|
|
+ width: 150,
|
|
|
}, ]
|
|
|
},
|
|
|
});
|
|
|
@@ -213,6 +220,7 @@ Ext.define('school.view.interaction.homework.List', {
|
|
|
},
|
|
|
|
|
|
refresh: function() {
|
|
|
+ Ext.StoreMgr.get('store_subject').load();
|
|
|
Ext.StoreMgr.get('store_grade').load();
|
|
|
Ext.StoreMgr.get('store_class').load();
|
|
|
this.items.items[0].store.load();
|