|
@@ -9,7 +9,7 @@
|
|
|
<script>
|
|
|
import listFrame from '@frame/layout/admin/list-frame';
|
|
|
import dataTable from '@frame/components/data-table';
|
|
|
-import { createNamespacedHelpers } from 'vuex';
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: mapStu } = createNamespacedHelpers('student');
|
|
|
export default {
|
|
|
metaInfo: { title: '班级管理' },
|
|
@@ -45,6 +45,7 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
termid() {
|
|
|
return this.$route.query.termid;
|
|
|
},
|
|
@@ -52,7 +53,7 @@ export default {
|
|
|
methods: {
|
|
|
...mapStu(['query', 'delete']),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.query({ skip, limit, ...info, termid: this.termid });
|
|
|
+ const res = await this.query({ skip, limit, ...info, termid: this.termid, schid: this.user.code });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|