|
|
|
|
@ -63,6 +63,12 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select filterable multiple collapse-tags v-model="select.ranking_tag" placeholder="请选择企业标签" clearable style="width: 200px;">
|
|
|
|
|
<el-option v-for="(item,index) in formSelect.ranking_tag" :key="index" :label="item.value" :value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.is_chart" placeholder="课程是否统计" clearable style="width: 150px;">
|
|
|
|
|
<el-option label="否" :value="0"></el-option>
|
|
|
|
|
@ -148,7 +154,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div v-loading="loading">
|
|
|
|
|
<xy-table :showIndex="false" :list="list" :total="total" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange"
|
|
|
|
|
:table-item="table_item">
|
|
|
|
|
<template v-slot:company_name>
|
|
|
|
|
@ -209,6 +215,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:ranking_tag>
|
|
|
|
|
<el-table-column align='center' label="企业标签" width="180" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-for="(item,index) in (scope.row.ranking_tag ? scope.row.ranking_tag.split(',').filter(tag => tag.trim()) : [])" :key="index" style="margin:3px">
|
|
|
|
|
<el-tag type="success">{{ item }}</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:users>
|
|
|
|
|
<el-table-column align='center' label="学员信息" width="800" header-align="center">
|
|
|
|
|
<el-table-column label="学号" width="120" align="center">
|
|
|
|
|
@ -365,6 +380,7 @@
|
|
|
|
|
address: '',
|
|
|
|
|
is_yh_invested: '',
|
|
|
|
|
company_tag: '',
|
|
|
|
|
ranking_tag: [],
|
|
|
|
|
course_name: '',
|
|
|
|
|
user_name: '',
|
|
|
|
|
is_schoolmate: '',
|
|
|
|
|
@ -384,6 +400,7 @@
|
|
|
|
|
courseDateRange: [],
|
|
|
|
|
list: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
loading: false,
|
|
|
|
|
statistics: {
|
|
|
|
|
course_signs_invested: 0,
|
|
|
|
|
company_invested_after_enrollment_total: 0,
|
|
|
|
|
@ -409,6 +426,11 @@
|
|
|
|
|
label: '集团标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 160,
|
|
|
|
|
},{
|
|
|
|
|
prop: 'ranking_tag',
|
|
|
|
|
label: '企业标签',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 160,
|
|
|
|
|
},{
|
|
|
|
|
prop: 'company_name',
|
|
|
|
|
label: '企业名称',
|
|
|
|
|
@ -493,50 +515,71 @@
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
exportExcel() {
|
|
|
|
|
console.log('导出')
|
|
|
|
|
let _export = {}
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
if (item.type === 'index') {
|
|
|
|
|
} else {
|
|
|
|
|
if(item.prop === 'is_yh_invested'){
|
|
|
|
|
_export['is_yh_invested_text'] = '集团标签'
|
|
|
|
|
}else{
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
this.loading = true
|
|
|
|
|
try {
|
|
|
|
|
console.log('导出')
|
|
|
|
|
let _export = {}
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
if (item.type === 'index') {
|
|
|
|
|
} else {
|
|
|
|
|
if(item.prop === 'is_yh_invested'){
|
|
|
|
|
_export['is_yh_invested_text'] = '集团标签'
|
|
|
|
|
}else{
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/company/index',
|
|
|
|
|
'get', {
|
|
|
|
|
export_fields: _export,
|
|
|
|
|
page_size: 9999,
|
|
|
|
|
page: 1,
|
|
|
|
|
is_export:1,
|
|
|
|
|
course_name: this.select.course_name || '',
|
|
|
|
|
user_name: this.select.user_name || '',
|
|
|
|
|
is_schoolmate: this.select.is_schoolmate !== '' && this.select.is_schoolmate !== null ? this.select.is_schoolmate : '',
|
|
|
|
|
course_type_id: this.select.course_type_id || '',
|
|
|
|
|
course_start_date: this.select.course_start_date || '',
|
|
|
|
|
course_end_date: this.select.course_end_date || '',
|
|
|
|
|
is_chart: this.select.is_chart !== '' && this.select.is_chart !== null ? this.select.is_chart : '',
|
|
|
|
|
start_year: this.select.start_year || '',
|
|
|
|
|
end_year: this.select.end_year || '',
|
|
|
|
|
address: this.select.address || '',
|
|
|
|
|
filter: [{
|
|
|
|
|
key: 'company_name',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.company_name || ''
|
|
|
|
|
},{
|
|
|
|
|
key: 'is_yh_invested',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.is_yh_invested && this.select.is_yh_invested !== null ? this.select.is_yh_invested : ''
|
|
|
|
|
},{
|
|
|
|
|
key: 'company_tag',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.company_tag && Array.isArray(this.select.company_tag) ? this.select.company_tag.join(',') : ''
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
'校友企业信息.xlsx')
|
|
|
|
|
})
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/company/index',
|
|
|
|
|
'get', {
|
|
|
|
|
export_fields: _export,
|
|
|
|
|
page_size: 9999,
|
|
|
|
|
page: 1,
|
|
|
|
|
is_export:1,
|
|
|
|
|
course_name: this.select.course_name || '',
|
|
|
|
|
user_name: this.select.user_name || '',
|
|
|
|
|
is_schoolmate: this.select.is_schoolmate !== '' && this.select.is_schoolmate !== null ? this.select.is_schoolmate : '',
|
|
|
|
|
course_type_id: this.select.course_type_id || '',
|
|
|
|
|
course_start_date: this.select.course_start_date || '',
|
|
|
|
|
course_end_date: this.select.course_end_date || '',
|
|
|
|
|
is_chart: this.select.is_chart !== '' && this.select.is_chart !== null ? this.select.is_chart : '',
|
|
|
|
|
start_year: this.select.start_year || '',
|
|
|
|
|
end_year: this.select.end_year || '',
|
|
|
|
|
address: this.select.address || '',
|
|
|
|
|
filter: (() => {
|
|
|
|
|
const filter = [{
|
|
|
|
|
key: 'company_name',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.company_name || ''
|
|
|
|
|
},{
|
|
|
|
|
key: 'is_yh_invested',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.is_yh_invested && this.select.is_yh_invested !== null ? this.select.is_yh_invested : ''
|
|
|
|
|
},{
|
|
|
|
|
key: 'company_tag',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.company_tag && Array.isArray(this.select.company_tag) ? this.select.company_tag.join(',') : ''
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
// 添加企业标签查询条件
|
|
|
|
|
if (this.select.ranking_tag && Array.isArray(this.select.ranking_tag) && this.select.ranking_tag.length > 0) {
|
|
|
|
|
filter.push({
|
|
|
|
|
key: 'ranking_tag',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.ranking_tag.join(',')
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return filter
|
|
|
|
|
})()
|
|
|
|
|
},
|
|
|
|
|
'校友企业信息.xlsx')
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error('导出失败:', error)
|
|
|
|
|
this.$message.error('导出失败')
|
|
|
|
|
} finally {
|
|
|
|
|
this.loading = false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getCompanyConfig() {
|
|
|
|
|
const res = await companyConfig()
|
|
|
|
|
@ -603,6 +646,7 @@
|
|
|
|
|
this.select.address = ''
|
|
|
|
|
this.select.is_yh_invested = ''
|
|
|
|
|
this.select.company_tag = ''
|
|
|
|
|
this.select.ranking_tag = []
|
|
|
|
|
this.select.course_name = ''
|
|
|
|
|
this.select.user_name = ''
|
|
|
|
|
this.select.is_schoolmate = ''
|
|
|
|
|
@ -647,6 +691,15 @@
|
|
|
|
|
value: this.select.company_tag && Array.isArray(this.select.company_tag) ? this.select.company_tag.join(',') : ''
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
// 添加企业标签查询条件
|
|
|
|
|
if (this.select.ranking_tag && Array.isArray(this.select.ranking_tag) && this.select.ranking_tag.length > 0) {
|
|
|
|
|
filter.push({
|
|
|
|
|
key: 'ranking_tag',
|
|
|
|
|
op: 'like',
|
|
|
|
|
value: this.select.ranking_tag.join(',')
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 添加是否上市查询条件
|
|
|
|
|
if (this.select.company_market !== '' && this.select.company_market !== null) {
|
|
|
|
|
filter.push({
|
|
|
|
|
@ -655,7 +708,7 @@
|
|
|
|
|
value: this.select.company_market
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
const res = await index({
|
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
|
page: this.select.page,
|
|
|
|
|
@ -671,7 +724,7 @@
|
|
|
|
|
address: this.select.address || '',
|
|
|
|
|
filter: filter
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.list = res.data
|
|
|
|
|
this.total = res.total
|
|
|
|
|
// 保存统计数据
|
|
|
|
|
|