|
|
@@ -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, {
|
|
|
@@ -87,7 +87,7 @@ Ext.define('school.view.basic.staff.StaffList', {
|
|
|
text: '性别',
|
|
|
dataIndex: 'teacher_sex',
|
|
|
renderer: function(v, m, r) {
|
|
|
- return v == 1 ? '男' : '女';
|
|
|
+ return v == 1 ? '男' : (v == 0 ? '女' : '未知');
|
|
|
}
|
|
|
}, {
|
|
|
text: '工龄',
|
|
|
@@ -101,8 +101,8 @@ Ext.define('school.view.basic.staff.StaffList', {
|
|
|
}],
|
|
|
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')
|
|
|
});
|
|
|
}
|
|
|
}
|