소스 검색

add print module.

deason 6 년 전
부모
커밋
873d8f47e9

+ 5 - 0
src/modules/portal/views/home/HomeSide.vue

@@ -72,6 +72,11 @@ const routesToMenu = [
   {
     path: "/portal",
     groupCode: "PORTAL_MENUS"
+  },
+  {
+    path: "/print",
+    name: "印刷管理",
+    groupCode: "PRINT_MENUS"
   }
 ];
 

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


+ 15 - 0
src/modules/print/constants/constants.js

@@ -0,0 +1,15 @@
+export const core_api = "/api/ecs_core";
+export const exam_work_api = "/api/ecs_exam_work";
+export const question_api = "/api/ecs_ques";
+export const print_api = "/api/ecs_prt";
+
+export const coursePaperStatusList = [
+  { value: 0, label: "无" },
+  { value: 1, label: "未指定" },
+  { value: 2, label: "已有" }
+];
+
+export const groupTypeList = [
+  { value: "LEARN_CENTER", label: "学习中心" },
+  { value: "EXAM_SITE", label: "考点" }
+];

+ 36 - 0
src/modules/print/routes/routes.js

@@ -0,0 +1,36 @@
+import Home from "../../portal/views/home/Home.vue";
+import Project from "../view/Project.vue";
+import ProjectStatistic from "../view/ProjectStatistic.vue";
+import CourseStatistic from "../view/CourseStatistic.vue";
+import ProjectTemplate from "../view/ProjectTemplate.vue";
+import ExamStructure from "../view/ExamStructure.vue";
+
+export default [
+  {
+    path: "/print" /* 印刷管理 */,
+    meta: { auth: false },
+    component: Home,
+    children: [
+      {
+        path: "/print/project/list" /* 项目列表 */,
+        component: Project
+      },
+      {
+        path: "/print/project/statistic/:orgId/:examId" /* 项目统计 */,
+        component: ProjectStatistic
+      },
+      {
+        path: "/print/course/statistic" /* 课程统计 */,
+        component: CourseStatistic
+      },
+      {
+        path: "/print/project/template" /* 模板页面 */,
+        component: ProjectTemplate
+      },
+      {
+        path: "/print/exam/structure" /* 考试结构 */,
+        component: ExamStructure
+      }
+    ]
+  }
+];

+ 3 - 0
src/modules/print/view/CourseStatistic.vue

@@ -0,0 +1,3 @@
+<template>
+  <div><h1>todo 课程统计</h1></div>
+</template>

+ 3 - 0
src/modules/print/view/ExamStructure.vue

@@ -0,0 +1,3 @@
+<template>
+  <div><h1>todo 考试结构</h1></div>
+</template>

+ 3 - 0
src/modules/print/view/Project.vue

@@ -0,0 +1,3 @@
+<template>
+  <div><h1>todo 项目列表</h1></div>
+</template>

+ 3 - 0
src/modules/print/view/ProjectStatistic.vue

@@ -0,0 +1,3 @@
+<template>
+  <div><h1>todo 项目统计</h1></div>
+</template>

+ 3 - 0
src/modules/print/view/ProjectTemplate.vue

@@ -0,0 +1,3 @@
+<template>
+  <div><h1>todo 模板页面</h1></div>
+</template>

+ 3 - 1
src/router.js

@@ -5,6 +5,7 @@ import BasicRoutes from "./modules/basic/routes/routes";
 import MarklRoutes from "./modules/marking/routes/routes";
 import QuestionsRoutes from "./modules/questions/routes/routes";
 import OeRoutes from "./modules/oe/routes/routes";
+import PrintRoutes from "./modules/print/routes/routes";
 
 Vue.use(Router);
 
@@ -15,7 +16,8 @@ let router = new Router({
     ...BasicRoutes,
     ...MarklRoutes,
     ...QuestionsRoutes,
-    ...OeRoutes
+    ...OeRoutes,
+    ...PrintRoutes
   ]
 });