|
|
@@ -12,10 +12,10 @@ Ext.define('school.view.interaction.homework.Release', {
|
|
|
_title: '作业发布',
|
|
|
_idField: 'task_id',
|
|
|
_codeField: null,
|
|
|
- // _readUrl: 'http://10.1.80.47:9520/api/school/homework/read',
|
|
|
- _readUrl: '/api/school/homework/read',
|
|
|
- // _saveUrl: 'http://10.1.80.180:9520/api/school/homework/save',
|
|
|
- _saveUrl: '/api/school/homework/save',
|
|
|
+ _readUrl: 'http://10.1.80.180:9520/api/school/homework/read',
|
|
|
+ // _readUrl: '/api/school/homework/read',
|
|
|
+ _saveUrl: 'http://10.1.80.180:9520/api/school/homework/save',
|
|
|
+ // _saveUrl: '/api/school/homework/save',
|
|
|
_deleteUrl: '/api/school/homework/delete',
|
|
|
initId: 0,
|
|
|
initComponent: function () {
|
|
|
@@ -27,6 +27,12 @@ Ext.define('school.view.interaction.homework.Release', {
|
|
|
}, {
|
|
|
xtype: "textfield",
|
|
|
name: "task_creator",
|
|
|
+ fieldLabel: "发布人id",
|
|
|
+ defaultValue: school.util.BaseUtil.getCurrentUser().id,
|
|
|
+ hidden: true
|
|
|
+ }, {
|
|
|
+ xtype: "textfield",
|
|
|
+ name: "creator",
|
|
|
fieldLabel: "发布人",
|
|
|
defaultValue: school.util.BaseUtil.getCurrentUser().username,
|
|
|
readOnly: true
|
|
|
@@ -119,6 +125,7 @@ Ext.define('school.view.interaction.homework.Release', {
|
|
|
toolBtns: [{
|
|
|
xtype: 'button',
|
|
|
text: '发布',
|
|
|
+ hidden: true,
|
|
|
bind: {
|
|
|
hidden: '{!task_id}'
|
|
|
},
|