|
@@ -50,6 +50,7 @@
|
|
:tableSets="tableSet"
|
|
:tableSets="tableSet"
|
|
:tableData="tableData"
|
|
:tableData="tableData"
|
|
:navText="navText"
|
|
:navText="navText"
|
|
|
|
+ :studentTable="true"
|
|
@addClick="addClick"
|
|
@addClick="addClick"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
@editInfo="editInfo"
|
|
@editInfo="editInfo"
|
|
@@ -111,6 +112,10 @@
|
|
<el-option label="是" :value="1"> </el-option>
|
|
<el-option label="是" :value="1"> </el-option>
|
|
<el-option label="否" :value="0"> </el-option>
|
|
<el-option label="否" :value="0"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
|
|
+ <el-button
|
|
|
|
+ size="medium"
|
|
|
|
+ @click="exportGrade"
|
|
|
|
+ >导出学员数据</el-button>
|
|
</template>
|
|
</template>
|
|
<template slot="btn" slot-scope="props">
|
|
<template slot="btn" slot-scope="props">
|
|
<el-button type="text" @click="addClick(props.scope.row, 2)"
|
|
<el-button type="text" @click="addClick(props.scope.row, 2)"
|
|
@@ -582,6 +587,7 @@ import tableList from "@/components/tableList";
|
|
import pagination from "@/components/pagination";
|
|
import pagination from "@/components/pagination";
|
|
import accountTag from "@/components/AccountTag";
|
|
import accountTag from "@/components/AccountTag";
|
|
import quickLogin from "@/components/quickLogin";
|
|
import quickLogin from "@/components/quickLogin";
|
|
|
|
+import * as baseUrls from "@/utils/request.js";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: { tableList, pagination, accountTag, quickLogin },
|
|
components: { tableList, pagination, accountTag, quickLogin },
|
|
@@ -1140,6 +1146,29 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //导出学员数据
|
|
|
|
+ exportGrade(){
|
|
|
|
+ this.formData.gradeId = this.$route.query.id,
|
|
|
|
+ this.formData.status = '0,1',
|
|
|
|
+ console.log(this.formData,'this.formData');
|
|
|
|
+ this.$api
|
|
|
|
+ .inquireGradegradeexportGrade(this.formData)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.msg) {
|
|
|
|
+ let url = baseUrls.baseURL + "common/download?fileName=" + res.msg;
|
|
|
|
+ let link = document.createElement("a");
|
|
|
|
+ let fileName = "班级学员数据" + ".xlsx";
|
|
|
|
+ document.body.appendChild(link);
|
|
|
|
+ link.href = url;
|
|
|
|
+ link.dowmload = fileName;
|
|
|
|
+ link.click();
|
|
|
|
+ link.remove();
|
|
|
|
+ this.$message.success("导出成功");
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("导出失败");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
search(int) {
|
|
search(int) {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
if (int === 1) {
|
|
if (int === 1) {
|