This commit is contained in:
caishi 2023-02-21 15:53:27 +08:00
commit 72f591c5c0
4 changed files with 16 additions and 13 deletions

View File

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

View File

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