Blame view

src/api/apis/answerSheet.js 1.54 KB
65f592b6   梁保满   答题卡列表页
1
2
3
4
5
6
7
8
9
10
11
12
13
  
  import axios from "../axios"
  import answerSheet from "../urls/answerSheet"
  
  export default {
    // 答题卡列表
    fetchAnswerList(data) {
      return axios({
        url: answerSheet.answerList,
        method: 'POST',
        data
      })
    },
13b58a42   梁保满   备题组卷部分前端页面基本完成
14
    // 测验类型
65f592b6   梁保满   答题卡列表页
15
16
17
18
19
20
21
    fetchTypeNames(data) {
      return axios({
        url: answerSheet.typeNames,
        method: 'POST',
        data
      })
    },
13b58a42   梁保满   备题组卷部分前端页面基本完成
22
    // 班级列表
65f592b6   梁保满   答题卡列表页
23
24
25
26
27
28
29
    fetchClassList(data) {
      return axios({
        url: answerSheet.classList,
        method: 'POST',
        data
      })
    },
13b58a42   梁保满   备题组卷部分前端页面基本完成
30
    // 科目列表
65f592b6   梁保满   答题卡列表页
31
32
33
34
35
36
37
    fetchSubjectList(data) {
      return axios({
        url: answerSheet.subjectList,
        method: 'POST',
        data
      })
    },
13b58a42   梁保满   备题组卷部分前端页面基本完成
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
    // 年级列表
    fetchGradeList(data) {
      return axios({
        url: answerSheet.gradeList,
        method: 'POST',
        data
      })
    },
    // 添加测验类型
    addAnswerTypeName(data) {
      return axios({
        url: answerSheet.addAnswerTypeName,
        method: 'POST',
        data
      })
    },
    // 保存答题卡
    saveAnswerSheet(data) {
      return axios({
        url: answerSheet.saveAnswerSheet,
        method: 'POST',
        data
      })
    },
    // 删除答题卡
    removeAnswerSheet(data) {
      return axios({
        url: answerSheet.removeAnswerSheet,
        method: 'POST',
        data
      })
    },
    // 恢复答题卡
    useAnswerSheet(data) {
      return axios({
        url: answerSheet.useAnswerSheet,
        method: 'POST',
        data
      })
    },
    // 恢复答题卡
    updateAnswerSheet(data) {
      return axios({
        url: answerSheet.updateAnswerSheet,
        method: 'POST',
        data
      })
    },
65f592b6   梁保满   答题卡列表页
86
  }