lion 1 year ago
parent 4ea08828ec
commit c80ab32e5f

@ -365,10 +365,10 @@
} }
}, },
updateAllStatus(status) { updateAllStatus(status) {
if (this.base.isNull(this.subjectObj.date)) { // if (this.base.isNull(this.subjectObj.date)) {
this.$message.warning("请先设置该课程的开课日期后再进行审核") // this.$message.warning("")
return // return
} // }
if (this.selectids.length < 1) { if (this.selectids.length < 1) {
this.$message.warning("请先选择要审核的学员") this.$message.warning("请先选择要审核的学员")
return return
@ -384,10 +384,10 @@
}) })
}, },
showDetail(type, row) { showDetail(type, row) {
if (this.base.isNull(this.subjectObj.date)) { // if (this.base.isNull(this.subjectObj.date)) {
this.$message.warning("请先设置该课程的开课日期后再进行审核") // this.$message.warning("")
return // return
} // }
this.$refs.studentDetail.subjectObj = this.subjectObj this.$refs.studentDetail.subjectObj = this.subjectObj
this.$refs.studentDetail.id = row.id this.$refs.studentDetail.id = row.id
this.$refs.studentDetail.row = row this.$refs.studentDetail.row = row

@ -177,11 +177,11 @@
}) })
this.teacher_options = res.data this.teacher_options = res.data
}, },
resetSelect(){ resetSelect() {
this.select.name = '' this.select.name = ''
this.select.type = '' this.select.type = ''
this.select.dateRange = '' this.select.dateRange = ''
this.select.page=1 this.select.page = 1
this.getList() this.getList()
}, },
async getList() { async getList() {
@ -218,8 +218,8 @@
goAttendance(row) { goAttendance(row) {
let value = row.type_detail.name let value = row.type_detail.name
let teacher = [] let teacher = []
if(row.teacher_detail.length>0){ if (row.teacher_detail.length > 0) {
row.teacher_detail.map(item=>{ row.teacher_detail.map(item => {
teacher.push(item.name) teacher.push(item.name)
}) })
} }
@ -235,6 +235,10 @@
}) })
}, },
editClass(type, row) { editClass(type, row) {
if (this.base.isNull(row.start_date)) {
this.$message.warning("请先设置该课程的开课日期后再进行排课")
return
}
this.$refs.addClass.id = row.id this.$refs.addClass.id = row.id
this.$refs.addClass.setTeachers(this.teacher_options) this.$refs.addClass.setTeachers(this.teacher_options)
this.$refs.addClass.isShow = true this.$refs.addClass.isShow = true
@ -255,7 +259,7 @@
date: row.start_date ? row.start_date + '至' + row.end_date : '', date: row.start_date ? row.start_date + '至' + row.end_date : '',
leibie: value, leibie: value,
is_history: row.course_status === 40 ? true : false, is_history: row.course_status === 40 ? true : false,
is_fee:row.is_fee is_fee: row.is_fee
} }
}) })
}, },

Loading…
Cancel
Save