Blame view

src/views/basic/test/analysis.vue 2.47 KB
4c4f7640   梁保满   路由表,路由前端文件
1
  <template>
e371f2dc   梁保满   软件下载,学校,班级老师等报表导入...
2
    <div ref="main" class="page-container">
f356590c   阿宝   即时测列表,分析页面
3
4
      <back-box>
        <template slot="title">
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
5
6
7
8
9
10
11
12
13
          <span>{{
            type == 1
              ? "单卷测练报表"
              : type == 2
              ? subjectName + "汇总报表"
              : type == 3
              ? "多科汇总报表"
              : `多班_${subjectName}_${title}_测练成绩对比分析`
          }}</span>
f356590c   阿宝   即时测列表,分析页面
14
15
        </template>
      </back-box>
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
      <Test
        v-if="type == 1"
        :role="role"
        :id="id"
        :classId="classId"
        :subjectName="subjectName"
        :title="title"
        :score="score"
        :examType="examType"
      />
      <MultipleTest
        v-else-if="type == 2"
        :role="role"
        :ids="ids"
        :classId="classId"
        :subjectName="subjectName"
      />
      <MultipleSubTest
        v-else-if="type == 3"
        :role="role"
        :ids="ids"
        :classId="classId"
        :subjectName="subjectName"
      />
      <Contrast
        v-else-if="type == 4"
        :role="role"
        :ids="ids"
        :subjectName="subjectName"
        :title="title"
      />
f356590c   阿宝   即时测列表,分析页面
47
    </div>
4c4f7640   梁保满   路由表,路由前端文件
48
49
50
  </template>
  
  <script>
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
51
52
53
54
  import Test from "./components/test.vue";
  import MultipleTest from "./components/multipleTest.vue";
  import MultipleSubTest from "./components/multipleSubTest.vue";
  import Contrast from "./components/contrast.vue";
4c4f7640   梁保满   路由表,路由前端文件
55
  export default {
079cb4cf   梁保满   即时测导出
56
57
58
59
    components: {
      Test,
      MultipleTest,
      MultipleSubTest,
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
60
      Contrast,
079cb4cf   梁保满   即时测导出
61
    },
f356590c   阿宝   即时测列表,分析页面
62
63
    data() {
      return {
167079c6   梁保满   班主任隐藏查看题目
64
        role: "",
f356590c   阿宝   即时测列表,分析页面
65
        id: "",
079cb4cf   梁保满   即时测导出
66
        ids: [],
e5e4a3e6   梁保满   v1.3
67
        type: 0,
079cb4cf   梁保满   即时测导出
68
        classId: "",
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
69
70
71
72
        subjectName: "",
        title: "",
        score: 0,
        examType: 2,
f356590c   阿宝   即时测列表,分析页面
73
74
75
      };
    },
    created() {
167079c6   梁保满   班主任隐藏查看题目
76
77
78
      this.role =
        this.$store.getters.info.showRole ||
        this.$store.getters.info.permissions[0].role;
079cb4cf   梁保满   即时测导出
79
      this.id = this.$route.query.id || "";
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
80
      this.examType = this.$route.query.examType || 2;
384a2a54   梁保满   请求头添加班主任信息,bug修改
81
      this.score = Number(this.$route.query.score) || 0;
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
82
83
84
      this.ids =
        (this.$route.query.ids && this.$route.query.ids.split(",")) || [];
      this.type = this.$route.query.type;
3ac930bd   梁保满   低分设置
85
      this.classId = this.$route.query.classId || "";
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
86
87
      this.title = this.$route.query.title || "";
      this.subjectName = this.$route.query.subjectName || "";
f356590c   阿宝   即时测列表,分析页面
88
    },
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
89
    methods: {},
f356590c   阿宝   即时测列表,分析页面
90
  };
4c4f7640   梁保满   路由表,路由前端文件
91
  </script>
f356590c   阿宝   即时测列表,分析页面
92
  <style lang="scss" scoped>
9309dc5d   梁保满   任课老师接口完成
93
94
  .page-container {
    position: relative;
255e2506   梁保满   飞书bug及优化
95
    height: 100%;
079cb4cf   梁保满   即时测导出
96
  
255e2506   梁保满   飞书bug及优化
97
98
99
    .table-box {
      min-height: 100%;
    }
079cb4cf   梁保满   即时测导出
100
  
9309dc5d   梁保满   任课老师接口完成
101
    &.active {
9309dc5d   梁保满   任课老师接口完成
102
103
      overflow: hidden;
    }
533a17d8   梁保满   备题组卷添加批量设置答案
104
  }
079cb4cf   梁保满   即时测导出
105
  
9309dc5d   梁保满   任课老师接口完成
106
107
108
  .error {
    color: #f30;
  }
079cb4cf   梁保满   即时测导出
109
  
f356590c   阿宝   即时测列表,分析页面
110
111
112
  .page-content {
    padding: 20px 20px 0;
  }
079cb4cf   梁保满   即时测导出
113
  
9309dc5d   梁保满   任课老师接口完成
114
115
116
117
118
119
  .down {
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
4c4f7640   梁保满   路由表,路由前端文件
120
  </style>