|
|
|
|
@ -557,10 +557,26 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.then((_) => {
|
|
|
|
|
const tableColumns = this.$refs['table'].getFullColumns()
|
|
|
|
|
|
|
|
|
|
let export_fields = {}
|
|
|
|
|
|
|
|
|
|
Object.keys(this.form).forEach(key => {
|
|
|
|
|
export_fields[key] = tableColumns.find(col => col.field === key)?.title || key
|
|
|
|
|
if(key=='area_id'){
|
|
|
|
|
export_fields['area_id_text'] = tableColumns.find(col => col.field === key)?.title || key
|
|
|
|
|
}else if(key=='from'){
|
|
|
|
|
export_fields['from_text'] = '类型'
|
|
|
|
|
}else if(key=='nature'){
|
|
|
|
|
export_fields['nature_text'] = tableColumns.find(col => col.field === key)?.title || key
|
|
|
|
|
}else if(key=='type'){
|
|
|
|
|
export_fields['type_text'] = tableColumns.find(col => col.field === key)?.title || key
|
|
|
|
|
}else if(key=='is_area_3'||key=='id'){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
export_fields[key] = tableColumns.find(col => col.field === key)?.title || key
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log("tableColumns",tableColumns,export_fields)
|
|
|
|
|
// return
|
|
|
|
|
download("/api/admin/school/index", "get", {
|
|
|
|
|
...this.select,
|
|
|
|
|
page: 1,
|
|
|
|
|
|