在学生信息和我的学生增加一个导出按钮,导出学生填写的所有基本信息

This commit is contained in:
2026-02-28 17:57:13 +08:00
parent 12be6d948e
commit f0301cd55b
2 changed files with 23 additions and 1 deletions

View File

@@ -48,6 +48,11 @@
@click="handleExport"
>导出</el-button>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['system:student:exportAllOwnStu']" type="warning" plain icon="el-icon-download" size="mini"
@click="handleExportAll"
>导出全部</el-button>
</el-col>
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
</el-row>
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
@@ -768,6 +773,12 @@ export default {
...this.queryParams
}, `student_${new Date().getTime()}.xlsx`)
},
/** 导出全部按钮操作 */
handleExportAll() {
this.download('system/student/exportAllOwnStu', {
...this.queryParams
}, `student_all_${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('system/student/importTemplate', {

View File

@@ -74,7 +74,7 @@
<el-col :span="1.5">
<el-button v-hasPermi="['system:stuent:import']" type="info" plain icon="el-icon-upload2" size="mini"
@click="handleImport"
>导入</el-button>
>导入 </el-button>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['system:student:export']" type="warning" plain icon="el-icon-download" size="mini"
@@ -84,6 +84,11 @@
<el-col :span="1.5">
<el-button type="success" plain icon="el-icon-setting" size="mini" @click="deptVClick">学生部门挂靠</el-button>
</el-col>
<el-col :span="1.5">
<el-button v-hasPermi="['system:student:export']" type="warning" plain icon="el-icon-download" size="mini"
@click="handleExportAll"
>导出全部</el-button>
</el-col>
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
</el-row>
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
@@ -805,6 +810,12 @@ export default {
...this.queryParams
}, `student_${new Date().getTime()}.xlsx`)
},
/** 导出全部按钮操作 */
handleExportAll() {
this.download('system/student/exportAll', {
...this.queryParams
}, `student_all_${new Date().getTime()}.xlsx`)
},
/** 下载模板操作 */
importTemplate() {
this.download('system/student/importTemplate', {