|
@@ -2247,6 +2247,11 @@
|
|
|
/* 提交新增册别 */
|
|
|
handleSubmit() {
|
|
|
return new Promise((r, j) => {
|
|
|
+ if(!this.addVolumeForm.semester && this.addVolumeForm.semester !== 0){
|
|
|
+ this.$Message.warning(this.$t('schoolBaseInfo.semNameTips'))
|
|
|
+ j(500)
|
|
|
+ return
|
|
|
+ }
|
|
|
this.isAddLoading = true
|
|
|
let addVolumeParams = {
|
|
|
"auth": this.addVolumeForm.auth.map(i => {
|
|
@@ -2270,6 +2275,7 @@
|
|
|
}
|
|
|
if ((this.isEditVolume && this.curVolume)) {
|
|
|
addVolumeParams.id = this.curVolume.id
|
|
|
+ addVolumeParams.order = this.curVolume.order
|
|
|
addVolumeParams.name = this.addVolumeForm.name
|
|
|
addVolumeParams.syllabusIds = this.allChapterIds || []
|
|
|
addVolumeParams.creatorId = this.curVolume.creatorId
|
|
@@ -2370,7 +2376,7 @@
|
|
|
return id => {
|
|
|
if (this.periodList.length) {
|
|
|
let semesterItem = this.periodList[this.currentPeriodIndex].semesters.find(i => i.id === id)
|
|
|
- return semesterItem ? semesterItem.name : ''
|
|
|
+ return semesterItem ? semesterItem.name : this.$t('syllabus.noMatchTerm')
|
|
|
} else {
|
|
|
return ''
|
|
|
}
|