lion 1 year ago
parent 5fdf8645f2
commit a1ef67d205

@ -84,7 +84,7 @@
</div>
<div class="xy-table-item-content">
<el-select v-model="form.site" placeholder="请选择预约场地" clearable style="width:100%">
<el-option v-for="item in site_options" :key="item.id" :label="item.name" :value="item.id">
<el-option v-for="item in site_options" :key="item.id" :label="item.real_name" :value="item.id">
</el-option>
</el-select>
</div>
@ -142,7 +142,10 @@
} from '@/api/student/index.js'
import {
index as courseIndex
} from "@/api/course/index.js"
} from "@/api/course/index.js"
import {
index as getAppointment
} from "@/api/book/appointment.js"
export default {
mixins: [myMixins],
components: {
@ -200,7 +203,8 @@
},
created() {
this.getCourseList()
this.getUserList('')
this.getUserList('')
this.getSites()
},
methods: {
submit(status) {
@ -254,7 +258,8 @@
show_relation: ['user', 'appointmentConfig']
}).then(res => {
this.form = this.base.requestToForm(res, this.form)
this.form.status = res.status ? res.status : 0
this.form.status = res.status ? res.status : 0
this.form.site = res.site?parseInt(res.site):''
this.form.timeRange = [this.formatHH(res.start_time), this.formatHH(res.end_time)]
})
},
@ -298,7 +303,7 @@
async getUserList(query) {
const res = await indexStudy({
page: 1,
page_size: 99999,
page_size: 99,
name: query,
course_id: this.form.course_id,
})
@ -307,6 +312,18 @@
this.$Message.warning("当前搜索没有学员")
}
this.loading = false
},
async getSites() {
const res = await getAppointment({
page: 1,
page_size: 999,
// filter: [{
// key: 'status',
// op: 'eq',
// value: 1
// }]
})
this.site_options = res.data
},
changeCourse(e) {
if (e) {

@ -23,7 +23,7 @@
</div>
<div>
<span>预约场地</span>
<span>{{submitObj.appointment_config?submitObj.appointment_config.name:''}}</span>
<span>{{submitObj.appointment_config?submitObj.appointment_config.real_name:''}}</span>
</div>
<div>
<span>车牌</span>

@ -64,12 +64,15 @@
</template>
<template v-slot:btns>
<el-table-column align='center' fixed="right" label="操作" width="220" header-align="center">
<el-table-column align='center' fixed="right" label="操作" width="240" header-align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" v-if="scope.row.status>0"
@click="checkBook('show',scope.row.id)">查看</el-button>
<el-button type="primary" size="small" v-if="scope.row.status===0"
@click="checkBook('check',scope.row.id)">审核</el-button>
<el-popconfirm style="margin-left:10px" v-if="scope.row.status!=3" @confirm="cancelBook(scope.row)" title="确定取消吗?">
<el-button type="primary" size="small" slot="reference">取消</el-button>
</el-popconfirm>
<el-button type="primary" size="small" v-if="scope.row.status===3"
@click="editBook('editor',scope.row.id,)">编辑</el-button>
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
@ -93,7 +96,8 @@
import addBook from './components/addBook.vue';
import {
index,
destroy
destroy,
save
} from "@/api/book/index.js"
import {
index as getAppointment
@ -135,7 +139,7 @@
align: 'center',
width: 120,
}, {
prop: 'appointment_config.name',
prop: 'appointment_config.real_name',
label: '预约场地',
align: 'center',
width: 120,
@ -242,7 +246,7 @@
this.$refs.addBook.id = id
}
this.$refs.addBook.type = type
this.$refs.addBook.site_options = this.site_options
// this.$refs.addBook.site_options = this.site_options
this.$refs.addBook.isShow = true
},
exportExcel() {
@ -290,7 +294,19 @@
console.log(error)
reject(error)
})
},
},
cancelBook(row){
save({
...row,
status:3
}).then(res => {
this.$message({
type: 'success',
message: '取消成功'
})
this.getList()
})
}
}
}
</script>

@ -218,7 +218,7 @@
data.push(['2024-09-03', 'xxx', '出勤/缺勤'])
}else if (this.tableName === 'course_contents') {
data.push(['(上传前请删除示例)', '', '', ''])
data.push(['2024-09-03', '上午13:00-14:00', '王老师', '《战略思维2》', '苏州大学', '老师简介'])
data.push(['2024-09-03', '上午09:00-10:00', '王老师', '《战略思维2》', '苏州大学', '老师简介'])
}else if(this.tableName === 'course_signs'){
data.push(['(请确保学员联系方式不为空)', '', '', ''])
}

@ -187,7 +187,7 @@
page: this.select.page,
page_size: this.select.page_size,
show_relation: ['typeDetail'],
sort_name:'id',
sort_name:'start_date',
sort_type:'DESC',
filter: [{
key: 'name',

@ -6,75 +6,75 @@
<lx-header icon="md-apps" :text="$route.meta.title" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
<div slot="content" style="padding-left:0">
<div class="searchwrap" style="display: flex;align-items: center;">
<div>
<div>
<el-input v-model="select.name" placeholder="请输入姓名"></el-input>
</div>
<div>
<el-input v-model="select.mobile" placeholder="请输入手机号"></el-input>
</div>
<div>
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
</div>
<div>
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
</div>
<div>
<el-select v-model="select.company_area" placeholder="请选择所属区域" clearable>
<el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.company_type" placeholder="请选择企业性质" clearable>
<el-option v-for="item in formSelect.company_type" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.company_industry" placeholder="请选择所属行业" clearable>
<el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.type" placeholder="请选择人才类型" clearable>
<el-option v-for="item in formSelect.type" :key="item.id" :label="item.value" :value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.education" placeholder="请选择学历" clearable>
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.status" placeholder="请选择状态" clearable>
<el-option v-for="item in apply_status_list" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.sort_type" placeholder="请选择评分排序" clearable>
<el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
<div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button style="margin-right:10px" type="primary" size="small" @click="exportExcel"></el-button>
<el-popconfirm @confirm="updateAllStatus" title="确定要批量审核吗?">
<el-button type="primary" size="small" slot="reference">批量审核</el-button>
</el-popconfirm>
</div>
<div class="searchwrap" style="display: flex;align-items: center;">
<div>
<div>
<el-input v-model="select.name" placeholder="请输入姓名"></el-input>
</div>
<div>
<el-input v-model="select.mobile" placeholder="请输入手机号"></el-input>
</div>
<div>
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
</div>
<div>
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
</div>
<div>
<el-select v-model="select.company_area" placeholder="请选择所属区域" clearable>
<el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.company_type" placeholder="请选择企业性质" clearable>
<el-option v-for="item in formSelect.company_type" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.company_industry" placeholder="请选择所属行业" clearable>
<el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.type" placeholder="请选择人才类型" clearable>
<el-option v-for="item in formSelect.type" :key="item.id" :label="item.value" :value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.education" placeholder="请选择学历" clearable>
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
:value="item.value">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.status" placeholder="请选择状态" clearable>
<el-option v-for="item in apply_status_list" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
<div>
<el-select v-model="select.sort_type" placeholder="请选择评分排序" clearable>
<el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
<div>
<el-button type="primary" size="small" @click="select.page=1,getList()"></el-button>
<el-button type="primary" size="small" @click="resetSelect"></el-button>
<el-button style="margin-right:10px" type="primary" size="small" @click="exportExcel"></el-button>
<el-popconfirm @confirm="updateAllStatus" title="确定要批量审核吗?">
<el-button type="primary" size="small" slot="reference">批量审核</el-button>
</el-popconfirm>
</div>
</div>
</div>
@ -91,6 +91,13 @@
</div>
<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">
@ -128,10 +135,10 @@
} from '@/api/apply/index.js'
import {
download
} from "@/utils/downloadRequest";
} from "@/utils/downloadRequest";
export default {
mixins: [myMixins,formMixin],
mixins: [myMixins, formMixin],
components: {
studentDetail
},
@ -167,6 +174,13 @@
// return row.status === 0
// }
},
{
prop: 'index',
label: '',
align: 'center',
width: 50,
fixed: 'left'
},
{
prop: 'user.username',
label: '姓名',
@ -227,18 +241,17 @@
}
]
}
},
created(){
this.subjectObj = this.$route.query
console.log("this.$route.query",this.$route.query)
this.select.course_id = this.subjectObj.id
if(this.subjectObj.status===0){
this.select.status = 0
}else{
this.select.status = this.subjectObj.status?parseInt(this.subjectObj.status):''
}
this.getList()
},
created() {
this.subjectObj = this.$route.query
console.log("this.$route.query", this.$route.query)
this.select.course_id = this.subjectObj.id
if (this.subjectObj.status === 0) {
this.select.status = 0
} else {
this.select.status = this.subjectObj.status ? parseInt(this.subjectObj.status) : ''
}
this.getList()
},
methods: {
pageIndexChange(e) {
@ -250,18 +263,23 @@
this.select.page = 1
this.getList()
},
resetSelect(){
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.status = ''
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
},
resetSelect() {
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.status = ''
this.select.page = 1
this.getList()
},
async getList() {
const res = await index({
@ -323,7 +341,7 @@
this.$refs.studentDetail.row = row
this.$refs.studentDetail.type = type
this.$refs.studentDetail.isShow = true
},
},
exportExcel() {
let _export = {}
@ -383,27 +401,27 @@
}
}
.searchwrap {
display: flex;
align-items: center;
flex-wrap: wrap;
&>div {
display: flex;
align-items: center;
// margin-bottom: 10px;
flex-wrap: wrap;
&>div {
margin-right: 10px;
margin-bottom: 10px;
width: 150px;
&:last-child {
width: auto
}
}
}
.searchwrap {
display: flex;
align-items: center;
flex-wrap: wrap;
&>div {
display: flex;
align-items: center;
// margin-bottom: 10px;
flex-wrap: wrap;
&>div {
margin-right: 10px;
margin-bottom: 10px;
width: 150px;
&:last-child {
width: auto
}
}
}
}
</style>

@ -189,7 +189,7 @@
page: this.select.page,
page_size: this.select.page_size,
show_relation: ['teacher', 'typeDetail'],
sort_name: 'id',
sort_name: 'start_date',
sort_type: 'DESC',
filter: [{
key: 'name',

@ -15,12 +15,20 @@
<el-button type="primary" size="small" @click="importTable"></el-button>
</div>
<div v-if="subjectObj.course_content_status===0">
<el-button type="primary" size="small" @click="changeContentStatus"></el-button>
<el-button type="primary" size="small" @click="changeContentStatus(true)"></el-button>
</div>
<div v-if="subjectObj.course_content_status===1">
<el-button type="primary" size="small" @click="changeContentStatus(false)"></el-button>
</div>
<div v-if="subjectObj.course_content_status===1">
<el-button type="primary" size="small" @click="isSendMessage"></el-button>
</div>
<div>
<el-button type="primary" size="small" v-print="'#print'"></el-button>
</div>
<div>
<el-button type="primary" size="small" v-print="'#print'"></el-button>
</div>
</div>
</div>
<div class="schedule" id="print">
<el-table :data="list" border style="width: 100%;height:300px;overflow: scroll;">
<el-table-column v-for="item in table_item" :prop="item.prop" :label="item.label"
@ -133,7 +141,7 @@
show_relation: ['teacher', 'type_detail']
})
this.subjectObj = {}
this.subjectObj = this.base.requestToForm(res, this.subjectObj)
this.subjectObj = this.base.deepCopy(res)
let teacher = []
if(res.teacher_detail.length>0){
res.teacher_detail.map(item=>{
@ -153,17 +161,23 @@
this.getCousreContent()
},
//
changeContentStatus() {
changeContentStatus(flag) {
if (this.list.length === 0) {
this.$Message.warning("请先导入课表")
return
}
if(flag){
this.subjectObj.course_content_status = 1
}else{
this.subjectObj.course_content_status = 0
}
this.subjectObj.course_content_status = 1
save(this.subjectObj).then(res => {
this.$Message.success("发布成功")
this.$Message.success(flag?"发布成功":'已取消发布')
this.$emit('refresh')
this.getCourseDetail()
this.isSendMessage()
this.getCourseDetail()
if(flag){
this.isSendMessage()
}
})
},
//

@ -8,7 +8,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>班主任
</div>
<div class="xy-table-item-content">
<el-select v-model="teachers" multiple style="width:100%" placeholder="请选择班主任" clearable>
<el-select @change="changeTeachers" v-model="teachers" multiple style="width:100%" placeholder="请选择班主任" clearable>
<el-option v-for="item in teacher_options" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
@ -50,6 +50,10 @@
methods: {
setTeachers(e){
this.teacher_options = e
},
changeTeachers(e){
this.teachers = e
this.form.teacher_id = this.teachers.join(",")
},
submit() {
if(this.teachers.length>0){

@ -185,7 +185,7 @@
page: this.select.page,
page_size: this.select.page_size,
show_relation: ['typeDetail'],
sort_name: 'id',
sort_name: 'start_date',
sort_type: 'DESC',
filter: [{
key: 'name',

@ -202,7 +202,7 @@
page: this.select.page,
page_size: this.select.page_size,
show_relation: ['type_detail'],
sort_name: 'id',
sort_name: 'start_date',
sort_type: 'DESC',
// course_status:this.select.course_status,
filter: [{

@ -18,10 +18,10 @@
</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>
<el-button type="primary" size="small" @click="exportExcel"></el-button>
@ -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',
@ -167,7 +177,7 @@
}, {
prop: 'user.company_name',
label: '公司名称',
align: 'left',
align: 'left',
width: 240,
}, {
prop: 'user.company_position',
@ -211,8 +221,8 @@
this.subjectObj = this.$route.query
this.select.course_id = this.subjectObj.id
if (this.url_type == 'pay') {
this.table_item.unshift({
prop:'selection',
this.table_item.unshift({
prop: 'selection',
type: 'selection',
width: 50,
fixed: 'left'
@ -230,12 +240,17 @@
this.select.page_size = e
this.select.page = 1
this.getList()
},
resetSelect() {
this.select.name = ''
this.select.fee_status = ''
this.select.page = 1
this.getList()
},
resetSelect(){
this.select.name = ''
this.select.fee_status = ''
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({
@ -298,21 +313,21 @@
},
exportExcel() {
let _export = {}
this.table_item.map(item => {
console.log("item.prop",item.prop)
if (item.prop === 'status') {
this.table_item.map(item => {
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', {

@ -80,8 +80,15 @@
<div>开课日期{{subjectObj.date?subjectObj.date:'开课待定'}}</div>
<div>课程体系{{subjectObj.leibie}}</div>
</div>
<xy-table :list="list" :total="total" :showIndexFixed="'left'" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<xy-table :list="list" :total="total" :showIndex="false" @pageIndexChange="pageIndexChange"
@pageSizeChange="pageSizeChange" :table-item="table_item">
<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">
@ -144,16 +151,24 @@
company_area: '',
company_type: '',
company_industry: '',
education: '',
education: '',
type:'',
status: '',
apply_status: '',
page: 1,
page_size: 10
page_size: 10,
is_fee:''
},
list: [],
total: 0,
formList: [], //
table_item: [{
prop: 'index',
label: '',
align: 'center',
width: 50,
fixed: 'left'
}, {
prop: 'user.username',
label: '姓名',
align: 'center',
@ -220,7 +235,12 @@
}
},
mounted() {
this.subjectObj = this.$route.query
this.subjectObj = this.$route.query
if(this.$route.query.is_fee==0){
this.select.is_fee = ''
}else{
this.select.is_fee = 1
}
this.select.course_id = this.subjectObj.id
this.getAutoForm()
this.getList()
@ -235,6 +255,11 @@
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
},
resetSelect(){
this.select.name = ''
this.select.mobile = ''
@ -244,6 +269,7 @@
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.type = ''
this.select.page=1
this.getList()
},
@ -258,7 +284,8 @@
company_area: this.select.company_area,
company_type: this.select.company_type,
company_industry: this.select.company_industry,
education: this.select.education,
education: this.select.education,
type:this.select.type,
filter: [{
key: 'course_id',
op: 'eq',
@ -270,7 +297,7 @@
}, {
key: 'fee_status',
op: 'eq',
value: this.subjectObj.is_fee === 0 ? '' : 1
value: this.select.is_fee
}]
})
this.list = res.data

@ -109,7 +109,13 @@
<div>
<xy-table :list="list" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange" :showIndex="false"
@selection-change="selectionChange" :total="total" :table-item="table_item">
<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:course_list>
<el-table-column align='left' label="课程" width="380" header-align="center">
<template slot-scope="scope">
@ -227,6 +233,12 @@
type: 'selection',
width: 50,
fixed: 'left'
}, {
prop: 'index',
label: '',
align: 'center',
width: 50,
fixed: 'left'
}, {
prop: 'course_list',
label: '课程名称',
@ -307,24 +319,29 @@
this.select.page = 1
this.getList()
},
resetSelect() {
this.select.name=''
this.select.mobile=''
this.select.company_name=''
this.select.course_name=''
this.select.company_position=''
this.select.company_area=''
this.select.company_type=''
this.select.company_industry=''
this.select.is_vip=''
this.select.courses_end_date=''
this.select.is_schoolmate=''
this.select.education=''
this.select.type=''
this.select.status=''
this.select.course_type = ''
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
},
resetSelect() {
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
this.select.course_name = ''
this.select.company_position = ''
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.is_vip = ''
this.select.courses_end_date = ''
this.select.is_schoolmate = ''
this.select.education = ''
this.select.type = ''
this.select.status = ''
this.select.course_type = ''
this.select.page = 1
this.getList()
},
async getList() {
const res = await indexStudy({

@ -106,8 +106,14 @@
<div>
<div class="txl">统计本年度学员共计{{year_total}}累计学员{{alltotal}}</div>
<xy-table :list="list" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange" :total="total"
:table-item="table_item">
:table-item="table_item" :showIndex="false">
<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:course_list>
<el-table-column align='left' label="课程" width="320" header-align="center">
<template slot-scope="scope">
@ -210,6 +216,12 @@
alltotal: 0,
total: 0,
table_item: [{
prop: 'index',
label: '',
align: 'center',
width: 50,
fixed: 'left'
},{
prop: 'course_list',
label: '课程名称',
align: 'left',
@ -279,6 +291,11 @@
this.select.page_size = e
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
},
resetSelect() {
this.select.name = ''
@ -338,8 +355,12 @@
},
exportExcel() {
let _export = {}
this.selectFormList.map(item => {
_export[item.field] = item.name
this.selectFormList.map(item => {
if(item.prop==='index'){
}else{
_export[item.field] = item.name
}
})
download(
'/api/admin/users/study',

Loading…
Cancel
Save