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

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

Loading…
Cancel
Save