fixed 竞赛报名搜索用户增加mail和身份

This commit is contained in:
xiaoxiaoqiong 2022-07-13 18:23:39 +08:00
parent 66da0266fc
commit c0a2de6b13
4 changed files with 16 additions and 13 deletions

View File

@ -50,7 +50,7 @@ function Setmembers({ Membersshow,setClose,HeaderDetail, StaffDetail,setMembers,
}) })
setTeams(datas) setTeams(datas)
}, []) }, [])
//查找学生 //查找学生
async function getStudents() { async function getStudents() {
@ -86,23 +86,24 @@ function Setmembers({ Membersshow,setClose,HeaderDetail, StaffDetail,setMembers,
setTeachers(data.teachers) setTeachers(data.teachers)
} }
} }
//提交数据 //提交数据
async function submitTeam() { async function submitTeam() {
let member_ids: any = []; let member_ids: any = [];
let teacher_ids: any = []; let teacher_ids: any = [];
let gitlink_users:any=[]; let gitlink_users:any=[];
Teams && Teams.map((item: any, index: any) => { Teams && Teams.map((item: any, index: any) => {
if (item.is_teacher) { // if (item.is_teacher) {
teacher_ids.push(item.id) // teacher_ids.push(item.id)
} else { // } else {
member_ids.push(item.id) // member_ids.push(item.id)
} // }
gitlink_users.push({ gitlink_users.push({
login: item.login, login: item.login,
lastname:item.lastname, lastname:item.lastname,
nickname:item.nickname, nickname:item.nickname,
mail:item.mail, mail:item.mail,
identity:item.identity,
school_name:item.school_name school_name:item.school_name
}) })
}) })
@ -224,8 +225,8 @@ function Setmembers({ Membersshow,setClose,HeaderDetail, StaffDetail,setMembers,
color: "#D0021B", color: "#D0021B",
fontSize: "12px", fontSize: "12px",
marginTop: "9px" marginTop: "9px"
}}>(){StaffDetail?.member_staff?.minimum}-{StaffDetail?.member_staff?.maximum},{StudentNumber}</p>} }}>(){StaffDetail?.member_staff?.minimum}-{StaffDetail?.member_staff?.maximum},{StudentNumber}</p>}
</div> </div>
</Modal> </Modal>
) )
} export default Setmembers } export default Setmembers

View File

@ -6,6 +6,7 @@ function Teammember(){
<span className={styles.flex1}></span> <span className={styles.flex1}></span>
<span className={styles.flex1}></span> <span className={styles.flex1}></span>
<span className={styles.flex2}></span> <span className={styles.flex2}></span>
<span className={styles.flex2}>Email</span>
<span className={styles.flex2}>/</span> <span className={styles.flex2}>/</span>
<span className={styles.flex1}></span> <span className={styles.flex1}></span>
<span className={styles.flex2}></span> <span className={styles.flex2}></span>
@ -13,4 +14,4 @@ function Teammember(){
<span className={styles.flex2} style={{textAlign:'center'}}></span> <span className={styles.flex2} style={{textAlign:'center'}}></span>
</div> </div>
) )
}export default Teammember }export default Teammember

View File

@ -54,6 +54,7 @@ function Teammember({ teamitem, index, setTeams, Teams, setLoaderid }: Teammembe
<span className={styles.flex1}><img className={styles.loaderimg} src={`${teamitem.image_url?.indexOf("http") > -1 ? teamitem.image_url : (ENV.IMG_SERVER + `/images/` + teamitem.image_url)}`} /></span> <span className={styles.flex1}><img className={styles.loaderimg} src={`${teamitem.image_url?.indexOf("http") > -1 ? teamitem.image_url : (ENV.IMG_SERVER + `/images/` + teamitem.image_url)}`} /></span>
<span className={styles.flex1}>{teamitem && teamitem.name.length > 6 ? teamitem.name.substring(0, 6) + '...' : teamitem.name}</span> <span className={styles.flex1}>{teamitem && teamitem.name.length > 6 ? teamitem.name.substring(0, 6) + '...' : teamitem.name}</span>
<span className={styles.flex2}>{teamitem && teamitem.phone || '- -'}</span> <span className={styles.flex2}>{teamitem && teamitem.phone || '- -'}</span>
<span className={styles.flex2}>{teamitem && teamitem.mail || '- -'}</span>
<span className={styles.flex2}>{teamitem && teamitem.school_name.length > 6 ? teamitem.school_name.substring(0, 6) + '...' : teamitem.school_name || '- - '}</span> <span className={styles.flex2}>{teamitem && teamitem.school_name.length > 6 ? teamitem.school_name.substring(0, 6) + '...' : teamitem.school_name || '- - '}</span>
<span className={styles.flex1}>{teamitem && teamitem.identity || '- -'}</span> <span className={styles.flex1}>{teamitem && teamitem.identity || '- -'}</span>
<span className={`${styles.flex2} ${styles.task_hide}`}>{teamitem && teamitem.student_id || '- -'}</span> <span className={`${styles.flex2} ${styles.task_hide}`}>{teamitem && teamitem.student_id || '- -'}</span>
@ -72,4 +73,4 @@ function Teammember({ teamitem, index, setTeams, Teams, setLoaderid }: Teammembe
</div> </div>
</div> </div>
) )
} export default Teammember } export default Teammember

View File

@ -54,7 +54,7 @@ export const GlobalConfig: ConfigProps = {
preNewBuild: { preNewBuild: {
API_SERVER: 'https://pre-data.educoder.net', API_SERVER: 'https://pre-data.educoder.net',
// API_SERVER: ((() => { // API_SERVER: ((() => {
// let api = 'https://pre-data.educoder.net' // let api = 'https://pre-data.educoder.net'
// const domain = document.domain // const domain = document.domain
// let str = document.domain.split(".") // let str = document.domain.split(".")
// str[0] = str[0] + "-data"; // str[0] = str[0] + "-data";
@ -87,7 +87,7 @@ export const GlobalConfig: ConfigProps = {
IMG_SERVER: 'https://ali-cdn.educoder.net', IMG_SERVER: 'https://ali-cdn.educoder.net',
FORGE: "https://code.educoder.net/", FORGE: "https://code.educoder.net/",
QQLoginCB: encodeURIComponent("https://www.educoder.net"), QQLoginCB: encodeURIComponent("https://www.educoder.net"),
FORGE_SERVER:"https://gitlink.org.cn" FORGE_SERVER:"https://www.gitlink.org.cn"
}, },
// test // test
newTest: { newTest: {