|
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -31,13 +31,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<xy-table :list="list" :total="total" :showIndexFixed="'left'"
|
|
|
|
|
<xy-table :list="list" :total="total" :showIndexFixed="'left'"
|
|
|
|
|
@pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange" :table-item="table_item">
|
|
|
|
|
<template v-slot:dateRange>
|
|
|
|
|
<el-table-column align='center' label="开课日期" width="200" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{scope.row.start_date?scope.row.start_date+'至'+scope.row.end_date:''}}
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
{{scope.row.start_date?scope.row.start_date+'至'+scope.row.end_date:''}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -48,27 +48,27 @@
|
|
|
|
|
<div v-if="scope.row.course_signs_count && scope.row.course_signs_count>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,'')">
|
|
|
|
|
{{scope.row.course_signs_count}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,'')">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_wait_total>
|
|
|
|
|
<el-table-column align='center' label="待审核人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_wait_total && scope.row.sign_wait_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,0)">
|
|
|
|
|
{{scope.row.sign_wait_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,0)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_wait_total>
|
|
|
|
|
<el-table-column align='center' label="待审核人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_wait_total && scope.row.sign_wait_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,0)">
|
|
|
|
|
{{scope.row.sign_wait_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,0)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_pass_total>
|
|
|
|
|
<el-table-column align='center' label="审核通过人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_pass_total && scope.row.sign_pass_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,1)">{{scope.row.sign_pass_total}}</div>
|
|
|
|
|
@click="toApply(scope.row,1)">{{scope.row.sign_pass_total}}</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,1)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -79,54 +79,54 @@
|
|
|
|
|
<div v-if="scope.row.sign_fault_total && scope.row.sign_fault_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,2)">
|
|
|
|
|
{{scope.row.sign_fault_total}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,2)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_prepare_total>
|
|
|
|
|
<el-table-column align='center' label="备选人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_prepare_total && scope.row.sign_prepare_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,3)">
|
|
|
|
|
{{scope.row.sign_prepare_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,3)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_cancel_total>
|
|
|
|
|
<el-table-column align='center' label="已取消人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_cancel_total && scope.row.sign_cancel_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,4)">
|
|
|
|
|
{{scope.row.sign_cancel_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,4)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_give_up_total>
|
|
|
|
|
<el-table-column align='center' label="主动放弃人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_give_up_total && scope.row.sign_give_up_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,5)">
|
|
|
|
|
{{scope.row.sign_give_up_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,5)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_black_total>
|
|
|
|
|
<el-table-column align='center' label="黑名单人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_black_total && scope.row.sign_black_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,6)">
|
|
|
|
|
{{scope.row.sign_black_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,6)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_prepare_total>
|
|
|
|
|
<el-table-column align='center' label="备选人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_prepare_total && scope.row.sign_prepare_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,3)">
|
|
|
|
|
{{scope.row.sign_prepare_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,3)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_cancel_total>
|
|
|
|
|
<el-table-column align='center' label="已取消人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_cancel_total && scope.row.sign_cancel_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,4)">
|
|
|
|
|
{{scope.row.sign_cancel_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,4)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_give_up_total>
|
|
|
|
|
<el-table-column align='center' label="主动放弃人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_give_up_total && scope.row.sign_give_up_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,5)">
|
|
|
|
|
{{scope.row.sign_give_up_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,5)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:sign_black_total>
|
|
|
|
|
<el-table-column align='center' label="黑名单人数" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.sign_black_total && scope.row.sign_black_total>0" style="cursor: pointer;color:blue;text-decoration:underline"
|
|
|
|
|
@click="toApply(scope.row,6)">
|
|
|
|
|
{{scope.row.sign_black_total}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else style="cursor: pointer;text-decoration:underline" @click="toApply(scope.row,6)">0</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
@ -141,16 +141,16 @@
|
|
|
|
|
import myMixins from "@/mixin/selectMixin.js";
|
|
|
|
|
import {
|
|
|
|
|
index
|
|
|
|
|
} from "@/api/course/index.js"
|
|
|
|
|
import {
|
|
|
|
|
index as indexType
|
|
|
|
|
} from "@/api/course/index.js"
|
|
|
|
|
import {
|
|
|
|
|
index as indexType
|
|
|
|
|
} from "@/api/course/courseType.js"
|
|
|
|
|
export default {
|
|
|
|
|
mixins: [myMixins],
|
|
|
|
|
components: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
dateRange: [],
|
|
|
|
|
dateRange: [],
|
|
|
|
|
courseTypesList:[],
|
|
|
|
|
select: {
|
|
|
|
|
name: '',
|
|
|
|
|
@ -164,7 +164,7 @@
|
|
|
|
|
table_item: [{
|
|
|
|
|
prop: 'name',
|
|
|
|
|
label: '课程名称',
|
|
|
|
|
align: 'left',
|
|
|
|
|
align: 'left',
|
|
|
|
|
fixed:'left'
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'dateRange',
|
|
|
|
|
@ -186,12 +186,12 @@
|
|
|
|
|
label: '目前报名人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_wait_total',
|
|
|
|
|
label: '待审核人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_wait_total',
|
|
|
|
|
label: '待审核人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_pass_total',
|
|
|
|
|
@ -204,61 +204,61 @@
|
|
|
|
|
label: '审核不通过人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_prepare_total',
|
|
|
|
|
label: '备选人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_cancel_total',
|
|
|
|
|
label: '已取消人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_give_up_total',
|
|
|
|
|
label: '主动放弃人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_black_total',
|
|
|
|
|
label: '黑名单人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_prepare_total',
|
|
|
|
|
label: '备选人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_cancel_total',
|
|
|
|
|
label: '已取消人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_give_up_total',
|
|
|
|
|
label: '主动放弃人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'sign_black_total',
|
|
|
|
|
label: '黑名单人数',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.getList()
|
|
|
|
|
this.getTypes()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
pageIndexChange(e){
|
|
|
|
|
this.select.page = e
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
pageSizeChange(e){
|
|
|
|
|
this.select.page_size = e
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
resetSelect(){
|
|
|
|
|
this.select.name = ''
|
|
|
|
|
this.select.type = ''
|
|
|
|
|
this.select.dateRange = ''
|
|
|
|
|
this.select.page=1
|
|
|
|
|
this.getList()
|
|
|
|
|
methods: {
|
|
|
|
|
pageIndexChange(e){
|
|
|
|
|
this.select.page = e
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
pageSizeChange(e){
|
|
|
|
|
this.select.page_size = e
|
|
|
|
|
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({
|
|
|
|
|
page: this.select.page,
|
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
|
show_relation: ['typeDetail'],
|
|
|
|
|
sort_name:'start_date',
|
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
|
show_relation: ['typeDetail'],
|
|
|
|
|
sort_name:'start_date',
|
|
|
|
|
sort_type:'DESC',
|
|
|
|
|
filter: [{
|
|
|
|
|
key: 'name',
|
|
|
|
|
@ -271,26 +271,26 @@
|
|
|
|
|
}, {
|
|
|
|
|
key: 'start_date',
|
|
|
|
|
op: 'range',
|
|
|
|
|
value: this.select.dateRange
|
|
|
|
|
value: this.select.dateRange?this.select.dateRange.join(","):''
|
|
|
|
|
}]
|
|
|
|
|
})
|
|
|
|
|
this.list = res.data
|
|
|
|
|
this.total = res.total
|
|
|
|
|
},
|
|
|
|
|
getTypes() {
|
|
|
|
|
indexType({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
sort_name:'id',
|
|
|
|
|
sort_type:'ASC',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
// this.courseTypesList = res.data.filter(item => item.status === 1)
|
|
|
|
|
this.courseTypesList = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getTypes() {
|
|
|
|
|
indexType({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
sort_name:'id',
|
|
|
|
|
sort_type:'ASC',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
// this.courseTypesList = res.data.filter(item => item.status === 1)
|
|
|
|
|
this.courseTypesList = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeDateRange(e) {
|
|
|
|
|
if (e) {
|
|
|
|
|
this.select.dateRange = e.join(",")
|
|
|
|
|
this.select.dateRange = e
|
|
|
|
|
} else {
|
|
|
|
|
this.select.dateRange = ''
|
|
|
|
|
}
|
|
|
|
|
@ -298,7 +298,7 @@
|
|
|
|
|
toApply(row,status) {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/course/apply_list',
|
|
|
|
|
query: {
|
|
|
|
|
query: {
|
|
|
|
|
status:status,
|
|
|
|
|
title: row.name,
|
|
|
|
|
id: row.id,
|
|
|
|
|
@ -326,4 +326,4 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|