| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * 作业发布
- */
- Ext.define('school.view.interaction.homework.Release', {
- extend: 'school.view.core.form.FormPanel',
- xtype: 'interaction-homework-release',
- controller: 'interaction-homework-release',
- // viewModel: 'purchase-purchase-formpanel',
- //字段属性
- _title: '作业发布',
- _idField: 'task_id',
- _codeField: null,
- // _readUrl: 'http://10.1.80.47:9560/homework/read',
- _readUrl: '/api/school/homework/read',
- // _saveUrl: 'http://10.1.80.47:9560/homework/save',
- _saveUrl: '/api/school/homework/save',
- _deleteUrl: '/api/school/homework/delete',
- initId: 0,
- initComponent: function () {
- Ext.apply(this, {
- defaultItems: [{
- xtype: 'hidden',
- name: 'task_id',
- fieldLabel: 'id'
- }, {
- xtype: "textfield",
- name: "task_creator",
- fieldLabel: "发布人",
- columnWidth: 0.5
- }, {
- xtype: 'datefield',
- name: 'start_date',
- fieldLabel: '开始时间',
- columnWidth: 0.5,
- defaultValue: new Date()
- }, {
- xtype: 'textfield',
- name: 'task_notifier',
- fieldLabel: '通知人',
- maxLength: 500,
- columnWidth: 0.5,
- }, {
- xtype: 'datefield',
- name: 'end_date',
- fieldLabel: '截止时间',
- columnWidth: 0.5
- }, {
- xtype: "textfield",
- name: "task_title",
- fieldLabel: "标题",
- columnWidth: 1
- }, {
- xtype: "textareafield",
- name: 'task_context',
- fieldLabel: "内容",
- columnWidth: 1,
- height: 250
- }]
- });
- this.callParent();
- }
- });
|