|
|
|
|
@ -59,12 +59,15 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='left' label="操作" width="280" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.is_arrange===1"
|
|
|
|
|
@click="editClass('add',scope.row)">排课</el-button>
|
|
|
|
|
<el-table-column align='left' label="操作" width="420" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small" @click="toTxl(scope.row)">通讯录</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="goAttendance(scope.row)">考勤</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="setMain(scope.row.id)">设定班主任</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="setMain(scope.row.id)">设定班主任</el-button>
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.is_arrange===1"
|
|
|
|
|
@click="editClass('add',scope.row)">排课</el-button>
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.is_fee===1"
|
|
|
|
|
@click="toPay(scope.row)">缴费记录</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -224,6 +227,33 @@
|
|
|
|
|
this.$refs.setMainTeacher.id = id
|
|
|
|
|
this.$refs.setMainTeacher.setTeachers(this.teacher_options)
|
|
|
|
|
this.$refs.setMainTeacher.isShow = true
|
|
|
|
|
},
|
|
|
|
|
toTxl(row) {
|
|
|
|
|
let value = row.type_detail.name
|
|
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/course/txl',
|
|
|
|
|
query: {
|
|
|
|
|
title: row.name,
|
|
|
|
|
id: row.id,
|
|
|
|
|
date: row.start_date ? row.start_date + '至' + row.end_date : '',
|
|
|
|
|
leibie: value,
|
|
|
|
|
is_history:row.course_status===40?true:false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toPay(row) {
|
|
|
|
|
let value = row.type_detail.name
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/course/pay',
|
|
|
|
|
query: {
|
|
|
|
|
title: row.name,
|
|
|
|
|
id: row.id,
|
|
|
|
|
date: row.start_date ? row.start_date + '至' + row.end_date : '',
|
|
|
|
|
leibie: value,
|
|
|
|
|
type: 'pay'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|