|
|
@ -104,11 +104,19 @@ class PersonModal extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
myuser: this.props.user,
|
|
|
|
myuser: this.props.user,
|
|
|
|
mydatas: data,
|
|
|
|
mydatas: data,
|
|
|
|
polls_nametest: polls_nametests
|
|
|
|
polls_nametest: polls_nametests,
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
GetenrollmentAPI: this.props.GetenrollmentAPI,
|
|
|
|
GetenrollmentAPI: this.props.GetenrollmentAPI,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
addonAfter: polls_nametests.length,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -148,7 +156,6 @@ class PersonModal extends Component {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
//创建战队
|
|
|
|
//创建战队
|
|
|
|
Createateam = () => {
|
|
|
|
Createateam = () => {
|
|
|
|
debugger
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (this.state.polls_nametest.length === 0) {
|
|
|
|
if (this.state.polls_nametest.length === 0) {
|
|
|
|
this.props.showNotification(`请输入您的战队名称,最多不超过60个字符`);
|
|
|
|
this.props.showNotification(`请输入您的战队名称,最多不超过60个字符`);
|
|
|
@ -862,6 +869,10 @@ class PersonModal extends Component {
|
|
|
|
member_ids, mydatas, booltech, boolstud, GetenrollmentAPI, Thecurrentnumberbool,
|
|
|
|
member_ids, mydatas, booltech, boolstud, GetenrollmentAPI, Thecurrentnumberbool,
|
|
|
|
Thecurrentnumberboolstu, Thecurrentnumberstu
|
|
|
|
Thecurrentnumberboolstu, Thecurrentnumberstu
|
|
|
|
} = this.state;
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
|
|
|
teacher_staff,
|
|
|
|
|
|
|
|
member_staff
|
|
|
|
|
|
|
|
} = this.props;
|
|
|
|
//Modal
|
|
|
|
//Modal
|
|
|
|
//keyboard是否支持键盘 esc 关闭
|
|
|
|
//keyboard是否支持键盘 esc 关闭
|
|
|
|
//closable 是否显示右上角的关闭按钮
|
|
|
|
//closable 是否显示右上角的关闭按钮
|
|
|
@ -1291,112 +1302,129 @@ class PersonModal extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*导师*/}
|
|
|
|
{/*导师*/}
|
|
|
|
<div style={{
|
|
|
|
{
|
|
|
|
display: "flex",
|
|
|
|
teacher_staff === undefined || teacher_staff === null ?
|
|
|
|
flexDirection: "initial",
|
|
|
|
"" :
|
|
|
|
marginTop: "14px",
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<div>
|
|
|
|
<p style={{
|
|
|
|
<div style={{
|
|
|
|
width: "59px",
|
|
|
|
display: "flex",
|
|
|
|
marginTop: "9px",
|
|
|
|
flexDirection: "initial",
|
|
|
|
fontSize: "16px",
|
|
|
|
marginTop: "14px",
|
|
|
|
}}>
|
|
|
|
}}>
|
|
|
|
|
|
|
|
<p style={{
|
|
|
|
|
|
|
|
width: "59px",
|
|
|
|
|
|
|
|
marginTop: "9px",
|
|
|
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<span style={{
|
|
|
|
<span style={{
|
|
|
|
color: "#f5222d",
|
|
|
|
color: "#f5222d",
|
|
|
|
fontSize: "16px",
|
|
|
|
fontSize: "16px",
|
|
|
|
}}>*</span>
|
|
|
|
}}>*</span>
|
|
|
|
导师:
|
|
|
|
导师:
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.yslzxueshiskmcd .ant-input{
|
|
|
|
.yslzxueshiskmcd .ant-input{
|
|
|
|
height: 40px !important;
|
|
|
|
height: 40px !important;
|
|
|
|
width: 487px !important;
|
|
|
|
width: 487px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
{/*<div className={"yslzxueshiskmcd2"}>*/}
|
|
|
|
{/*<div className={"yslzxueshiskmcd2"}>*/}
|
|
|
|
<Dropdown overlay={cpersondiv1} getPopupContainer={trigger => trigger.parentNode}
|
|
|
|
|
|
|
|
visible={this.state.person1}>
|
|
|
|
<Dropdown overlay={cpersondiv1} getPopupContainer={trigger => trigger.parentNode}
|
|
|
|
<Input
|
|
|
|
visible={this.state.person1}>
|
|
|
|
className="yslzxueshiskmcd"
|
|
|
|
<Input
|
|
|
|
placeholder="请输入老师姓名的任意关键字进行搜索,可以后续在添加"
|
|
|
|
className="yslzxueshiskmcd"
|
|
|
|
onPressEnter={this.startSearch}
|
|
|
|
placeholder="请输入老师姓名的任意关键字进行搜索,可以后续在添加"
|
|
|
|
onFocus={this.inputOnFocus}
|
|
|
|
onPressEnter={this.startSearch}
|
|
|
|
onBlur={this.inputOnBlur}
|
|
|
|
onFocus={this.inputOnFocus}
|
|
|
|
onChange={(e) => this.teacheronChange(e)}
|
|
|
|
onBlur={this.inputOnBlur}
|
|
|
|
value={this.state.keywordteachers}
|
|
|
|
onChange={(e) => this.teacheronChange(e)}
|
|
|
|
suffix={
|
|
|
|
value={this.state.keywordteachers}
|
|
|
|
<i class="iconfont icon-sousuo"
|
|
|
|
suffix={
|
|
|
|
onClick={() => this.Getteacherdata(keywordteachers, team_idteachers, teacher_ids)}/>
|
|
|
|
<i class="iconfont icon-sousuo"
|
|
|
|
|
|
|
|
onClick={() => this.Getteacherdata(keywordteachers, team_idteachers, teacher_ids)}/>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
booltech === true ?
|
|
|
|
|
|
|
|
<p style={{marginLeft: "53px", color: "#FF954C", minHeight: "14px"}}>该老师已添加</p>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<div style={{marginLeft: "53px", minHeight: "14px", height: "14px"}}></div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
booltech === true ?
|
|
|
|
|
|
|
|
<p style={{marginLeft: "53px", color: "#FF954C", minHeight: "14px"}}>该老师已添加</p>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<div style={{marginLeft: "53px", minHeight: "14px", height: "14px"}}></div>
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*队员*/}
|
|
|
|
{/*队员*/}
|
|
|
|
<div style={{
|
|
|
|
{
|
|
|
|
display: "flex",
|
|
|
|
member_staff === undefined || member_staff === null ?
|
|
|
|
flexDirection: "initial",
|
|
|
|
"" :
|
|
|
|
|
|
|
|
<div>
|
|
|
|
}}>
|
|
|
|
<div style={{
|
|
|
|
<p style={{
|
|
|
|
display: "flex",
|
|
|
|
width: "59px",
|
|
|
|
flexDirection: "initial",
|
|
|
|
marginTop: "9px",
|
|
|
|
|
|
|
|
fontSize: "16px",
|
|
|
|
}}>
|
|
|
|
}}>
|
|
|
|
<p style={{
|
|
|
|
|
|
|
|
width: "59px",
|
|
|
|
|
|
|
|
marginTop: "9px",
|
|
|
|
|
|
|
|
fontSize: "16px",
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<span style={{
|
|
|
|
<span style={{
|
|
|
|
color: "#f5222d",
|
|
|
|
color: "#f5222d",
|
|
|
|
fontSize: "16px",
|
|
|
|
fontSize: "16px",
|
|
|
|
}}>*</span>
|
|
|
|
}}>*</span>
|
|
|
|
队员:
|
|
|
|
队员:
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.yslzxueshiskmcd .ant-input{
|
|
|
|
.yslzxueshiskmcd .ant-input{
|
|
|
|
height: 40px !important;
|
|
|
|
height: 40px !important;
|
|
|
|
width: 487px !important;
|
|
|
|
width: 487px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<Dropdown overlay={persondiv2} getPopupContainer={trigger => trigger.parentNode}
|
|
|
|
<Dropdown overlay={persondiv2} getPopupContainer={trigger => trigger.parentNode}
|
|
|
|
visible={this.state.person2}>
|
|
|
|
visible={this.state.person2}>
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
|
className="yslzxueshiskmcd"
|
|
|
|
className="yslzxueshiskmcd"
|
|
|
|
placeholder="请输入想要队员姓名的任意关键字进行搜索"
|
|
|
|
placeholder="请输入想要队员姓名的任意关键字进行搜索"
|
|
|
|
onPressEnter={this.startSearch2}
|
|
|
|
onPressEnter={this.startSearch2}
|
|
|
|
onFocus={this.inputOnFocus2}
|
|
|
|
onFocus={this.inputOnFocus2}
|
|
|
|
onBlur={this.inputOnBlur2}
|
|
|
|
onBlur={this.inputOnBlur2}
|
|
|
|
onChange={(e) => this.studentsonChange(e)}
|
|
|
|
onChange={(e) => this.studentsonChange(e)}
|
|
|
|
value={this.state.keywordstudents}
|
|
|
|
value={this.state.keywordstudents}
|
|
|
|
suffix={
|
|
|
|
suffix={
|
|
|
|
<i class="iconfont icon-sousuo "
|
|
|
|
<i class="iconfont icon-sousuo "
|
|
|
|
onClick={() => this.Getstudentsdata(keywordstudents, team_idstudents, student_ids)}/>
|
|
|
|
onClick={() => this.Getstudentsdata(keywordstudents, team_idstudents, student_ids)}/>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
boolstud === true ?
|
|
|
|
|
|
|
|
<p style={{marginLeft: "53px", color: "#FF954C", minHeight: "18px"}}>该队员已添加</p>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<div style={{marginLeft: "53px", minHeight: "18px", height: "18px"}}></div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
boolstud === true ?
|
|
|
|
|
|
|
|
<p style={{marginLeft: "53px", color: "#FF954C", minHeight: "18px"}}>该队员已添加</p>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<div style={{marginLeft: "53px", minHeight: "18px", height: "18px"}}></div>
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{/*表格*/}
|
|
|
|
{/*表格*/}
|
|
|
|
<div style={{marginLeft: "53px", border: "1px solid #E0E0E0"}}>
|
|
|
|
<div style={{marginLeft: "53px", border: "1px solid #E0E0E0"}}>
|
|
|
|
{/*<PersonModaltion ></PersonModaltion>*/}
|
|
|
|
{/*<PersonModaltion ></PersonModaltion>*/}
|
|
|
|