constants.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export const CORE_API = "/api/ecs_core"; //基础信息API
  2. export const EXAM_WORK_API = "/api/ecs_exam_work"; //考务信息API
  3. export const MARKING_API = "/api/ecs_marking"; //阅卷API
  4. export const DATA_PROCESS_API = "/api/ecs_data_process"; //数据中间层API
  5. export const OE_API = "/api/ecs_oe"; //网考API
  6. export const Q_API = "/api/ecs_ques"; //题库API
  7. export const UPAI_YUN = "http://exam-cloud-test.b0.upaiyun.com"; //又拍云前端显示
  8. export const LEVEL_TYPE = [
  9. { label: "专升本", value: "ZSB" },
  10. { label: "高起专", value: "GQZ" },
  11. { label: "不限", value: "ALL" }
  12. ];
  13. import Vue from "vue";
  14. //标记卷类型
  15. export const TAGS = [
  16. { label: "雷同卷", value: "SAME" },
  17. { label: "空白卷", value: "BLANK" },
  18. { label: "答非所问", value: "IRRELEVANT" },
  19. { label: "科目错误", value: "SUBJECT_ERROR" },
  20. { label: "非手写", value: "QUESTIONABLE" }
  21. ];
  22. //标记卷过滤器
  23. Vue.filter("tagFilter", function(val) {
  24. for (let tag of TAGS) {
  25. if (tag.value === val) {
  26. return tag.label;
  27. }
  28. }
  29. });
  30. //考试类型
  31. export const EXAMTYPES = [
  32. { label: "在线考试", value: "ONLINE" },
  33. { label: "离线考试", value: "OFFLINE" },
  34. { label: "传统考试", value: "TRADITION" },
  35. { label: "练习", value: "PRACTICE" }
  36. ];
  37. //考试类型过滤器
  38. Vue.filter("examTypeFilter", function(val) {
  39. for (let examType of EXAMTYPES) {
  40. if (examType.value === val) {
  41. return examType.label;
  42. }
  43. }
  44. });
  45. export const EVENTHUB = new Vue();