| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697 |
- import request from '@/utils/request'
- /// 科目列表
- export function getPaperSubjects(query) {
- // 2025.10.16 科目更新和组卷类型有关系
- // query: {buildType}
- return request({
- url: '/learn/teaching/subjects',
- method: 'get',
- params: query
- })
- }
- /// 科目列表
- export function getPaperKnowledges(query) {
- // 2025.10.16 科目更新和组卷类型有关系
- // query: {
- // 定向条件:universityId,majorId,majorPlanId
- // 全量条件:examType,subjectId
- // }
- return request({
- url: '/learn/teaching/knowledges',
- method: 'get',
- params: query
- })
- }
- /// 省份列表
- export function getPaperProvinces(query) {
- return request({
- url: '/learn/teaching/provinces',
- method: 'get',
- params: query
- })
- }
- /// 考生类型
- export function getPaperExamTypes(query) {
- // query: {} // 2025.10.16 科目更新和组卷类型有关系,应该不需要参数了
- return request({
- url: '/learn/teaching/examTypes',
- method: 'get',
- params: {location: '湖南', ...query}
- })
- }
- /// 院校
- export function getPaperUniversities(query) {
- // query: {batchId}
- return request({
- url: '/learn/teaching/universities',
- method: 'get',
- params: query
- })
- }
- /// 专业组
- export function getPaperMajors(query) {
- // query: {location, examType, batchId, universityId}
- return request({
- url: '/learn/teaching/majors',
- method: 'get',
- params: query
- })
- }
- /// 试卷批次
- export function getPaperBatches() {
- return request({
- url: '/learn/test/list',
- method: 'get'
- })
- }
- /// 试卷题型
- export function getPaperQuestionTypes(query) {
- // query: {subjectId, majorPlanId}
- return request({
- url: '/learn/teaching/questionTypes',
- method: 'get',
- params: query
- })
- }
- // 试卷试题
- export function getPaperQuestions(query) {
- // query: {...}
- return request({
- url: '/learn/questions/list',
- method: 'get',
- params: query
- })
- }
- // 班级
- export function getPaperClasses(query) {
- return request({
- url: '/learn/teaching/classes',
- method: 'get',
- params: query
- })
- }
- // 学生
- export function getPaperStudents(query) {
- return request({
- url: '/learn/teaching/students',
- method: 'get',
- params: query
- })
- }
- export function getPaperDetail(query) {
- return request({
- url: '/learn/teaching/paper',
- method: 'get',
- params: query
- })
- }
- export function getPaperClassStatistic(query) {
- // 2025.10.16 新增班级统计,用于组卷生成
- // const queryDemo = {
- // buildType: '', // 试卷构建类型,定义枚举?
- // batchId: '', // 批次
- // examType: '',
- // subjectId: '',
- // universityId: '',
- // majorGroup: '',
- // majorPlanId: ''
- // }
- // const responseDemo = {
- // classId: '',
- // className: '',
- // total: '',
- // built: '',
- // sent: '',
- // finished: '',
- // exact: '',
- // exactNew: '',
- // lastBuiltTime: '',
- // lastSentTime: ''
- // }
- return request({
- url: '/learn/teaching/classStatistic',
- method: 'get',
- params: query
- })
- }
- export function buildPaperExactIntelligent(data) {
- // {buildType, batchId, classIds}
- return request({
- url: '/learn/teaching/build/exactIntelligent',
- method: 'post',
- data
- })
- }
- export function buildPaperFullIntelligent(data) {
- // {buildType, batchId, examType, subjectId, classIds}
- return request({
- url: '/learn/teaching/build/fullIntelligent',
- method: 'post',
- data
- })
- }
- export function buildPaperExactHand(data) {
- // {buildType, batchId, universityId, majorId, majorPlanId, classIds, questions}
- return request({
- url: '/learn/teaching/build/exactHand',
- method: 'post',
- data
- })
- }
- export function buildPaperFullHand(data) {
- // {buildType, batchId, examType, subjectId, questions}
- return request({
- url: '/learn/teaching/build/fullHand',
- method: 'post',
- data
- })
- }
- export function getBuiltPaper(params) {
- // 与上面的4个build接口参数一样,只不过走1个接口,返回试卷详情
- // // TODO: remove test code
- // return Promise.resolve({
- // code: 200,
- // data: {
- // paperId: 1,
- // paperName: '试卷名称',
- // questions: [
- // {
- // "createBy": null,
- // "createTime": "2025-09-15 03:12:52",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 1,
- // "title": "获取信息最常用、最快捷、最方便、最可靠的方法就是从因特网上检索信息",
- // "optionA": "对",
- // "optionB": "错",
- // "optionC": null,
- // "optionD": null,
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "B",
- // "answer2": "B",
- // "qtpye": "判断题",
- // "subjectId": 10,
- // "paperId": null,
- // "knowledgeId": 2533,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10026648",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 0,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-14 21:06:24",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 2,
- // "title": "( ) 抗损性强、可折叠、可局部穿孔、可局部切割。",
- // "optionA": "二维条码",
- // "optionB": "磁卡",
- // "optionC": "IC卡",
- // "optionD": "光卡",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "A",
- // "answer2": "A",
- // "qtpye": "单选题",
- // "subjectId": 12,
- // "paperId": null,
- // "knowledgeId": 2278,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "本题主要考查信息编码。磁卡、IC卡、光卡均不可折叠,抗损性差。二维条码抗损性强、可折叠、可局部穿孔、可局部切割,故本题选A选项。",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10036700",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 1,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-14 21:27:53",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 3,
- // "title": "字号中阿拉伯字号越大,表示字符越____;中文字号越小,表示字符越____。",
- // "optionA": "大、小",
- // "optionB": "小、大",
- // "optionC": "不变",
- // "optionD": "大、大",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "D",
- // "answer2": "D",
- // "qtpye": "单选题",
- // "subjectId": 12,
- // "paperId": null,
- // "knowledgeId": 2297,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "字号中阿拉伯字号越大,表示字符越大中文字号越小,表示字符越大。",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10048401",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 1,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-14 21:18:58",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 4,
- // "title": "打开Excel后会自动创建一个名为Book1的文件,该文件扩展名为()",
- // "optionA": "PPT",
- // "optionB": "DBF",
- // "optionC": "XLS",
- // "optionD": "DOC",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "C",
- // "answer2": "C",
- // "qtpye": "单选题",
- // "subjectId": 12,
- // "paperId": null,
- // "knowledgeId": 2282,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "Excel电子表格文件的扩展名是xls。",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10053344",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 1,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-15 04:38:31",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 5,
- // "title": "力使物体产生转动的效果与矩心的位置()。\n ",
- // "optionA": "有关",
- // "optionB": "无关",
- // "optionC": "有时有关",
- // "optionD": "说不清",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "A",
- // "answer2": "A",
- // "qtpye": "单选题",
- // "subjectId": 22,
- // "paperId": null,
- // "knowledgeId": 2487,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10072901",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 1,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-15 02:11:16",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 6,
- // "title": "小明使用Excel统计自己一年来的收入情况,在单元格B3到B14中,依次存放了从一月到十二月的收入情况,想在单元格B15中求出一年的平均月收入,应选用公式()",
- // "optionA": "AVERAGE(B3:B14)",
- // "optionB": "SUM(B3:B14)",
- // "optionC": "AVERAGE(B1:B14)",
- // "optionD": "AVERAGE(B3:B15)",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "A",
- // "answer2": "A",
- // "qtpye": "单选题",
- // "subjectId": 12,
- // "paperId": null,
- // "knowledgeId": 2264,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "想在单元格B15中求出一年的平均月收入,可使用求平均值函数AVERAGE(),求值区域是B3:B14,故应选用公式AVERAGE(B3:B14)。",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10075149",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 0,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // },
- // {
- // "createBy": null,
- // "createTime": "2025-09-14 21:06:24",
- // "updateBy": null,
- // "updateTime": null,
- // "remark": null,
- // "id": 7,
- // "title": "当前,在计算机应用方面已进入以()为特征的时代。",
- // "optionA": "并行处理技术",
- // "optionB": "分布式系统",
- // "optionC": "微型计算机",
- // "optionD": "计算机网络",
- // "optionE": null,
- // "optionF": null,
- // "optionG": null,
- // "answer1": "D",
- // "answer2": "D",
- // "qtpye": "单选题",
- // "subjectId": 12,
- // "paperId": null,
- // "knowledgeId": 2278,
- // "diff": 0,
- // "similarity": 0,
- // "parse": "当前,在计算机应用方面已进入以计算机网络为特征的时代。",
- // "knowId": null,
- // "gradeId": -1,
- // "knowledges": null,
- // "area": null,
- // "year": 2025,
- // "paperTpye": null,
- // "source": "聚恒普高",
- // "fromSite": "",
- // "isSub": null,
- // "isNormal": null,
- // "isKonw": null,
- // "tiid": "10117673",
- // "md5": null,
- // "isunique": null,
- // "md52": null,
- // "score": 1,
- // "options": null,
- // "number": null,
- // "paperTypeTitle": null,
- // "options0": null,
- // "title0": "",
- // "title1": null,
- // "parse0": null,
- // "answer0": null,
- // "isUpdate": 0,
- // "isSubType": "0",
- // "typeId": null,
- // "userId": null,
- // "collect": false
- // }
- // ]
- // }
- // })
- return request({
- url: '/learn/teaching/build/getBuiltPaper',
- method: 'get',
- params
- })
- }
- export function getPaperClassRecords(params) {
- // {id: 1, buildType: '定向智能', classId: 1, className: '2501班', batchName: '第一批', total: 50, unexact: 10, exact: 40, unsend: 10, send: 20, unfinish: 5, finish: 15}
- // // TODO: remove test code
- // return Promise.resolve({
- // code: 200,
- // total: 1,
- // rows: [
- // {
- // buildType: 'ExactIntelligent',
- // classId: 1,
- // className: '2501班',
- // batchId: 1,
- // batchName: '第一批',
- // total: 50,
- // unexact: 10,
- // exact: 40,
- // unsend: 10,
- // send: 20,
- // unfinish: 5,
- // finish: 15
- // }
- // ]
- // })
- return request({
- url: '/learn/teaching/getPaperClassRecords',
- method: 'get',
- params
- })
- }
- export function getPaperStudentRecords(params) {
- // // TODO: remove test code
- // return Promise.resolve({
- // code: 200,
- // data: [{
- // studentId: 1,
- // studentName: '张三',
- // classId: 1,
- // className: '2501班',
- // mobile: '13933445566',
- // batchId: 1,
- // batchName: '第一批',
- // paperId: 1,
- // paperName: '试卷一',
- // subjectId: 1,
- // subjectName: '科目说明',
- // state: '组卷已完成',
- // total: 100,
- // score: 99,
- // rate: null,
- // }, {
- // studentId: 1,
- // studentName: '张三',
- // classId: 1,
- // className: '2501班',
- // mobile: '13933445566',
- // batchId: 1,
- // batchName: '第一批',
- // paperId: 1,
- // paperName: '试卷一',
- // subjectId: 1,
- // subjectName: '科目说明',
- // state: '组卷已完成',
- // total: 100,
- // score: 99,
- // rate: 99,
- // }]
- // })
- return request({
- url: '/learn/teaching/getPaperStudentRecords',
- method: 'get',
- params
- })
- }
- export function getPaperStudentDetail(params) {
- // // TODO: remove test code
- // return Promise.resolve({
- // code: 200,
- // data: [
- // {
- // knowledgeId: 1,
- // knowledgeName: '知识点1',
- // num: 5,
- // correct: 4,
- // rate: 80
- // }
- // ]
- // })
- return request({
- url: '/learn/teaching/getPaperStudentDetail',
- method: 'get',
- params
- })
- }
- export function sendUnfinishAlarm(data) {
- return request({
- url: '/learn/teaching/postUnfinishAlarm',
- method: 'post',
- data
- })
- }
- export function getClassesBuildStatsDetail(params) {
- // params: {buildType, batchId, classId, statType}
- // statType: 'send' | 'total' | 'unexact' | 'unfinish' | 'unsend'
- return request({
- url: '/learn/teaching/getClassesBuildStatsDetail',
- method: 'get',
- params
- })
- }
|