dev_auth
杨树林 5 years ago
parent 85fa848e12
commit 8b98534c39

@ -71,6 +71,7 @@ class Registration extends React.Component {
mode: 0,
region_schools: [],
admin: false,
typeysl: 0,
}
}
@ -291,7 +292,8 @@ class Registration extends React.Component {
try {
if (result.data.my_teams.length === 0) {
this.setState({
type: 1,
type: 6,
typeysl: 1,
data: result.data.my_teams,
count: result.data.count,
competition_teams: result.data.competition_teams,
@ -303,6 +305,7 @@ class Registration extends React.Component {
} else {
this.setState({
type: 6,
typeysl: 0,
data: result.data.my_teams,
count: result.data.count,
competition_teams: result.data.competition_teams,
@ -314,7 +317,8 @@ class Registration extends React.Component {
}
} catch (e) {
this.setState({
type: 1,
type: 6,
typeysl: 1,
data: result.data.my_teams,
count: result.data.count,
competition_teams: result.data.competition_teams,
@ -855,7 +859,7 @@ class Registration extends React.Component {
render() {
const {page, admin, mode, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited, teamutiple_limited, members_count} = this.state;
const {page, admin, typeysl, mode, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited, teamutiple_limited, members_count} = this.state;
return (
<div className="newMain clearfix newMainybot">
@ -957,7 +961,7 @@ class Registration extends React.Component {
</div>
: ""}
{
type === 1 ?
type === 1 || typeysl === 1 ?
<RegisNodata {...this.props} {...this.state} ></RegisNodata>
:
""

Loading…
Cancel
Save