From 4ed38deeaa24b6c4d5e7e5c98308cb7b4f71cc84 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 27 Aug 2019 16:13:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E5=88=97=E8=A1=A8=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/courses/members/teacherList.js | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/public/react/src/modules/courses/members/teacherList.js b/public/react/src/modules/courses/members/teacherList.js index 06dbe74a8..e3fd4a98d 100644 --- a/public/react/src/modules/courses/members/teacherList.js +++ b/public/react/src/modules/courses/members/teacherList.js @@ -42,6 +42,7 @@ function buildColumns(that) { title: '序号', dataIndex: 'name', key: 'index', + width: 78, render: (content, item, index) => { return index + 1 // return item.isApply == true ? '' : {(that.state.page - 1) * 20 + index + 1 @@ -74,6 +75,7 @@ function buildColumns(that) { dataIndex: 'role', key: 'role', sorter: showSorter, + width: 86, // 'ascend' | 'descend' defaultSortOrder: 'ascend', sortDirections: sortDirections, @@ -160,16 +162,16 @@ function buildColumns(that) { }, }) } - if(isAdminOrTeacher && hasGraduationModule) { - columns.unshift({ - title: '', - dataIndex: 'course_member_id', - key: 'course_member_id', - render: (content, item, index) => { - return content ? : '' - } - }) - } + // if(isAdminOrTeacher && hasGraduationModule) { + // columns.unshift({ + // title: '', + // dataIndex: 'course_member_id', + // key: 'course_member_id', + // render: (content, item, index) => { + // return content ? : '' + // } + // }) + // } return columns }