From 8414c6a3b2f7c05f16683bffcf3f32111ed66549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 21 Oct 2019 23:15:52 +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 --- .../competition/competmodal/PersonModal.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/competition/competmodal/PersonModal.js b/public/react/src/modules/competition/competmodal/PersonModal.js index e0912dc3d..656bd41eb 100644 --- a/public/react/src/modules/competition/competmodal/PersonModal.js +++ b/public/react/src/modules/competition/competmodal/PersonModal.js @@ -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 { ) - const persondiv2Items = test3.map((item, index) => + var persondiv2Items = []; + if (member_ids) { + persondiv2Items = member_ids.map((item, index) => 已加入其他战队

); + } const persondiv2 = (
{/*this.state.loading2*/} @@ -582,7 +594,7 @@ class PersonModal extends Component { this.studentsonChange(e)} value={this.state.keywordstudents}