| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- /**
- * 学校通知
- */
- Ext.define('school.view.interaction.notice.SchoolNotice', {
- extend: 'school.view.core.form.FormPanel',
- xtype: 'interaction-notice-schoolnotice',
- // controller: 'purchase-purchase-formpanel',
- // viewModel: 'purchase-purchase-formpanel',
- //字段属性
- _title: '学校通知',
- _idField: 'id',
- _codeField: 'pu_code',
- _statusField: 'pu_status',
- _statusCodeField: 'pu_statuscode',
- _auditmanField: 'pu_auditman',
- _auditdateField: 'pu_auditdate',
- _relationColumn: 'pd_puid',
- _readUrl: '/api/purchase/purchase/read',
- _saveUrl: '/api/purchase/purchase/save',
- _auditUrl: '/api/purchase/purchase/audit',
- _unAuditUrl: '/api/purchase/purchase/unAudit',
- _deleteUrl: '/api/purchase/purchase/delete',
- _turnInUrl: '/api/purchase/purchase/turnProdin',
- initId: 0,
- initComponent: function () {
- Ext.apply(this, {
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id'
- }, {
- xtype: "textfield",
- name: "Publisher",
- fieldLabel: "发布人",
- columnWidth: 0.5
- }, {
- xtype: 'textfield',
- name: 'time',
- fieldLabel: '发布时间',
- columnWidth: 0.5
- }, {
- xtype: 'combobox',
- name: 'Notifications',
- fieldLabel: '通知人',
- columnWidth: 0.5,
- queryMode: 'local',
- displayField: 'name',
- valueField: 'abbr',
- forceSelection: 'true',//阻止输入非列表内容
- store:Ext.create('Ext.data.Store', {
- fields: ['abbr', 'name'],
- data : [
- {"abbr":"AL", "name":"Alabama"},
- {"abbr":"AK", "name":"Alaska"},
- {"abbr":"AZ", "name":"Arizona"}
- ]
- })
- }, {
- xtype: "textfield",
- name: "title",
- fieldLabel: "标题",
- columnWidth: 1
- }, {
- xtype: "textareafield",//文本域
- name: 'content',
- fieldLabel: "内容",
- columnWidth: 1,
- }],
- toolBtns: [{
- xtype: 'button',
- text: '发布',
- }]
- });
- this.callParent();
- }
- });
|