|
@@ -36,6 +36,9 @@
|
|
|
<detail-frame title="学生名签" v-if="view == 'nameList'" :returns="toReturns">
|
|
|
<name-card :list="studList"></name-card>
|
|
|
</detail-frame>
|
|
|
+ <detail-frame title="打印证书" v-if="view == 'certList'" :returns="toReturns">
|
|
|
+ <cert-card :list="studList"></cert-card>
|
|
|
+ </detail-frame>
|
|
|
<detail-frame title="学生报道表" v-if="view == 'signList'" :returns="toReturns">
|
|
|
<sign-list :list="studList"></sign-list>
|
|
|
</detail-frame>
|
|
@@ -47,6 +50,7 @@ import _ from 'lodash';
|
|
|
import signList from './parts/print-sign';
|
|
|
import dataTable from '@frame/components/filter-page-table';
|
|
|
import nameCard from '@/views/student/namCard.vue';
|
|
|
+import certCard from '@/views/student/certCard.vue';
|
|
|
import listFrame from '@frame/layout/admin/list-frame';
|
|
|
import detailFrame from '@frame/layout/admin/detail-frame';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
@@ -56,7 +60,7 @@ const { mapActions: student } = createNamespacedHelpers('student');
|
|
|
export default {
|
|
|
name: 'print',
|
|
|
props: {},
|
|
|
- components: { listFrame, nameCard, detailFrame, dataTable, signList },
|
|
|
+ components: { listFrame, nameCard, certCard, detailFrame, dataTable, signList },
|
|
|
data: function() {
|
|
|
return {
|
|
|
view: 'list',
|
|
@@ -136,8 +140,11 @@ export default {
|
|
|
if (this.$checkRes(res)) this.$set(this, `studList`, res.data);
|
|
|
this.view = 'signList';
|
|
|
},
|
|
|
- certList({ data }) {
|
|
|
- console.log(this.classList);
|
|
|
+ async certList({ data }) {
|
|
|
+ let { _id: classid } = data;
|
|
|
+ let res = await this.getStudentList({ classid });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `studList`, res.data);
|
|
|
+ this.view = 'certList';
|
|
|
},
|
|
|
classLesson({ data }) {
|
|
|
console.log(this.classList);
|