|
@@ -38,7 +38,7 @@
|
|
|
<name-card v-loading="loading" :list="studList"></name-card>
|
|
|
</detail-frame>
|
|
|
<detail-frame title="打印证书" v-if="view == 'certList'" :returns="toReturns">
|
|
|
- <cert-card :list="studList" :startdate="startdate" :enddate="enddate"></cert-card>
|
|
|
+ <cert-card :list="certstuList" :startdate="startdate" :enddate="enddate"></cert-card>
|
|
|
</detail-frame>
|
|
|
<detail-frame title="学生报到表" v-if="view == 'signList'" :returns="toReturns">
|
|
|
<sign-list v-loading="loading" :list="studList"></sign-list>
|
|
@@ -67,6 +67,7 @@ const { mapActions: util } = createNamespacedHelpers('util');
|
|
|
const { mapActions: location } = createNamespacedHelpers('location'); //地点
|
|
|
const { mapActions: teacher } = createNamespacedHelpers('teacher'); //教师
|
|
|
const { mapActions: director } = createNamespacedHelpers('director'); //教师
|
|
|
+const { mapActions: cerconfirm } = createNamespacedHelpers('cerconfirm');
|
|
|
|
|
|
export default {
|
|
|
name: 'print',
|
|
@@ -112,6 +113,8 @@ export default {
|
|
|
lth: [], //table表头
|
|
|
ltr: [], //table y轴
|
|
|
lessons: [], //原始课表,取出来什么样就什么样
|
|
|
+ // 证书列表
|
|
|
+ certstuList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -125,6 +128,7 @@ export default {
|
|
|
...location({ getLocation: 'fetch' }),
|
|
|
...teacher({ getTeacher: 'fetch' }),
|
|
|
...director({ getDirector: 'fetch' }),
|
|
|
+ ...cerconfirm({ cerconfirmQuery: 'query' }),
|
|
|
async searchinfo() {
|
|
|
const res = await this.planfetch(this.defaultOption.planid);
|
|
|
let terms = res.data.termnum;
|
|
@@ -187,9 +191,9 @@ export default {
|
|
|
},
|
|
|
async certList({ data }) {
|
|
|
let { _id: classid, enddate, startdate } = data;
|
|
|
- let res = await this.getStudentList({ classid });
|
|
|
+ let res = await this.cerconfirmQuery({ classid });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `studList`, res.data);
|
|
|
+ this.$set(this, `certstuList`, res.data);
|
|
|
this.$set(this, `startdate`, startdate);
|
|
|
this.$set(this, `enddate`, enddate);
|
|
|
}
|