|
|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="small">导出</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@ -131,6 +131,9 @@
|
|
|
|
|
import studentDetail from './components/detail.vue';
|
|
|
|
|
import myMixins from "@/mixin/selectMixin.js";
|
|
|
|
|
import formMixin from "@/mixin/formMixin.js";
|
|
|
|
|
import {
|
|
|
|
|
download
|
|
|
|
|
} from "@/utils/downloadRequest";
|
|
|
|
|
import {
|
|
|
|
|
indexStudy
|
|
|
|
|
} from '@/api/student/index.js'
|
|
|
|
|
@ -260,6 +263,30 @@
|
|
|
|
|
this.$refs.studentDetail.id = id
|
|
|
|
|
this.$refs.studentDetail.type = type
|
|
|
|
|
this.$refs.studentDetail.isShow = true
|
|
|
|
|
},
|
|
|
|
|
exportExcel() {
|
|
|
|
|
let _export = {}
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
})
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/users/study',
|
|
|
|
|
'get', {
|
|
|
|
|
export_fields: _export,
|
|
|
|
|
name: this.select.name,
|
|
|
|
|
mobile:this.select.mobile,
|
|
|
|
|
company_name: this.select.company_name,
|
|
|
|
|
company_position: this.select.company_position,
|
|
|
|
|
company_area: this.select.company_area,
|
|
|
|
|
company_type: this.select.company_type,
|
|
|
|
|
company_industry: this.select.company_industry,
|
|
|
|
|
is_vip: this.select.is_vip,
|
|
|
|
|
courses_end_date: this.select.courses_end_date,
|
|
|
|
|
is_export: 1,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
},
|
|
|
|
|
`学员信息.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|