reloaded 4 lat temu
rodzic
commit
a3aebe1671
3 zmienionych plików z 22 dodań i 1 usunięć
  1. 17 0
      src/layout/class/stuList.vue
  2. 2 0
      src/store/index.js
  3. 3 1
      src/views/class/index.vue

+ 17 - 0
src/layout/class/stuList.vue

@@ -0,0 +1,17 @@
+<template>
+  <div id="stuList"></div>
+</template>
+
+<script>
+export default {
+  name: 'stuList',
+  props: {},
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 2 - 0
src/store/index.js

@@ -6,6 +6,7 @@ import classes from '@frame/store/classes';
 import director from '@frame/store/director';
 import lesson from '@frame/store/lesson';
 import teacher from '@frame/store/teacher';
+import student from '@frame/store/student';
 
 import * as ustate from '@frame/store/user/state';
 import * as umutations from '@frame/store/user/mutations';
@@ -22,5 +23,6 @@ export default new Vuex.Store({
     director,
     lesson,
     teacher,
+    student,
   },
 });

+ 3 - 1
src/views/class/index.vue

@@ -6,7 +6,7 @@
           <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">
-          班級名單
+          <stuList></stuList>
         </el-col>
         <el-col :span="24" class="foot">
           <footInfo></footInfo>
@@ -19,6 +19,7 @@
 <script>
 import NavBar from '@/layout/common/topInfo.vue';
 import footInfo from '@/layout/common/footInfo.vue';
+import stuList from '@/layout/class/stuList.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 export default {
   name: 'index',
@@ -26,6 +27,7 @@ export default {
   components: {
     NavBar,
     footInfo,
+    stuList,
   },
   data: function() {
     return {