|
|
|
|
@ -49,9 +49,15 @@
|
|
|
|
|
<div>开课日期:{{subjectObj.date}}</div>
|
|
|
|
|
<div>课程体系:{{subjectObj.leibie}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-table :list="list" :total="total" :showIndex="url_type==='pay'?false:true"
|
|
|
|
|
:showIndexFixed="url_type==='pay'?null:'left'" @pageIndexChange="pageIndexChange"
|
|
|
|
|
<xy-table :list="list" :total="total" :showIndex="false" @pageIndexChange="pageIndexChange"
|
|
|
|
|
@pageSizeChange="pageSizeChange" :table-item="table_item" @selection-change="selectionChange">
|
|
|
|
|
<template v-slot:index>
|
|
|
|
|
<el-table-column align='center' fixed="left" label="" width="50" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{getIndex(scope.$index)}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:status>
|
|
|
|
|
<el-table-column align='center' label="状态" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
@ -74,8 +80,7 @@
|
|
|
|
|
<el-table-column align='center' label="缴费截图" width="100" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<template v-for="item in scope.row.fee_files">
|
|
|
|
|
<el-image style="width:80px;height:80px" :src="item.url"
|
|
|
|
|
:preview-src-list="[item.url]"></el-image>
|
|
|
|
|
<el-image style="width:80px;height:80px" :src="item.url" :preview-src-list="[item.url]"></el-image>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -85,8 +90,7 @@
|
|
|
|
|
header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<!-- v-if="scope.row.fee_status===3"-->
|
|
|
|
|
<el-button type="primary" size="small"
|
|
|
|
|
@click="showCheckPay(scope.row)">核对</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="showCheckPay(scope.row)">核对</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<div v-else></div>
|
|
|
|
|
@ -134,6 +138,12 @@
|
|
|
|
|
list: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
table_item: [{
|
|
|
|
|
prop: 'index',
|
|
|
|
|
label: '',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 50,
|
|
|
|
|
fixed: 'left'
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'user.username',
|
|
|
|
|
label: '姓名',
|
|
|
|
|
align: 'center',
|
|
|
|
|
@ -212,7 +222,7 @@
|
|
|
|
|
this.select.course_id = this.subjectObj.id
|
|
|
|
|
if (this.url_type == 'pay') {
|
|
|
|
|
this.table_item.unshift({
|
|
|
|
|
prop:'selection',
|
|
|
|
|
prop: 'selection',
|
|
|
|
|
type: 'selection',
|
|
|
|
|
width: 50,
|
|
|
|
|
fixed: 'left'
|
|
|
|
|
@ -231,12 +241,17 @@
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
resetSelect(){
|
|
|
|
|
resetSelect() {
|
|
|
|
|
this.select.name = ''
|
|
|
|
|
this.select.fee_status = ''
|
|
|
|
|
this.select.page=1
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
getIndex(e){
|
|
|
|
|
let perSize = (this.select.page -1 ) * this.select.page_size
|
|
|
|
|
let index = perSize + e + 1
|
|
|
|
|
return index
|
|
|
|
|
},
|
|
|
|
|
async getList() {
|
|
|
|
|
const res = await indexStudy({
|
|
|
|
|
page: this.select.page,
|
|
|
|
|
@ -299,20 +314,20 @@
|
|
|
|
|
exportExcel() {
|
|
|
|
|
let _export = {}
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
console.log("item.prop",item.prop)
|
|
|
|
|
console.log("item.prop", item.prop)
|
|
|
|
|
if (item.prop === 'status') {
|
|
|
|
|
|
|
|
|
|
_export['status_text'] = item.label
|
|
|
|
|
} else if (item.prop === 'fee_status') {
|
|
|
|
|
_export['fee_status_text'] = item.label
|
|
|
|
|
|
|
|
|
|
}else if (item.prop === 'img' || item.prop === 'selection') {
|
|
|
|
|
} else if (item.prop === 'img' || item.prop === 'selection'|| item.prop === 'index') {
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log("_export",_export)
|
|
|
|
|
console.log("_export", _export)
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/course-signs/index',
|
|
|
|
|
'get', {
|
|
|
|
|
|