From 5650ef7b156e5fa44530049bf856be3b3a05d5f2 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 8 Oct 2019 14:30:23 +0800 Subject: [PATCH 1/3] checkAllValue --- public/react/src/modules/courses/members/studentsList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 5496dda01..a30f63464 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -302,7 +302,8 @@ class studentsList extends Component{ } componentDidUpdate(prevProps) { if (prevProps.match.params.course_group_id != this.props.match.params.course_group_id) { - this.setState({checkBoxValues: []}) + this.setState({checkBoxValues: [], checkAllValue: false }) + this.fetchAll(1) } // 加载了2次 From b66f5a67ad77e21e7da2d80cb2745403db3b48d9 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 8 Oct 2019 14:40:22 +0800 Subject: [PATCH 2/3] duration: 2, --- public/react/src/AppConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index bc7fa8070..5efab1ac2 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -212,7 +212,7 @@ function initOnlineOfflineListener() { $(window).bind("online", () => { notification.destroy() notification.success({ - duration: null, + duration: 2, message: '网络恢复正常', description: '网络恢复正常,感谢使用。', From e1c730d1e367f63a35ef3ac537e65dcbc67317dc Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 8 Oct 2019 16:10:53 +0800 Subject: [PATCH 3/3] tab --- public/react/src/modules/courses/busyWork/commonWork.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js index f8042d476..f6a989354 100644 --- a/public/react/src/modules/courses/busyWork/commonWork.js +++ b/public/react/src/modules/courses/busyWork/commonWork.js @@ -33,6 +33,7 @@ class commonWork extends Component{ modalsBottomval:"", modalCancel:"", mainList:undefined, + selectedKeys: 'all', order:"", page:1, search:"", @@ -77,7 +78,9 @@ class commonWork extends Component{ componentDidUpdate(prevProps, prevState) { if (prevProps.match.path != this.props.match.path) { this.clearSelection() - this._getList() + this.setState({ selectedKeys: 'all', order: '' }, () => { + this._getList() + }) } } @@ -143,6 +146,7 @@ class commonWork extends Component{ this.clearSelection() this.setState({ order:e.key==="all"?"":e.key, + selectedKeys: e.key, page:1, isSpin:true, checkBoxValues:[], @@ -403,7 +407,7 @@ class commonWork extends Component{ } secondRowBotton={