Browse Source

出入校记录类型renderer

zhuth 6 years ago
parent
commit
36cdfab211
1 changed files with 4 additions and 1 deletions
  1. 4 1
      frontend/pc-web/app/view/Interaction/access/List.js

+ 4 - 1
frontend/pc-web/app/view/Interaction/access/List.js

@@ -81,7 +81,10 @@ Ext.define('school.view.interaction.access.List', {
                     hidden: true
                 }, {
                     text: '类型',
-                    dataIndex: 'record_type'
+                    dataIndex: 'record_type',
+                    renderer: function(v,m,r) {
+                        return v == 1 ? '入校' : (v == 2 ? '出校' : '其他')
+                    }
                 }, {
                     text: '学号',
                     dataIndex: 'stu_number',