From 8007cf0145aae8bd55c7de90b245d6890faedc07 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, 24 Oct 2019 18:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/competition/Registration.js | 5 +- .../competition/comcss/competition.css | 25 +++ .../competition/competmodal/PersonModal.js | 195 +++++++++++++----- 3 files changed, 178 insertions(+), 47 deletions(-) diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index a32b36147..d599fdf3d 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -64,6 +64,7 @@ class Registration extends React.Component { pint: 0, competition_name: undefined, mutiple_limited: false, + teamutiple_limited: false, } } @@ -117,6 +118,7 @@ class Registration extends React.Component { teacher_staff: result.data.teacher_staff, member_staff: result.data.member_staff, mutiple_limited: result.data.member_staff.mutiple_limited, + teamutiple_limited: result.data.teacher_staff.mutiple_limited }) if (result.data.enroll_ended === true) { this.setState({ @@ -631,7 +633,7 @@ class Registration extends React.Component { render() { - const {page, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited} = this.state; + const {page, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited, teamutiple_limited} = this.state; return (
{item.name === undefined || item.name === null || item.name === "" ? "--" : item.name}
-{item.identity === undefined || item.identity === null || item.identity === "" ? "--" : item.identity}
-{item.school_name === undefined || item.school_name === null || item.school_name === "" ? "--" : item.school_name}
+ + {item.name === undefined || item.name === null || item.name === "" ? + -- + : + {item.name} + } + {item.identity === undefined || item.identity === null || item.identity === "" ? +--
+ : + {item.identity}} + {item.school_name === undefined || item.school_name === null || item.school_name === "" ? + +--
+ : + {item.school_name} + } + + { + this.props.teamutiple_limited === undefined || this.props.teamutiple_limited === null ? +{""}
+ : + ( + this.props.teamutiple_limited === true ? +{item.enrollable === false ? "已加入其他战队" : ""}
+ : +{""}
+ ) + + } + + + + ); } @@ -953,24 +1023,62 @@ class PersonModal extends Component { }} onClick={() => this.getdatacpersondiv1Items2(item)} > -{item.name === undefined || item.name === null || item.name === "" ? "--" : item.name}
-{item.identity === undefined || item.identity === null || item.identity === "" ? "--" : item.identity}
-{item.school_name === undefined || item.school_name === null || item.school_name === "" ? "--" : item.school_name}
+ + {item.name === undefined || item.name === null || item.name === "" ? + -- + : + {item.name} + } + {item.student_id === undefined || item.student_id === null || item.student_id === "" ? +--
+ : + {"学号:" + item.student_id}} + {item.school_name === undefined || item.school_name === null || item.school_name === "" ? + +--
+ : + {item.school_name} + } + { this.props.mutiple_limited === undefined || this.props.mutiple_limited === null ?
- {/*