Blame view

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