|
@@ -688,7 +688,6 @@ export default {
|
|
|
res.tmdinfos.sort((a, b) => {
|
|
|
return slist.tmids.indexOf(a.id) - slist.tmids.indexOf(b.id)
|
|
|
})
|
|
|
- console.log('更新学生数据')
|
|
|
let originIndex = this.courseListShow[this.curCusIndex].schedule.findIndex(item => {
|
|
|
return item.stulist == schedule.stulist
|
|
|
})
|
|
@@ -706,14 +705,6 @@ export default {
|
|
|
},
|
|
|
//初始化课程课程信息时,根据班级ids查询名单信息
|
|
|
getStuByClassIds(classIds) {
|
|
|
- // API调整
|
|
|
- // let params = {
|
|
|
- // 'school_code': this.listType == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,
|
|
|
- // 'ids': classIds,
|
|
|
- // 'scope': this.listType
|
|
|
- // }
|
|
|
- // return this.$api.schoolSetting.getClassroomStudent(params)
|
|
|
-
|
|
|
let params = {
|
|
|
'school_code': this.listType == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,
|
|
|
'ids': classIds
|
|
@@ -1001,24 +992,6 @@ export default {
|
|
|
// //这里需要根据站点动态拼接域名
|
|
|
console.log(window.location)
|
|
|
let host = window.location.origin
|
|
|
- // //国际站
|
|
|
- // if (addr == 'Global') {
|
|
|
- // if (type == 'product') {
|
|
|
- // // 正式站
|
|
|
- // host = this.$store.state.config[addr].domainUrl[0].url
|
|
|
- // } else {
|
|
|
- // // 测试站
|
|
|
- // host = this.$store.state.config[addr].domainUrl[1].url
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // 大陆站
|
|
|
- // else {
|
|
|
- // if (type == 'product') {
|
|
|
- // host = this.$store.state.config.China.domainUrl[0].url
|
|
|
- // } else {
|
|
|
- // host = this.$store.state.config.China.domainUrl[1].url
|
|
|
- // }
|
|
|
- // }
|
|
|
let callbackUrl = `${host}/joinclass?listName=${listName}&tName=${tName}&listNo=${this.stuListNo}&cusName=${cusName}`
|
|
|
this.inviteUrl = callbackUrl
|
|
|
console.log(callbackUrl)
|
|
@@ -1034,7 +1007,7 @@ export default {
|
|
|
}, 0)
|
|
|
}
|
|
|
else if (!this.listId && this.type == 'select') {
|
|
|
- this.$Message.warning('请选择名单')
|
|
|
+ this.$Message.warning(this.$t('cusMgt.selectListTips'))
|
|
|
this.modalLoading = false
|
|
|
setTimeout(() => {
|
|
|
this.modalLoading = true
|
|
@@ -1063,7 +1036,7 @@ export default {
|
|
|
return item.stulist == this.listId && item.teacherId == this.$store.state.userInfo.TEAMModelId
|
|
|
})
|
|
|
if (res) {
|
|
|
- this.$Message.warning(`${res.listName}已在课程名单`)
|
|
|
+ this.$Message.warning(`${res.listName}${this.$t('cusMgt.alreadyExist')}`)
|
|
|
this.modalLoading = false
|
|
|
setTimeout(() => {
|
|
|
this.modalLoading = true
|
|
@@ -1485,9 +1458,24 @@ export default {
|
|
|
'ids': ids
|
|
|
}
|
|
|
return this.$api.courseMgmt.findListSummary(requestData)
|
|
|
+ },
|
|
|
+ getAllStuList() {
|
|
|
+ let params = {
|
|
|
+ code: this.$store.state.userInfo.TEAMModelId,
|
|
|
+ scope: 'private'
|
|
|
+ }
|
|
|
+ this.$api.courseMgmt.findStulist(params).then(
|
|
|
+ res=>{
|
|
|
+ this.stuList = res.stuList
|
|
|
+ },
|
|
|
+ err=>{
|
|
|
+ this.$Message.error(this.$t('cusMgt.listAPIErr'))
|
|
|
+ }
|
|
|
+ )
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getAllStuList()
|
|
|
//直接读取登录成功拿到得学校基础信息
|
|
|
this.$store.dispatch('user/getSchoolProfile').then(res => {
|
|
|
this.isFirst = true
|
|
@@ -1619,6 +1607,9 @@ export default {
|
|
|
default:
|
|
|
break
|
|
|
}
|
|
|
+ data.sort((a,b)=>{
|
|
|
+ return b.startTime - a.startTime
|
|
|
+ })
|
|
|
return data.filter(item => {
|
|
|
return (item.classes && item.classes.includes(id)) || ((item.stuLists && item.stuLists.includes(id)))
|
|
|
})
|