|
|
|
|
@ -22,9 +22,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -176,13 +176,13 @@
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
this.teacher_options = res.data
|
|
|
|
|
},
|
|
|
|
|
resetSelect(){
|
|
|
|
|
this.select.name = ''
|
|
|
|
|
this.select.type = ''
|
|
|
|
|
this.select.dateRange = ''
|
|
|
|
|
this.select.page=1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
resetSelect() {
|
|
|
|
|
this.select.name = ''
|
|
|
|
|
this.select.type = ''
|
|
|
|
|
this.select.dateRange = ''
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
async getList() {
|
|
|
|
|
const res = await index({
|
|
|
|
|
@ -217,11 +217,11 @@
|
|
|
|
|
},
|
|
|
|
|
goAttendance(row) {
|
|
|
|
|
let value = row.type_detail.name
|
|
|
|
|
let teacher = []
|
|
|
|
|
if(row.teacher_detail.length>0){
|
|
|
|
|
row.teacher_detail.map(item=>{
|
|
|
|
|
teacher.push(item.name)
|
|
|
|
|
})
|
|
|
|
|
let teacher = []
|
|
|
|
|
if (row.teacher_detail.length > 0) {
|
|
|
|
|
row.teacher_detail.map(item => {
|
|
|
|
|
teacher.push(item.name)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/course/attendance',
|
|
|
|
|
@ -235,6 +235,10 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
editClass(type, row) {
|
|
|
|
|
if (this.base.isNull(row.start_date)) {
|
|
|
|
|
this.$message.warning("请先设置该课程的开课日期后再进行排课")
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.$refs.addClass.id = row.id
|
|
|
|
|
this.$refs.addClass.setTeachers(this.teacher_options)
|
|
|
|
|
this.$refs.addClass.isShow = true
|
|
|
|
|
@ -254,8 +258,8 @@
|
|
|
|
|
id: row.id,
|
|
|
|
|
date: row.start_date ? row.start_date + '至' + row.end_date : '',
|
|
|
|
|
leibie: value,
|
|
|
|
|
is_history: row.course_status === 40 ? true : false,
|
|
|
|
|
is_fee:row.is_fee
|
|
|
|
|
is_history: row.course_status === 40 ? true : false,
|
|
|
|
|
is_fee: row.is_fee
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|