From a5b14fc4a24d4af55c61fd72e5e49e9491a18b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 27 Jun 2019 11:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TraineetraininginformationModal.js | 123 +++++++++++++----- .../src/modules/tpm/newshixuns/Newshixuns.js | 2 +- 2 files changed, 92 insertions(+), 33 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js index ace1ebe7b..bc51a273d 100644 --- a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js +++ b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js @@ -79,11 +79,9 @@ class TraineetraininginformationModal extends Component { return str; } render() { - var columns; console.log(83); console.log(this.props.boolgalist); - if(this.props.boolgalist&&this.props.boolgalist === false) { - columns = [ + const columns = [ { title: '关卡', dataIndex: 'number', @@ -150,9 +148,8 @@ class TraineetraininginformationModal extends Component { ), } ] - } - else { - columns = [ + + const columnss = [ { title: '关卡', dataIndex: 'number', @@ -202,7 +199,7 @@ class TraineetraininginformationModal extends Component { ), } ] - } + return (