|
@@ -224,7 +224,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
if (isRepeat) {
|
|
|
- this.$Message.error('IRS号码重复')
|
|
|
+ this.$Message.error(this.$t('cusMgt.irsRepeat'))
|
|
|
} else {
|
|
|
let student = this._.cloneDeep(this.students[this.editIndex])
|
|
|
student.irs = this.editIrs + ''
|
|
@@ -245,10 +245,10 @@ export default {
|
|
|
batchRemove() {
|
|
|
if (this.rmSelctions.length) {
|
|
|
this.$Modal.confirm({
|
|
|
- title: '移除学生',
|
|
|
- content: `确认移除选择的${this.rmSelctions.length}位学生吗?`,
|
|
|
- okText: '是',
|
|
|
- cancelText: '否',
|
|
|
+ title: this.$t('cusMgt.remvStu'),
|
|
|
+ content: `${this.$t('cusMgt.remvContent1')}${this.rmSelctions.length}${this.$t('cusMgt.remvContent2')}?`,
|
|
|
+ okText: this.$t('cusMgt.okText'),
|
|
|
+ cancelText: this.$t('cusMgt.cancelText'),
|
|
|
onOk: () => {
|
|
|
let rmIds = this.rmSelctions.map(item => {
|
|
|
return item.id
|
|
@@ -264,16 +264,16 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.$Message.warning('请选择需要移除的学生')
|
|
|
+ this.$Message.warning(this.$t('cusMgt.remvTips'))
|
|
|
}
|
|
|
},
|
|
|
// 单个移除学生
|
|
|
removeStu(row, index) {
|
|
|
this.$Modal.confirm({
|
|
|
- title: '移除学生',
|
|
|
- content: `是否确认移除${row.name}?`,
|
|
|
- okText: '是',
|
|
|
- cancelText: '否',
|
|
|
+ title: this.$t('cusMgt.remvStu'),
|
|
|
+ content: `${this.$t('cusMgt.remvContent1')}${row.name}?`,
|
|
|
+ okText: this.$t('cusMgt.okText'),
|
|
|
+ cancelText: this.$t('cusMgt.cancelText'),
|
|
|
onOk: () => {
|
|
|
this.stuListShow[this.curIndex].members.splice(index, 1)
|
|
|
this.stuListShow[this.curIndex].scount--
|
|
@@ -350,11 +350,11 @@ export default {
|
|
|
}
|
|
|
this.students = res.groupList.members
|
|
|
} else {
|
|
|
- this.$Message.error('查询教学班信息失败')
|
|
|
+ this.$Message.error(this.$t('cusMgt.findListInfoErr'))
|
|
|
}
|
|
|
},
|
|
|
err => {
|
|
|
- this.$Message.error('查询教学班信息失败')
|
|
|
+ this.$Message.error(this.$t('cusMgt.findListInfoErr'))
|
|
|
}
|
|
|
).finally(() => {
|
|
|
this.tableLoading = false
|
|
@@ -454,7 +454,7 @@ export default {
|
|
|
if (this.stuListShow.length) this.selectList(0)
|
|
|
},
|
|
|
err => {
|
|
|
- this.$Message.error('教学班查询失败')
|
|
|
+ this.$Message.error(this.$t('cusMgt.findListErr'))
|
|
|
}
|
|
|
)
|
|
|
},
|