From 306240a2c55b44996f12d9966945da97af5eb7df Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 19 Jul 2019 18:33:51 +0800 Subject: [PATCH 1/3] did --- public/react/src/modules/user/usersInfo/Infos.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/user/usersInfo/Infos.js b/public/react/src/modules/user/usersInfo/Infos.js index 49e84efa7..a76d98628 100644 --- a/public/react/src/modules/user/usersInfo/Infos.js +++ b/public/react/src/modules/user/usersInfo/Infos.js @@ -63,6 +63,10 @@ class Infos extends Component{ login:this.props.current_user.login }) } + } else { + if (prevProps.match.params.username != this.props.match.params.username) { + this.getInfo(this.props.match.params.username); + } } } From 99d113cf3b8650590446ef2dfe7c496e1c975bad Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 19 Jul 2019 18:34:05 +0800 Subject: [PATCH 2/3] disabeld --- public/react/src/modules/user/account/AccountBasicEdit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/user/account/AccountBasicEdit.js b/public/react/src/modules/user/account/AccountBasicEdit.js index 8221bae59..5e2c1213c 100644 --- a/public/react/src/modules/user/account/AccountBasicEdit.js +++ b/public/react/src/modules/user/account/AccountBasicEdit.js @@ -424,8 +424,8 @@ class AccountBasic extends Component { }], })( - - + + )} From bcd05a60a360a3cabe6a8c316f7e168375c08a06 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 20 Jul 2019 11:24:41 +0800 Subject: [PATCH 3/3] 0 --- public/react/src/modules/courses/css/Courses.css | 5 +++++ .../graduation/tasks/GraduationTasksappraiseMainEditor.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css index ff5ad3e7e..5766c571c 100644 --- a/public/react/src/modules/courses/css/Courses.css +++ b/public/react/src/modules/courses/css/Courses.css @@ -949,6 +949,11 @@ kbd, samp { font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; } + +/* 表格间距太大 */ +.ant-table-tbody>tr>td, .ant-table-thead>tr>th { + padding: 16px 0px; +} /* FORM START */ .ant-form label{ /* 为了覆盖antd的样式,这里使用了important,TODO */ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseMainEditor.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseMainEditor.js index dc87c9272..24fdd75cf 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseMainEditor.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseMainEditor.js @@ -72,7 +72,7 @@ class GraduationTasksappraiseMainEditor extends Component{ } clearInputs = () => { this.setState({ - score: 0, + score: undefined, same_score: false, fileList: [] })