Blame view

src/views/basic/test/analysis.vue 2.51 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
      <Test
        v-if="type == 1"
        :role="role"
        :id="id"
7222c2eb   梁保满   汇总前置条件修改,教学,行政可汇总
20
        :classIds="classIds"
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
21
22
23
24
25
26
27
28
29
        :subjectName="subjectName"
        :title="title"
        :score="score"
        :examType="examType"
      />
      <MultipleTest
        v-else-if="type == 2"
        :role="role"
        :ids="ids"
7222c2eb   梁保满   汇总前置条件修改,教学,行政可汇总
30
        :classIds="classIds"
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
31
32
33
34
35
36
        :subjectName="subjectName"
      />
      <MultipleSubTest
        v-else-if="type == 3"
        :role="role"
        :ids="ids"
7222c2eb   梁保满   汇总前置条件修改,教学,行政可汇总
37
        :classIds="classIds"
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
38
39
40
41
42
43
44
45
46
        :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,
7222c2eb   梁保满   汇总前置条件修改,教学,行政可汇总
68
        classIds: [],
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;
7222c2eb   梁保满   汇总前置条件修改,教学,行政可汇总
85
      this.classIds = this.$route.query.classIds || [];
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
86
87
      this.title = this.$route.query.title || "";
      this.subjectName = this.$route.query.subjectName || "";
c354920a   梁保满   即时测设置低分值,设置分数未刷新
88
      console.log(this.classIds)
f356590c   阿宝   即时测列表,分析页面
89
    },
03cd547e   梁保满   单体型以及其他类型试卷修改答案逻辑
90
    methods: {},
f356590c   阿宝   即时测列表,分析页面
91
  };
4c4f7640   梁保满   路由表,路由前端文件
92
  </script>
f356590c   阿宝   即时测列表,分析页面
93
  <style lang="scss" scoped>
9309dc5d   梁保满   任课老师接口完成
94
95
  .page-container {
    position: relative;
255e2506   梁保满   飞书bug及优化
96
    height: 100%;
079cb4cf   梁保满   即时测导出
97
  
255e2506   梁保满   飞书bug及优化
98
99
100
    .table-box {
      min-height: 100%;
    }
079cb4cf   梁保满   即时测导出
101
  
9309dc5d   梁保满   任课老师接口完成
102
    &.active {
9309dc5d   梁保满   任课老师接口完成
103
104
      overflow: hidden;
    }
533a17d8   梁保满   备题组卷添加批量设置答案
105
  }
079cb4cf   梁保满   即时测导出
106
  
9309dc5d   梁保满   任课老师接口完成
107
108
109
  .error {
    color: #f30;
  }
079cb4cf   梁保满   即时测导出
110
  
f356590c   阿宝   即时测列表,分析页面
111
112
113
  .page-content {
    padding: 20px 20px 0;
  }
079cb4cf   梁保满   即时测导出
114
  
9309dc5d   梁保满   任课老师接口完成
115
116
117
118
119
120
  .down {
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
4c4f7640   梁保满   路由表,路由前端文件
121
  </style>