dev_sync_trustie
杨树林 6 years ago
parent 39039b3a91
commit 8414c6a3b2

@ -149,6 +149,7 @@ class PersonModal extends Component {
console.log(object); console.log(object);
this.setState({ this.setState({
person2: false, person2: false,
keywordstudents: object.name
}) })
} }
//输入框事件 //输入框事件
@ -238,6 +239,13 @@ class PersonModal extends Component {
this.Getteacherdata(keywordteachers, team_idteachers, teacher_ids); this.Getteacherdata(keywordteachers, team_idteachers, teacher_ids);
} }
startSearch2 = (e) => {
console.log("startSearch2");
console.log(e);
const {keywordstudents, team_idstudents, student_ids} = this.state;
this.Getstudentsdata(keywordstudents, team_idstudents, student_ids);
}
inputOnFocus = (e) => { inputOnFocus = (e) => {
console.log("inputOnFocus"); console.log("inputOnFocus");
console.log(e); console.log(e);
@ -259,7 +267,8 @@ class PersonModal extends Component {
const { const {
addonAfter, test, test3, Numberofteammentors, Thecurrentnumber, person1, person2, addonAfter, test, test3, Numberofteammentors, Thecurrentnumber, person1, person2,
keywordteachers, team_idteachers, teacher_ids, keywordteachers, team_idteachers, teacher_ids,
keywordstudents, team_idstudents, student_ids keywordstudents, team_idstudents, student_ids,
member_ids
} = this.state; } = this.state;
//Modal //Modal
//keyboard是否支持键盘 esc 关闭 //keyboard是否支持键盘 esc 关闭
@ -361,7 +370,9 @@ class PersonModal extends Component {
</Spin> </Spin>
</div> </div>
) )
const persondiv2Items = test3.map((item, index) => var persondiv2Items = [];
if (member_ids) {
persondiv2Items = member_ids.map((item, index) =>
<a className="reglistviewdivss2 " key={index} style={{ <a className="reglistviewdivss2 " key={index} style={{
width: "100%", width: "100%",
display: "flex", display: "flex",
@ -394,6 +405,7 @@ class PersonModal extends Component {
>已加入其他战队</p> >已加入其他战队</p>
</a> </a>
); );
}
const persondiv2 = ( const persondiv2 = (
<div className={" backgroundspersondiv cpersondiv1 borders2"}> <div className={" backgroundspersondiv cpersondiv1 borders2"}>
{/*this.state.loading2*/} {/*this.state.loading2*/}
@ -582,7 +594,7 @@ class PersonModal extends Component {
<Input <Input
className="yslzxueshiskmcd" className="yslzxueshiskmcd"
placeholder="请输入想要队员姓名的任意关键字进行搜索" placeholder="请输入想要队员姓名的任意关键字进行搜索"
onPressEnter={this.startSearch} onPressEnter={this.startSearch2}
onFocus={this.inputOnFocus2} onFocus={this.inputOnFocus2}
onChange={(e) => this.studentsonChange(e)} onChange={(e) => this.studentsonChange(e)}
value={this.state.keywordstudents} value={this.state.keywordstudents}

Loading…
Cancel
Save