123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <template>
- <section class="content">
- <div class=""><img src="./tips.png" /></div>
- <div class="text">
- <div v-for="(menu1, index) in instructions" :key="index" class="menu1">
- <h4 v-if="menu1.menu2.filter(m => m.canAccess).length > 0">
- {{ menu1.menu1Name }}
- </h4>
- <div v-for="(menu2, index) in menu1.menu2" :key="index" class="menu1">
- <span v-if="menu2.canAccess">
- <router-link :to="menu2.link" class="link">
- {{ menu2.name }}
- </router-link>
- {{ menu2.detail }}
- </span>
- </div>
- </div>
- </div>
- </section>
- </template>
- <script>
- const ALL_INSTRUCTIONS = {
- "/basic/tips": [
- {
- menu1Name: "学习中心查询",
- menu2: [
- {
- name: "机构管理——中心列表",
- link: "/basic/campus",
- detail:
- "查询学校下属所有学习中心编码及名称,可按学习中心设置学习中心平台权限,即A学习中心只能查询A中心的相关考试数据。"
- }
- ]
- },
- {
- menu1Name: "课程查询",
- menu2: [
- {
- name: "课程管理——课程列表",
- link: "/basic/course",
- detail:
- "查看所有课程名称及代码,如一门课程即有专科又有本科,课程对应在的教材、试卷不一样时,需要建立专科课程及本科课程。"
- }
- ]
- },
- {
- menu1Name: "用户查询",
- menu2: [
- {
- name: "用户管理——普通用户管理",
- link: "/basic/user",
- detail:
- "添加、查询、禁用管理平台用户,并可以针对不同用户设置不同的平台模块权限。"
- }
- ]
- }
- ],
- "/examwork/tips": [
- {
- menu1Name: "安排考试",
- menu2: [
- {
- name: "考试管理——考试信息",
- link: "/examwork/examInfo",
- detail: "安排一场在线考试,设置考试开启、结束时间。"
- }
- ]
- },
- {
- menu1Name: "考试课程",
- menu2: [
- {
- name: "考试管理——考生信息",
- // link: "/basic/campus",
- detail: "新增或导入考生报考的相关课程。"
- }
- ]
- },
- {
- menu1Name: "学生档案",
- menu2: [
- {
- name: "学生管理——学生信息",
- // link: "/basic/campus",
- detail: "更新学生的登录名、密码、相片。"
- }
- ]
- }
- ],
- "/questions/tips": [
- {
- menu1Name: "导入试卷",
- menu2: [
- {
- name: "题库管理——导入试卷管理",
- // link: "/basic/campus",
- detail: "可以将word版试卷导入题库,由题库按课程、题型形成题库。"
- }
- ]
- },
- {
- menu1Name: "卷库组卷",
- menu2: [
- {
- name: "卷库管理——考试试卷管理",
- // link: "/basic/campus",
- detail:
- "可按需求将XX课程的所有试题,按分数、题量、题型结构、章节等多种方式进行随机组合,生成若干套试卷。"
- }
- ]
- },
- {
- menu1Name: "考试用卷绑定",
- menu2: [
- {
- name: "考试管理——调卷规则",
- // link: "/basic/campus",
- detail: "来指定在本次考试中使用卷库中的哪一套试卷,及抽卷的比例。"
- }
- ]
- }
- ],
- "/oe/tips": [
- {
- menu1Name: "考试过程监考",
- menu2: [
- {
- name: "网考管理——监考待审",
- // link: "/oe/campus",
- detail: "列出所有考生考试过程中的数据,并提示出违纪数据审核。"
- }
- ]
- },
- {
- menu1Name: "考试明细查询",
- menu2: [
- {
- name: "统计报表——考试明细",
- // link: "/oe/campus",
- detail:
- "需要查询学生所有作答的试卷,可以在考试明细中输入学生信息进行查询考试时间、违纪情况、客观题得分、答卷等。"
- }
- ]
- },
- {
- menu1Name: "考试完成进度查询",
- menu2: [
- {
- name: "考试进度——考试概览",
- // link: "/oe/campus",
- detail: "可以查看按考试、学习中心、课程数来查看考试完成的进度。"
- }
- ]
- },
- {
- menu1Name: "考试完成进度查询",
- menu2: [
- {
- name: "考试进度——考试进度详情",
- // link: "/oe/campus",
- detail: "可以查看按考试的人数、学习中心、查看考生的完成情况。"
- }
- ]
- }
- ],
- "/print/tips": [
- {
- menu1Name: "项目管理",
- menu2: [
- {
- name: "项目管理——项目列表",
- link: "/print/project/list",
- detail:
- "查询学校下传统考试的统计概况信息,如考生人数,试卷数、试卷印刷数量等相关数据。"
- }
- ]
- }
- ]
- };
- import { mapState } from "vuex";
- export default {
- name: "Tips",
- data() {
- return {
- instructions: []
- };
- },
- computed: { ...mapState({ menuList: state => state.menuList }) },
- methods: {},
- created() {
- this.instructions = ALL_INSTRUCTIONS[this.$route.path];
- },
- watch: {
- menuList() {
- const tipsLink = this.menuList.map(m => m.ext5);
- this.instructions.map(menu => {
- menu.menu2 = menu.menu2.map(m => {
- if (tipsLink.includes(m.link)) {
- m.canAccess = true;
- } else {
- m.canAccess = false;
- }
- return m;
- });
- return menu;
- });
- }
- }
- };
- </script>
- <style scoped>
- .content {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- width: 100%;
- /* margin: 100px; */
- }
- .text {
- max-width: 600px;
- margin: 0 20px;
- }
- .menu1 {
- margin-bottom: 20px;
- }
- .link {
- padding: 0em 1em;
- background-color: #dbe7ef;
- border-radius: 12px;
- color: #3c8dbd;
- }
- </style>
|