|
@@ -11,7 +11,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-button type="primary" size="mini" @click="addstu()">添加学生</el-button>
|
|
|
<el-button type="primary" size="mini" @click="toComputIsFine()" :disabled="this.defaultOption.classid ? false : true">设置优秀学员</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="toExportList()">导出学生名单</el-button>
|
|
|
+ <!-- <el-button type="primary" size="mini" @click="toExportList()">导出学生名单</el-button> -->
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<data-table :fields="fields" :data="list" :opera="opera" @edit="toEdit" @delete="toDelete" @post="toPost"> </data-table>
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
// 导出学生名单
|
|
|
async toExportList() {
|
|
|
const msg = this.$message({ duration: 0, message: '正在导出,请稍后...' });
|
|
|
- const res = await this.toExport({ type: 'class', classid: this.id });
|
|
|
+ const res = await this.toExport({ type: 'class', classid: this.id, planid: _.get(this, 'defaultOption.planid') });
|
|
|
msg.close();
|
|
|
if (this.$checkRes(res)) {
|
|
|
const { data } = res;
|