|
@@ -109,6 +109,9 @@
|
|
@click="disableStudent('')"
|
|
@click="disableStudent('')"
|
|
>禁用
|
|
>禁用
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button size="small" type="primary" @click="exportStudent">
|
|
|
|
+ <i class="fa fa-download" aria-hidden="true"></i>导出
|
|
|
|
+ </el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -658,6 +661,18 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ exportStudent() {
|
|
|
|
+ var param = new URLSearchParams(this.formSearch);
|
|
|
|
+ window.open(
|
|
|
|
+ CORE_API +
|
|
|
|
+ "/student/export?$key=" +
|
|
|
|
+ this.user.key +
|
|
|
|
+ "&$token=" +
|
|
|
|
+ this.user.token +
|
|
|
|
+ "&" +
|
|
|
|
+ param
|
|
|
|
+ );
|
|
|
|
+ },
|
|
checkIds(row) {
|
|
checkIds(row) {
|
|
if (row) {
|
|
if (row) {
|
|
return row.id;
|
|
return row.id;
|