|
|
@@ -5,7 +5,7 @@ Ext.define('school.view.basic.staff.StaffList', {
|
|
|
extend: 'school.view.core.base.BasePanel',
|
|
|
xtype: 'basic-staff-stafflist',
|
|
|
|
|
|
- dataUrl: '/teacher/list',
|
|
|
+ dataUrl: '/api/school/teacher/list',
|
|
|
initComponent: function() {
|
|
|
var me = this;
|
|
|
Ext.apply(this, {
|
|
|
@@ -68,8 +68,12 @@ Ext.define('school.view.basic.staff.StaffList', {
|
|
|
text: '新增'
|
|
|
}],
|
|
|
columns : [{
|
|
|
+ text: 'ID',
|
|
|
+ dataIndex: 'teacher_id',
|
|
|
+ hidden: true
|
|
|
+ }, {
|
|
|
text: '工号',
|
|
|
- dataIndex: 'code',
|
|
|
+ dataIndex: 'teacher_number',
|
|
|
width: 150
|
|
|
}, {
|
|
|
text: '绑定手机号',
|
|
|
@@ -77,23 +81,28 @@ Ext.define('school.view.basic.staff.StaffList', {
|
|
|
width: 120
|
|
|
}, {
|
|
|
text: '姓名',
|
|
|
- dataIndex: 'name',
|
|
|
+ dataIndex: 'teacher_name',
|
|
|
width: 120
|
|
|
}, {
|
|
|
- text: '职位',
|
|
|
- dataIndex: 'job',
|
|
|
- width: 120
|
|
|
+ text: '性别',
|
|
|
+ dataIndex: 'teacher_sex',
|
|
|
+ renderer: function(v, m, r) {
|
|
|
+ return v == 1 ? '男' : (v == 0 ? '女' : '未知');
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '工龄',
|
|
|
+ dataIndex: 'teacher_working_age'
|
|
|
}, {
|
|
|
text: '是否开通',
|
|
|
dataIndex: 'open'
|
|
|
}, {
|
|
|
text: '状态',
|
|
|
- dataIndex: 'status'
|
|
|
+ dataIndex: 'teacher_status'
|
|
|
}],
|
|
|
listeners: {
|
|
|
itemclick: function(view, record, item, index, e, eOpts) {
|
|
|
- school.util.BaseUtil.openTab('basic-staff-staffdetail', '教职工信息', 'basic-staff-staffdetail'+record.get('id'), {
|
|
|
- initId: record.get('id')
|
|
|
+ school.util.BaseUtil.openTab('basic-staff-staffdetail', '教职工信息', 'basic-staff-staffdetail'+record.get('teacher_id'), {
|
|
|
+ initId: record.get('teacher_id')
|
|
|
});
|
|
|
}
|
|
|
}
|