Przeglądaj źródła

成绩发布列表增加 发布状态 控制

zhuth 7 lat temu
rodzic
commit
8d1ac132dc
1 zmienionych plików z 23 dodań i 0 usunięć
  1. 23 0
      frontend/pc-web/app/view/Interaction/score/List.js

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

@@ -60,6 +60,23 @@ Ext.define('school.view.interaction.score.List', {
                 name: 'si_examdate',
                 fieldLabel: '考试时间',
                 columnWidth: 0.5
+            }, {
+                xtype: 'combobox',
+                name: 'si_publish',
+                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: {
@@ -154,6 +171,12 @@ Ext.define('school.view.interaction.score.List', {
                     text: '班级',
                     dataIndex: 'si_class',
                     width: 120
+                }, {
+                    text: '发布状态',
+                    dataIndex: 'si_publish',
+                    renderer: function(v) {
+                        return v == 1 ? '已发布' : '未发布'
+                    }
                 }],
                 supColumns: [{
                     text: '学生编号',