Browse Source

课程表发布状态列表控制

zhuth 6 years ago
parent
commit
9785de893f
1 changed files with 23 additions and 0 deletions
  1. 23 0
      frontend/pc-web/app/view/Interaction/timetable/List.js

+ 23 - 0
frontend/pc-web/app/view/Interaction/timetable/List.js

@@ -100,6 +100,23 @@ Ext.define('school.view.interaction.timetable.List', {
                     let month = now.getMonth() + 1;
                     return (month < 9) ? '第一学期' : '第二学期'
                 })()
+            }, {
+                xtype: 'combobox',
+                name: 'status',
+                fieldLabel: '发布状态',
+                displayField: 'name',
+                valueField: 'value',
+                editable: false,
+                clearable: true,
+                store: Ext.create('Ext.data.ArrayStore', {
+                    fields: ['name', 'value'],
+                    data: [
+                        ['已生效', 1],
+                        ['未生效', 0]
+                    ]
+                }),
+                minChars: 0,
+                queryMode: 'local'
             }],
         
             gridConfig: {
@@ -202,6 +219,12 @@ Ext.define('school.view.interaction.timetable.List', {
                     text: '学期',
                     dataIndex: 'termName',
                     width: 120
+                }, {
+                    text: '状态',
+                    dataIndex: 'status',
+                    renderer: function(v) {
+                        return v == '1' ? '已生效' : '未生效'
+                    }
                 }]
             },
         });