WANG 6 年之前
父節點
當前提交
4a9fdaf31f

+ 0 - 0
src/modules/examwork/.ignore


+ 2 - 0
src/modules/examwork/constants/constants.js

@@ -0,0 +1,2 @@
+export const core_api = "/api/ecs_core";
+export const exam_work_api = "/api/ecs_exam_work";

+ 17 - 0
src/modules/examwork/routes/routes.js

@@ -0,0 +1,17 @@
+import Home from "../../portal/views/home/Home.vue";
+import student from "../view/student.vue";
+
+export default [
+  {
+    path: "/examwork", //考务
+    meta: { auth: false },
+    component: Home,
+    children: [
+      {
+        path: "student", //学生管理
+        meta: { pageName: "学生管理" },
+        component: student
+      }
+    ]
+  }
+];

+ 45 - 0
src/modules/examwork/view/student.vue

@@ -0,0 +1,45 @@
+<template>
+  <div>
+    <section class="content" style="margin-top: -10px;">
+      <div class="box box-info">
+        <!-- 头信息 -->
+        <div
+          class="box-header with-border"
+          style="background-color:#D3DCE6;margin-bottom:20px;"
+        >
+          <h3 class="box-title">学生管理</h3>
+          <div class="box-tools pull-right">
+            <button
+              type="button"
+              class="btn btn-box-tool"
+              data-widget="collapse"
+            >
+              <i class="fa fa-minus"></i>
+            </button>
+          </div>
+        </div>
+
+        <!-- 正文信息 -->
+        <div class="box-body"></div>
+      </div>
+    </section>
+  </div>
+</template>
+<script>
+import { core_api } from "../constants/constants.js";
+import { mapState } from "vuex";
+
+export default {
+  data() {
+    return {};
+  },
+  computed: {
+    ...mapState({ user: state => state.user })
+  },
+  methods: {},
+  //初始化查询
+  created() {}
+};
+</script>
+
+<style scoped></style>

+ 2 - 0
src/router.js

@@ -2,6 +2,7 @@ import Vue from "vue";
 import Router from "vue-router";
 import PortalRoutes from "./modules/portal/routes/routes";
 import BasicRoutes from "./modules/basic/routes/routes";
+import examworkRoutes from "./modules/examwork/routes/routes";
 import MarklRoutes from "./modules/marking/routes/routes";
 import QuestionsRoutes from "./modules/questions/routes/routes";
 import OeRoutes from "./modules/oe/routes/routes";
@@ -14,6 +15,7 @@ let router = new Router({
   routes: [
     ...PortalRoutes,
     ...BasicRoutes,
+    ...examworkRoutes,
     ...MarklRoutes,
     ...QuestionsRoutes,
     ...OeRoutes,