在学生信息和我的学生增加一个导出按钮,导出学生填写的所有基本信息
This commit is contained in:
@@ -48,6 +48,11 @@
|
|||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>导出</el-button>
|
>导出</el-button>
|
||||||
</el-col>
|
</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" />
|
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
|
||||||
@@ -768,6 +773,12 @@ export default {
|
|||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `student_${new Date().getTime()}.xlsx`)
|
}, `student_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
/** 导出全部按钮操作 */
|
||||||
|
handleExportAll() {
|
||||||
|
this.download('system/student/exportAllOwnStu', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `student_all_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
/** 下载模板操作 */
|
/** 下载模板操作 */
|
||||||
importTemplate() {
|
importTemplate() {
|
||||||
this.download('system/student/importTemplate', {
|
this.download('system/student/importTemplate', {
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button v-hasPermi="['system:stuent:import']" type="info" plain icon="el-icon-upload2" size="mini"
|
<el-button v-hasPermi="['system:stuent:import']" type="info" plain icon="el-icon-upload2" size="mini"
|
||||||
@click="handleImport"
|
@click="handleImport"
|
||||||
>导入</el-button>
|
>导入 </el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button v-hasPermi="['system:student:export']" type="warning" plain icon="el-icon-download" size="mini"
|
<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-col :span="1.5">
|
||||||
<el-button type="success" plain icon="el-icon-setting" size="mini" @click="deptVClick">学生部门挂靠</el-button>
|
<el-button type="success" plain icon="el-icon-setting" size="mini" @click="deptVClick">学生部门挂靠</el-button>
|
||||||
</el-col>
|
</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" />
|
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="studentList" @selection-change="handleSelectionChange">
|
||||||
@@ -805,6 +810,12 @@ export default {
|
|||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `student_${new Date().getTime()}.xlsx`)
|
}, `student_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
/** 导出全部按钮操作 */
|
||||||
|
handleExportAll() {
|
||||||
|
this.download('system/student/exportAll', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `student_all_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
/** 下载模板操作 */
|
/** 下载模板操作 */
|
||||||
importTemplate() {
|
importTemplate() {
|
||||||
this.download('system/student/importTemplate', {
|
this.download('system/student/importTemplate', {
|
||||||
|
|||||||
Reference in New Issue
Block a user