Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout
| | |
| | | "axios": "^1.6.8", |
| | | "core-js": "^3.8.3", |
| | | "element-ui": "^2.15.14", |
| | | "lodash": "^4.17.21", |
| | | "moment": "^2.30.1", |
| | | "qiankun": "^2.10.16", |
| | | "spark-md5": "^3.0.2", |
| | |
| | | "label": "专题一 学前儿童生理发育特点与保健", |
| | | "id": "a008", |
| | | "page":1, |
| | | "start":1, |
| | | "end":42, |
| | | "children": [ |
| | | { |
| | | "label": "学习主题一 运动系统", |
| | | "id": "b001", |
| | | "page":2, |
| | | "start":2, |
| | | "end":6, |
| | | "children": [ |
| | | { |
| | | "label": "一、学前儿童运动系统的特点", |
| | | "id": "c001", |
| | | "page":2 |
| | | "page":2, |
| | | "start":2, |
| | | "end":4 |
| | | } |
| | | ] |
| | | } |
| | |
| | | // export const requestCtx = "http://182.92.203.7:3001"; // 请求地址 |
| | | // export const appId = 27; |
| | | export const requestCtx = "http://jsysf.bnuic.com"; // 请求地址 |
| | | export const requestCtx = "https://jsek.bnuic.com"; // 请求地址 |
| | | export const resourceCtx = "http://182.92.203.7:3007/books/resource/1"; // 资源请求地址 |
| | | export const publicCtx = "http://182.92.203.7:3007/books/book/1"; // 资源请求地址 |
| | | export const bookList = [ |
New file |
| | |
| | | import { activeBook } from "@/assets/js/config"; |
| | | import MG from "@/assets/js/middleGround/WebMiddleGroundApi"; |
| | | import getPublicImage from '@/assets/js/middleGround/tool' |
| | | const getQuestionList = (rootCmsItemId, questionList) => { |
| | | let questionArr = []; |
| | | let cardList = [ |
| | | { |
| | | catalogName: "单选题", |
| | | infoList: [], |
| | | }, |
| | | { |
| | | catalogName: "判断题", |
| | | infoList: [], |
| | | }, |
| | | { |
| | | catalogName: "多选题", |
| | | infoList: [], |
| | | }, |
| | | { |
| | | catalogName: "填空题", |
| | | infoList: [], |
| | | }, |
| | | { |
| | | catalogName: "简答题", |
| | | infoList: [], |
| | | }, |
| | | ]; |
| | | let singleChoiceArr = []; // 单选 |
| | | let judgeArr = []; // 判断 |
| | | let shortArr = []; // 简答 |
| | | let multipleChoiceArr = []; // 多选 |
| | | let completionArr = []; // 填空 |
| | | for (let qindex = 0; qindex < questionList.length; qindex++) { |
| | | const qitem = questionList[qindex]; |
| | | let query = { |
| | | path: "*", |
| | | cmsPath: rootCmsItemId, |
| | | cmsType: "*", |
| | | productId: activeBook.bookId, |
| | | queryType: "*", |
| | | itemIds: qitem + "", |
| | | itemFields: { |
| | | Embedded_QuestionBank_Stem: [], |
| | | Embedded_QuestionBank_AnalysisCon: [], |
| | | Embedded_QuestionBank_Answer: [], |
| | | Embedded_QuestionBank_Option: [], |
| | | Embedded_QuestionBank_QuestionType: [], |
| | | Embedded_QuestionBank_StemStyle: [], |
| | | Embedded_QuestionBank_OptionStyle: [], |
| | | Embedded_QuestionBank_KnowledgePoint: [], |
| | | Embedded_QuestionBank_Difficulty: [], |
| | | }, |
| | | }; |
| | | MG.store.getProductDetail(query).then((res) => { |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | const questionObj = { |
| | | number: index + 1, // 题号 |
| | | id: item.id, |
| | | stem: item.Embedded_QuestionBank_QuestionType == "completion" ? |
| | | JSON.parse(item.Embedded_QuestionBank_Stem) |
| | | .stemTxt.replaceAll("<vacancy>", ",input,") |
| | | .split(",") : JSON.parse(item.Embedded_QuestionBank_Stem), // 题干 |
| | | answer: item.Embedded_QuestionBank_Answer, // 答案 |
| | | option: item.Embedded_QuestionBank_Option ? |
| | | JSON.parse(item.Embedded_QuestionBank_Option) : "", // 选择题选项 |
| | | analysisCon: item.Embedded_QuestionBank_AnalysisCon, // 解析 |
| | | questionType: item.Embedded_QuestionBank_QuestionType, // 题型 |
| | | optionStyle: item.Embedded_QuestionBank_OptionStyle, // 选项显示类型 |
| | | stemStyle: item.Embedded_QuestionBank_StemStyle, // 题干显示类型 |
| | | difficulty: item.Embedded_QuestionBank_Difficulty ? |
| | | 4 - item.Embedded_QuestionBank_Difficulty : 0, // 难度等级 |
| | | userAnswer: item.Embedded_QuestionBank_QuestionType == "completion" || |
| | | item.Embedded_QuestionBank_QuestionType == "multipleChoice" ? [] : "", |
| | | isSubmit: false, // 查看解析 |
| | | isRight: null, // 是否正确 |
| | | isComplete: false, |
| | | isCollect: true, |
| | | isUnfold:'' |
| | | }; |
| | | // 多选和填空答案肯为数组,要转换JSON格式 |
| | | if ( |
| | | questionObj.questionType == "completion" || |
| | | questionObj.questionType == "multipleChoice" |
| | | ) { |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString(); |
| | | } catch (error) { |
| | | questionObj.answer = item.Embedded_QuestionBank_Answer; |
| | | } |
| | | } |
| | | // 填空题改造 |
| | | if (questionObj.questionType == "completion") { |
| | | let index = 0; |
| | | for (let i = 0; i < questionObj.stem.length; i++) { |
| | | const item = questionObj.stem[i]; |
| | | if (item == "input") { |
| | | questionObj.stem[i] = { |
| | | num: index, |
| | | data: "input", |
| | | }; |
| | | questionObj.userAnswer[index] = ""; |
| | | index++; |
| | | } |
| | | } |
| | | } |
| | | // 获取图片 |
| | | if ( |
| | | questionObj.stemStyle == "Image" || |
| | | questionObj.stemStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.stem.stemImage = getPublicImage( |
| | | questionObj.stem.stemImage, |
| | | 150 |
| | | ); |
| | | } |
| | | if ( |
| | | questionObj.optionStyle == "Image" || |
| | | questionObj.optionStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.option.forEach((optionItem) => { |
| | | if (optionItem.img) |
| | | optionItem.img = getPublicImage(optionItem.img, 150); |
| | | }); |
| | | } |
| | | // 题干富文本处理 |
| | | if (questionObj.stemStyle == "RichText") { |
| | | // questionObj.option.txt = '' |
| | | questionObj.stem.stemTxt = questionObj.stem.stemTxt |
| | | .replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ) |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); |
| | | } |
| | | // 选项富文本处理 |
| | | if ( |
| | | questionObj.optionStyle == "RichText" && |
| | | (questionObj.questionType == "singleChoice" || |
| | | questionObj.questionType == "judge" || |
| | | questionObj.questionType == "multipleChoice") |
| | | ) { |
| | | questionObj.option.forEach((item) => { |
| | | if (item.txt) |
| | | item.txt = item.txt |
| | | .replace(/\<img/gi, '<img class="option-rich-img"') |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"').replace('../file', app.config.requestCtx + '/file'); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | | if ( |
| | | questionObj.analysisCon && |
| | | typeof questionObj.analysisCon == "string" |
| | | ) { |
| | | questionObj.analysisCon = questionObj.analysisCon.replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ); |
| | | } |
| | | // 听力题修改 |
| | | // if (questionObj.questionType == 'singleChoice') { |
| | | // const src = this.extractSourceSrc(questionObj.stem.stemTxt) |
| | | // if (src) { |
| | | // questionObj.src = src |
| | | // questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) |
| | | // } |
| | | // } |
| | | if (item.Embedded_QuestionBank_QuestionType == "judge") { |
| | | questionObj.type = "判断题"; |
| | | judgeArr.push(questionObj); |
| | | } else if ( |
| | | item.Embedded_QuestionBank_QuestionType == "singleChoice" |
| | | ) { |
| | | questionObj.type = "单选题"; |
| | | singleChoiceArr.push(questionObj); |
| | | } else if ( |
| | | item.Embedded_QuestionBank_QuestionType == "multipleChoice" |
| | | ) { |
| | | questionObj.type = "多选题"; |
| | | multipleChoiceArr.push(questionObj); |
| | | } else if (item.Embedded_QuestionBank_QuestionType == "completion") { |
| | | questionObj.type = "填空题"; |
| | | completionArr.push(questionObj); |
| | | } else if (item.Embedded_QuestionBank_QuestionType == "shortAnswer") { |
| | | questionObj.type = "简答题"; |
| | | shortArr.push(questionObj); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | cardList[0].infoList = singleChoiceArr, |
| | | cardList[1].infoList = judgeArr |
| | | cardList[2].infoList = multipleChoiceArr |
| | | cardList[3].infoList = completionArr |
| | | cardList[4].infoList = shortArr |
| | | for (let index = 0; index < cardList.length; index++) { |
| | | const item = cardList[index]; |
| | | for (let cindex = 0; cindex < item.infoList.length; cindex++) { |
| | | const citem = item.infoList[cindex]; |
| | | citem.number = cindex + 1; |
| | | questionArr.push(citem); |
| | | } |
| | | } |
| | | console.log(cardList); |
| | | return cardList |
| | | }; |
| | | |
| | | export default getQuestionList; |
New file |
| | |
| | | import config from "../js/config" |
| | | const getResourcePath = (md5) => { |
| | | return config.requestCtx + '/file/api/ApiDownload?md5=' + md5 |
| | | } |
| | | |
| | | export default getResourcePath |
New file |
| | |
| | | const testData = { |
| | | 1: { |
| | | 2: [63795, 63796, 63797, 63798, 63804], |
| | | 6:[65859, 65860, 65861, 65862], |
| | | 9:[65863, 65864, 65865, 65866, 65867, 65868, 65869], |
| | | 14:[65870, 65871, 65872, 65873, 65874], |
| | | 19:[65875, 65876, 65877, 65878, 65879, 65880, 65881, 65882], |
| | | 24:[65883, 65884, 65885, 65886], |
| | | 26:[65887, 65888, 65889, 65890, 65891, 65892], |
| | | 31:[65905, 65906, 65907, 65908, 65909], |
| | | 40:[ |
| | | 65910, 65911, 65912, 65913, 65914, 65915, 65916, 65917, 65918, 65919, |
| | | 65920 |
| | | ], |
| | | 42_1:[ |
| | | 65944, 65945, 65946, 65947, 65948, 65949, 65950, 65951, 65952, 65953, |
| | | 65954, 65955, 65956, 65957, 65958, 65959 |
| | | ], |
| | | 42_2:[ |
| | | 65962, 65963, 65964, 65965, 65966, 65967, 65968, 65969, 65970, 65971, |
| | | 65972, 65973, 65974, 65975, 65976, 65977 |
| | | ] |
| | | }, |
| | | 2:{ |
| | | 46:[65979, 65980, 65981], |
| | | 49:[65983, 65984], |
| | | 52:[65986, 65987], |
| | | 54_1:[65990, 65991, 65992, 65993, 65994, 65995, 65996, 65997, 65998, 65999, |
| | | 66000, 66001, 66002, 66003, 66004, 66005], |
| | | 54_2:[66008, 66009, 66010, 66011, 66012, 66013, 66014, 66015, 66016, 66017, |
| | | 66018, 66019, 66020, 66021, 66022, 66023] |
| | | }, |
| | | 3:{ |
| | | 64:[66025, 66026, 66027, 66028, 66029], |
| | | 73:[66031, 66032, 66033, 66034, 66035], |
| | | 78:[66037, 66038, 66039, 66040, 66041, 66042], |
| | | 80_1: [ |
| | | 66051, 66052, 66053, 66054, 66055, 66056, 66057, 66058, 66059, 66060, |
| | | 66045, 66046, 66047, 66048, 66049, 66050 |
| | | ], |
| | | 80_2:[ |
| | | 66063, 66064, 66065, 66066, 66067, 66068, 66069, 66070, 66071, 66072, |
| | | 66073, 66074, 66075, 66076, 66077, 66078 |
| | | ] |
| | | }, |
| | | 4:{ |
| | | 91:[66080, 66081, 66082], |
| | | 97:[66084, 66085], |
| | | 98_1:[ |
| | | 66102, 66103, 66104, 66105, 66106, 66107, 66108, 66109, 66110, 66111, |
| | | 66090, 66091, 66092, 66093, 66094, 66095 |
| | | ], |
| | | 98_2:[ |
| | | 66112, 66113, 66114, 66115, 66116, 66117, 66118, 66119, 66120, 66121, |
| | | 66096, 66097, 66098, 66099, 66100, 66101 |
| | | ] |
| | | }, |
| | | 5:{ |
| | | 119:[66125, 66126, 66127, 66128, 66129, 66130, 66131], |
| | | 124:[66134, 66135, 66136, 66137, 66138], |
| | | 129:[66144, 66145, 66146, 66147, 66148], |
| | | 133:[66150, 66151, 66152, 66153, 66154], |
| | | 134_1:[ |
| | | 66159, 66160, 66161, 66162, 66163, 66164, 66165, 66166, 66167, 66168, |
| | | 66179, 66180, 66181, 66182, 66183, 66184 |
| | | ], |
| | | 134_2:[ |
| | | 66169, 66170, 66171, 66172, 66173, 66174, 66175, 66176, 66177, 66178, |
| | | 66185, 66186, 66187, 66188, 66189, 66190 |
| | | ] |
| | | }, |
| | | 6:{ |
| | | 142:[66192, 66193, 66194, 66195, 66196], |
| | | 152:[66198, 66199, 66200, 66201, 66202], |
| | | 156:[66204, 66205, 66206, 66207, 66208], |
| | | 159:[66210, 66211, 66212], |
| | | 164:[66214, 66215, 66216, 66217, 66218], |
| | | 166_1:[ |
| | | 66223, 66224, 66225, 66226, 66227, 66228, 66229, 66230, 66231, 66232, |
| | | 66243, 66244, 66245, 66246, 66247, 66248 |
| | | ], |
| | | 166_2:[ |
| | | 66233, 66234, 66235, 66236, 66237, 66238, 66239, 66240, 66241, 66242, |
| | | 66249, 66250, 66251, 66252, 66253, 66254 |
| | | ] |
| | | }, |
| | | 7:{ |
| | | 169:[66261, 66262, 66263], |
| | | 174:[66265, 66266, 66267], |
| | | 177:[66269, 66270, 66271], |
| | | 188:[666273, 66274, 66275, 66276, 66277, 66278, 66279], |
| | | 207:[ |
| | | 66287, 66288, 66289, 66290, 66291, 66292, 66293, 66294, 66295, 66296, |
| | | 66297, 66298 |
| | | ], |
| | | 209_1:[ |
| | | 66303, 66304, 66305, 66306, 66307, 66308, 66309, 66310, 66311, 66312, |
| | | 66323, 66324, 66325, 66326, 66327, 66328 |
| | | ], |
| | | 209_2:[ |
| | | 66313, 66314, 66315, 66316, 66317, 66318, 66319, 66320, 66321, 66322, |
| | | 66329, 66330, 66331, 66332, 66333, 66334 |
| | | ] |
| | | }, |
| | | 8:{ |
| | | 215:[66336, 66337, 66338, 66339], |
| | | 227:[ |
| | | 66341, 66342, 66343, 66344, 66345, 66346, 66347, 66348, 66349, 66350, |
| | | 66351, 66352, 66353, 66354 |
| | | ], |
| | | 232:[66356, 66357, 66358], |
| | | 234_1:[ |
| | | 66363, 66364, 66365, 66366, 66367, 66368, 66369, 66370, 66371, 66372, |
| | | 66383, 66384, 66385, 66386, 66387, 66388 |
| | | ], |
| | | 234_2:[ |
| | | 66373, 66374, 66375, 66376, 66377, 66378, 66379, 66380, 66381, 66382, |
| | | 66389, 66390, 66391, 66392, 66393, 66394 |
| | | ] |
| | | }, |
| | | 9:{ |
| | | 243:[66396,66397,66398,66399,66400], |
| | | 255:[66412,66413,66414,66415,66416], |
| | | 256_1:[66418,66419,66420,66421,66422,66423,66424,66425,66426,66427,66438,66439,66440,66441,66442,66443], |
| | | 256_2:[66428,66429,66430,66431,66432,66433,66434,66435,66436,66437,66402,66403,66404,66405,66406,66407] |
| | | }, |
| | | 10:{ |
| | | 267:[66445,66446,66447,66448,66449,66450], |
| | | 272:[66455,66456,66457,66458,66459], |
| | | 273_1:[66469,66470,66471,66472,66473,66474,66475,66476,66477,66478,66502,66503,66504,66505,66506,66507], |
| | | 273_2:[66479,66480,66481,66482,66483,66484,66485,66486,66487,66488,66495,66496,66497,66498,66499,66500] |
| | | }, |
| | | 11:{ |
| | | 274_1:[66529,66530,66531,66532,66533,66534,66535,66536,66537,66538,66629,66630,66631,66632,66633,66634], |
| | | 274_2:[66539,66540,66541,66542,66543,66544,66545,66546,66547,66548,66635,66636,66637,66638,66639,66640], |
| | | 274_3:[66549,66550,66551,66552,66553,66554,66555,66556,66557,66558,66643,66644,66645,66646,66647,66648], |
| | | 274_4:[66559,66560,66561,66562,66563,66564,66565,66566,66567,66568,66650,66651,66652,66653,66654,66655], |
| | | 274_5:[66569,66570,66571,66572,66573,66574,66575,66576,66577,66578,66657,66658,66659,66660,66661,66662], |
| | | 274_6:[66579,66580,66581,66582,66583,66584,66585,66586,66587,66588,66663,66664,66665,66666,66667,66668], |
| | | 274_7:[66589,66590,66591,66592,66593,66594,66595,66596,66597,66598,66669,66670,66671,66672,66673,66674], |
| | | 274_8:[66599,66600,66601,66602,66603,66604,66605,66606,66607,66608,66675,66676,66677,66678,66679,66680], |
| | | 274_9:[66609,66610,66611,66612,66613,66614,66615,66616,66617,66618,66681,66682,66683,66684,66685,66686], |
| | | 274_10:[66619,66620,66621,66622,66623,66624,66625,66626,66627,66628,66688,66689,66690,66691,66692,66693], |
| | | } |
| | | } |
| | | |
| | | export default testData |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0104-1.jpg" /><br /> --> |
| | | <span class="img">专题四 学习主题一</span> |
| | | <!-- <span class="img">专题四 学习主题一</span> --> |
| | | <examinations :cardList="questionData[4][91]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b017"> |
| | | <div class="custom1">学习主题二</div> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c center"> |
| | | <span class="img">专题四 学习主题二</span> |
| | | <!-- <span class="img">专题四 学习主题二</span> --> |
| | | <examinations :cardList="questionData[4][97]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">专题小结</h6> |
| | | <p class="blockh6"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-a" alt="" src="image/0111-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0111-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[4][981]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[4][982]" /> |
| | | </p> |
| | | <p class="custom_tag">•应用与探讨•</p> |
| | | <p>1.测量幼儿的身高、体重、头围和胸围。</p> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterFour/0094-1.jpg"), |
| | | taskOne: require("../../../assets/images/chapterFour/task-sheet1.png"), |
| | | learnTableOne:true, |
| | | learnTableTwo:true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods:{ |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | <span class="ds-bl" |
| | | >1.人体运动系统由哪三个部分组成?各部分的功能式什么?</span |
| | | > |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | | placeholder="请输入内容" |
| | | v-model="textarea"> |
| | | </el-input> |
| | | <input type="text" class="lineInput w100" /> |
| | | <input type="text" class="lineInput w100" /> |
| | | <input type="text" class="lineInput w100" /> |
| | | <span class="ds-bl mt-10" |
| | | >2.学前儿童的骨(骼)有什么特点?日常生活中应该如何保健?</span |
| | | > |
| | |
| | | <examinations |
| | | v-if="testOne" |
| | | ref="examinationOne" |
| | | :productLinkPath="productLinkPath" |
| | | ></examinations> |
| | | :cardList="questionData[1][2]" |
| | | /> |
| | | </p> |
| | | <h2 class="module_block" id="b001" style="margin: 0"> |
| | | <div class="custom1">学习主题一</div> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <span class="img">专题一 学习主题一</span> |
| | | <examinations :cardList="questionData[1][6]" /> |
| | | <!-- <span class="img">专题一 学习主题一</span> --> |
| | | </p> |
| | | <h4 id="d008">(五)注意保护好关节和韧带</h4> |
| | | <p class="lh2"> |
| | |
| | | </div> |
| | | <div class="right" style="width: 60%"> |
| | | <video |
| | | :src="config.resourceCtx + '/video/chapterOne/breathing-video.mp4'" |
| | | :src="pathOne" |
| | | poster="../../../assets/images/chapterOne/people-video-img.jpg" |
| | | webkit-playsinline="true" |
| | | x-webkit-airplay="true" |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0022-1.jpg" /><br /> --> |
| | | <span class="img">专题一 学习主题二</span> |
| | | <examinations :cardList="questionData[1][9]" /> |
| | | <!-- <span class="img">专题一 学习主题二</span> --> |
| | | </p> |
| | | <h4 id="d015">(五)保护声带</h4> |
| | | <p class="lh2">选择适合学前儿童音域特点的歌曲或朗读材料,每次唱歌或朗读的时间不宜过长(最多5分钟),更不能高声喊叫,以防声带充血、肿胀、变厚,造成声音嘶哑。练习发声的</p> |
| | |
| | | </div> |
| | | <div class="right" style="width: 65%"> |
| | | <video |
| | | :src="config.resourceCtx + '/video/chapterOne/blood-video.mp4'" |
| | | :src="pathThree" |
| | | poster="../../../assets/images/chapterOne/people-video-img.jpg" |
| | | webkit-playsinline="true" |
| | | x-webkit-airplay="true" |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0032-1.jpg" /><br /> --> |
| | | <span class="img">专题一 学习主题四</span> |
| | | <examinations :cardList="questionData[1][14]" /> |
| | | <!-- <span class="img">专题一 学习主题三</span> --> |
| | | </p> |
| | | <h2 class="module_block" id="b004"> |
| | | <div class="custom1">学习主题四</div> |
| | |
| | | </div> |
| | | <div class="right" style="width: 65%"> |
| | | <video |
| | | :src=" config.resourceCtx + '/video/chapterOne/teeth.mp4'" |
| | | :src="pathFour" |
| | | poster="../../../assets/images/chapterOne/people-video-img.jpg" |
| | | webkit-playsinline="true" |
| | | x-webkit-airplay="true" |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <span class="img">专题一 学习主题四</span> |
| | | <examinations :cardList="questionData[1][19]" /> |
| | | <!-- <span class="img">专题一 学习主题四</span> --> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0036-3.jpg" /><br /> --> |
| | | <span class="img">专题一 学习主题五、学习主题六</span> |
| | | <!-- <span class="img">专题一 学习主题五、学习主题六</span> --> |
| | | <examinations :cardList="questionData[1][24]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </p> |
| | | </div> |
| | | |
| | | <div class="fl"> |
| | | <div class="left" style="width: 35%"> |
| | | <div class="fl fl-around"> |
| | | <div class="left" style="width: 38%"> |
| | | <p> |
| | | 人体各机能之所以能根据不同的内外环境产生特定的变化,维持内外环境的动态平衡,与内分泌系统有着密不可分的关系。 |
| | | </p> |
| | |
| | | 内分泌系统(见图1-13)由内分泌腺和内分泌组织组成,对人体的生命活动起着重 |
| | | </p> |
| | | </div> |
| | | <div class="right" style="width: 65%"> |
| | | <div class="right" style="width: 60%"> |
| | | <video |
| | | :src=" config.resourceCtx + ' /video/chapterOne/endocrine.mp4'" |
| | | poster="../../../assets/images/chapterOne/people-video-img.jpg" |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <span class="img">专题一 学习主题七</span> |
| | | <!-- <span class="img">专题一 学习主题七</span> --> |
| | | <examinations :cardList="questionData[1][26]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b008"> |
| | | <div class="custom1">学习主题八</div> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <span class="img">专题一 学习主题八</span> |
| | | <!-- <span class="img">专题一 学习主题八</span> --> |
| | | <examinations :cardList="questionData[1][31]" /> |
| | | </p> |
| | | <h4 id="d065">(六)安排丰富的活动及适当的体育锻炼</h4> |
| | | <p> |
| | |
| | | </p> |
| | | </div> |
| | | <div class="right" style="width: 60%"> |
| | | <!-- config.resourceCtx + '/video/chapterOne/专题一:学前儿童眼睛的生理特点与保健.mp4' --> |
| | | <video |
| | | :src=" config.resourceCtx + '/video/chapterOne/专题一:学前儿童眼睛的生理特点与保健.mp4'" |
| | | :src="pathTwo" |
| | | poster="../../../assets/images/chapterOne/people-video-img.jpg" |
| | | webkit-playsinline="true" |
| | | x-webkit-airplay="true" |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0053-1.jpg" /><br /> --> |
| | | <span class="img">专题一 学习主题九</span> |
| | | <!-- <span class="img">专题一 学习主题九</span> --> |
| | | <examinations :cardList="questionData[1][40]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">专题小结</h6> |
| | | <p class="blockh6"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0054-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0054-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[1][421]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[1][422]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 fl fl-di fl-cn" style="text-indent: 0"> |
| | |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | import evenHeaderVue from '../../components/pageHeader/evenHeader.vue'; |
| | | import oddHeaderVue from '../../components/pageHeader/oddHeader.vue'; |
| | | import getResourcePath from '@/assets/methods/resources' |
| | | export default { |
| | | name: "chapter-one", |
| | | components: { examinations,evenHeaderVue,oddHeaderVue }, |
| | |
| | | require("../../../assets/images/chapterOne/posture-01.png"), |
| | | require("../../../assets/images/chapterOne/posture-02.png"), |
| | | require("../../../assets/images/chapterOne/posture-03.png"), |
| | | ], |
| | | questionList: [ |
| | | { |
| | | analysisCon: "详见教材P3。", |
| | | answer: "A", |
| | | difficulty: 0, |
| | | id: 47459, |
| | | isCollect: false, |
| | | isComplete: false, |
| | | isRight: null, |
| | | isUnfold: "", |
| | | isUserAnswer: false, |
| | | number: 1, |
| | | option: [ |
| | | { index: "6595", txt: "德鲁克", value: "A", img: "" }, |
| | | { index: "6660", txt: "泰勒", value: "B", img: "" }, |
| | | { index: "803B", txt: "法约尔", value: "C", img: "" }, |
| | | { index: "9887", txt: "西蒙", value: "D", img: "" }, |
| | | ], |
| | | optionStyle: "Txt", |
| | | questionType: "singleChoice", |
| | | score: 2, |
| | | stem: { |
| | | stemTxt: |
| | | "1. 首次提出“管理学”概念,认为“管理是一门科学”且“管理是一种实践”的是( )。", |
| | | }, |
| | | stemStyle: "Txt", |
| | | type: "单选题", |
| | | userAnswer: "", |
| | | }, |
| | | ], |
| | | resourceState: "", |
| | | type: "option", |
| | |
| | | learnTableSix:true, |
| | | learnTableSeven:true, |
| | | learnTableEight:true, |
| | | learnTableNine:true |
| | | learnTableNine:true, |
| | | questionData:{}, |
| | | pathOne:'', |
| | | pathTWo:'', |
| | | pathThree:'', |
| | | pathFour:'', |
| | | }; |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | this.$data.pathOne = getResourcePath('f6f6588a75086576b87bed2fb9ca1ec1') |
| | | this.$data.pathTwo = getResourcePath('e5993b62684fe55d13190cfe52bf00ed') |
| | | this.$data.pathThree = getResourcePath('6b6d42213aa85aa5ff7724aaf96ffee6') |
| | | this.$data.pathFour = getResourcePath('17fb1555f98c8fceabce5ff75077af58') |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTbaleOne") { |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0058-1.jpg" /><br /> --> |
| | | <span class="img">专题二 学习主题一</span> |
| | | <examinations :cardList="questionData[2][46]" /> |
| | | <!-- <span class="img">专题二 学习主题一</span> --> |
| | | </p> |
| | | <h2 class="module_block" id="b011"> |
| | | <div class="custom1">学习主题二</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0062-1.jpg" /><br /> --> |
| | | <span class="img">专题二 学习主题二</span> |
| | | <!-- <span class="img">专题二 学习主题二</span> --> |
| | | <examinations :cardList="questionData[2][49]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c center"> |
| | | <!-- <img class="img-g" alt="" src="image/0065-1.jpg" /><br /> --> |
| | | <span class="img">专题二 学习主题三</span> |
| | | <!-- <span class="img">专题二 学习主题三</span> --> |
| | | <examinations :cardList="questionData[2][52]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0067-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0067-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[2][541]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[2][542]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeaderVue from '../../components/pageHeader/evenHeader.vue'; |
| | | import oddHeaderVue from '../../components/pageHeader/oddHeader.vue'; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | import {mapState} from 'vuex' |
| | | export default { |
| | | name: "chapterTwo", |
| | | components:{evenHeaderVue,oddHeaderVue}, |
| | | components:{evenHeaderVue,oddHeaderVue,examinations}, |
| | | data() { |
| | | return { |
| | | taskOne: require("../../../assets/images/chapterTwo/task-sheet1.png"), |
| | |
| | | learnTableOne: true, |
| | | learnTableTwo: true, |
| | | learnTableThree: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0077-1.jpg" /><br /> --> |
| | | <span class="img">专题三 学习主题一</span> |
| | | <examinations :cardList="questionData[3][64]" /> |
| | | <!-- <span class="img">专题三 学习主题一</span> --> |
| | | </p> |
| | | <h2 class="module_block" id="b014"> |
| | | <div class="custom1">学习主题二</div> |
| | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | <p class="img">自主学习任务单</p> |
| | | <p class="custom_tag"><b>•学习初体验•</b></p> |
| | | <div class="fieldset"> |
| | | <p class="block"> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c center"> |
| | | <span class="img">专题三 学习主题二</span> |
| | | <!-- <span class="img">专题三 学习主题二</span> --> |
| | | <examinations :cardList="questionData[3][73]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b015"> |
| | | <div class="custom1">学习主题三</div> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c center"> |
| | | <span class="img">专题三 学习主题三</span> |
| | | <!-- <span class="img">专题三 学习主题三</span> --> |
| | | <examinations :cardList="questionData[3][78]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0093-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0093-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[3][801]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[3][802]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeaderVue from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeaderVue from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterThree", |
| | | components: { evenHeaderVue, oddHeaderVue }, |
| | | components: { evenHeaderVue, oddHeaderVue,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterThree/0068-1.jpg"), |
| | |
| | | learnTableOne: true, |
| | | learnTableTwo: true, |
| | | learnTableThree: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0132-1.jpg" /><br /> --> |
| | | <span class="img">专题五 学习主题一</span> |
| | | <!-- <span class="img">专题五 学习主题一</span> --> |
| | | <examinations :cardList="questionData[5][119]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b019"> |
| | | <div class="custom1">学习主题二</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0137-1.jpg" /><br /> --> |
| | | <span class="img">专题五 学习主题二</span> |
| | | <!-- <span class="img">专题五 学习主题二</span> --> |
| | | <examinations :cardList="questionData[5][124]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b020"> |
| | | <div class="custom1">学习主题三</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0141-2.jpg" /><br /> --> |
| | | <span class="img">专题五 学习主题三</span> |
| | | <!-- <span class="img">专题五 学习主题三</span> --> |
| | | <examinations :cardList="questionData[5][129]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b021"> |
| | | <div class="custom1">学习主题四</div> |
| | |
| | | 云测试 |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <span class="img">专题五 学习主题四</span> |
| | | <!-- <span class="img">专题五 学习主题四</span> --> |
| | | <examinations :cardList="questionData[5][133]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">专题小结</h6> |
| | | <p class="blockh6"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0147-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0147-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[5][1341]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[5][1342]" /> |
| | | </p> |
| | | <!-- <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 fl fl-di fl-cn" style="text-indent: 0"> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterFive", |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterFive/0112-1.jpg"), |
| | |
| | | learnTableOne: true, |
| | | learnTableTwo: true, |
| | | learnTableThree: true, |
| | | learnTableFour:true |
| | | learnTableFour:true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-a" alt="" src="image/0155-1.jpg" /><br /> --> |
| | | <span class="img">专题六 学习主题一</span> |
| | | <!-- <span class="img">专题六 学习主题一</span> --> |
| | | <examinations :cardList="questionData[6][142]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•扩展延伸•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0165-1.jpg" /><br /> --> |
| | | <span class="img">专题六 学习主题二</span> |
| | | <!-- <span class="img">专题六 学习主题二</span> --> |
| | | <examinations :cardList="questionData[6][152]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b024"> |
| | | <div class="custom1">学习主题三</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-a" alt="" src="image/0168-1.jpg" /><br /> --> |
| | | <span class="img">专题六 学习主题三</span> |
| | | <!-- <span class="img">专题六 学习主题三</span> --> |
| | | <examinations :cardList="questionData[6][156]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•扩展延伸•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0172-1.jpg" /><br /> --> |
| | | <span class="img">专题六 学习主题四</span> |
| | | <!-- <span class="img">专题六 学习主题四</span> --> |
| | | <examinations :cardList="questionData[6][159]" /> |
| | | </p> |
| | | <div class="annotation-border"></div> |
| | | <p class="note"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0177-1.jpg" /><br /> --> |
| | | <span class="img">专题六 学习主题五</span> |
| | | <!-- <span class="img">专题六 学习主题五</span> --> |
| | | <examinations :cardList="questionData[6][164]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">专题小结</h6> |
| | | <p class="blockh6"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0179-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[6][1661]" /> |
| | | <span class="img">>过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[6][1662]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | name: "chapterSix", |
| | | data() { |
| | | return { |
| | |
| | | learnTableThree: true, |
| | | learnTableFour: true, |
| | | learnTableFive: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0182-1.jpg" /><br /> --> |
| | | <span class="img">专题七 学习主题一</span> |
| | | <!-- <span class="img">专题七 学习主题一</span> --> |
| | | <examinations :cardList="questionData[7][169]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0187-1.jpg" /><br /> --> |
| | | <span class="img">专题七 学习主题二</span> |
| | | <!-- <span class="img">专题七 学习主题二</span> --> |
| | | <examinations :cardList="questionData[7][174]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0189-1.jpg" /><br /> --> |
| | | <span class="img">专题七 学习主题三</span> |
| | | <!-- <span class="img">专题七 学习主题三</span> --> |
| | | <examinations :cardList="questionData[7][177]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0200-1.jpg" /><br /> --> |
| | | <span class="img">专题七 学习主题四</span> |
| | | <!-- <span class="img">专题七 学习主题四</span> --> |
| | | <examinations :cardList="questionData[7][188]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b031"> |
| | | <div class="custom1">学习主题五</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0220-1.jpg" /><br /> --> |
| | | <span class="img">专题七 学习主题五</span> |
| | | <!-- <span class="img">专题七 学习主题五</span> --> |
| | | <examinations :cardList="questionData[7][207]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0222-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0222-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[7][2091]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[7][2092]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterSeven", |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterSeven/0180-1.jpg"), |
| | |
| | | learnTableThree: true, |
| | | learnTableFour: true, |
| | | learnTableFive: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0228-2.jpg" /><br /> --> |
| | | <span class="img">专题八 学习主题一</span> |
| | | <!-- <span class="img">专题八 学习主题一</span> --> |
| | | <examinations :cardList="questionData[8][215]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0240-2.jpg" /><br /> --> |
| | | <span class="img">专题八 学习主题二</span> |
| | | <!-- <span class="img">专题八 学习主题二</span> --> |
| | | <examinations :cardList="questionData[8][227]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0245-1.jpg" /><br /> --> |
| | | <span class="img">专题八 学习主题三</span> |
| | | <!-- <span class="img">专题八 学习主题三</span> --> |
| | | <examinations :cardList="questionData[8][232]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0247-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0247-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[8][2431]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[8][2342]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterEight", |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterEight/0223-1.jpg"), |
| | |
| | | learnTableThree: true, |
| | | learnTableFour: true, |
| | | learnTableFive: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c center"> |
| | | <!-- <img class="img-g" alt="" src="image/0256-2.jpg" /><br /> --> |
| | | <span class="img">专题九 学习主题一</span> |
| | | <!-- <span class="img">专题九 学习主题一</span> --> |
| | | <examinations :cardList="questionData[9][243]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0267-1.jpg" /><br /> --> |
| | | <span class="img">专题九 学习主题二</span> |
| | | <!-- <span class="img">专题九 学习主题二</span> --> |
| | | <examinations :cardList="questionData[9][255]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">专题小结</h6> |
| | | <p class="blockh6"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0269-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0269-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[9][2561]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[9][2562]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterNine", |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterNine/0248-1.jpg"), |
| | |
| | | learnTableThree: true, |
| | | learnTableFour: true, |
| | | learnTableFive: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0279-1.jpg" /><br /> --> |
| | | <span class="img">专题十 学习主题一</span> |
| | | <!-- <span class="img">专题十 学习主题一</span> --> |
| | | <examinations :cardList="questionData[10][267]" /> |
| | | </p> |
| | | <h2 class="module_block" id="b038"> |
| | | <div class="custom1">学习主题二</div> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | <!-- <img class="img-g" alt="" src="image/0285-1.jpg" /><br /> --> |
| | | <span class="img">专题十 学习主题二</span> |
| | | <!-- <span class="img">专题十 学习主题二</span> --> |
| | | <examinations :cardList="questionData[10][272]" /> |
| | | </p> |
| | | <p class="custom_tag"><b>•资料链接•</b></p> |
| | | <div class="fieldset"> |
| | |
| | | </h6> |
| | | <p class="blockh6-c"> |
| | | 学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br /> |
| | | <!-- <img class="img-g" alt="" src="image/0286-1.jpg" /><br /> --> |
| | | <span class="img">过关检测(资格考试模拟题)1</span><br /> |
| | | <!-- <img class="img-g" alt="" src="image/0286-2.jpg" /><br /> --> |
| | | <examinations :cardList="questionData[10][2731]" /> |
| | | <span class="img">过关检测(资格考试模拟题)2</span> |
| | | <examinations :cardList="questionData[10][2732]" /> |
| | | </p> |
| | | <h6 class="Conclusion-title4">•学习反思•</h6> |
| | | <p class="blockh6 m0-t0 fl fl-di fl-cn"> |
| | |
| | | <script> |
| | | import evenHeader from "../../components/pageHeader/evenHeader.vue"; |
| | | import oddHeader from "../../components/pageHeader/oddHeader.vue"; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterTen", |
| | | components: { evenHeader, oddHeader }, |
| | | components: { evenHeader, oddHeader,examinations }, |
| | | data() { |
| | | return { |
| | | learn: require("../../../assets/images/chapterTen/0270-1.jpg"), |
| | |
| | | learnTableThree: true, |
| | | learnTableFour: true, |
| | | learnTableFive: true, |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | methods: { |
| | | changeResources(type) { |
| | | if (type == "learnTableOne") { |
| | |
| | | 如果你全会,那恭喜你!如果你未能全部答对,也没有关系,请从教材中找到相应的内容复习一下吧。 |
| | | 这里一共有十套测试题,现在开始自我检测之旅吧。 |
| | | </p> |
| | | |
| | | <p class="center"> |
| | | <!-- <p class="center"> |
| | | <el-image :src="tableOne" :preview-src-list="[tableOne]" /> |
| | | </p> --> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷一</span> |
| | | <examinations :cardList="questionData[11][2741]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷二</span> |
| | | <examinations :cardList="questionData[11][2742]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷三</span> |
| | | <examinations :cardList="questionData[11][2743]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷四</span> |
| | | <examinations :cardList="questionData[11][2744]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷五</span> |
| | | <examinations :cardList="questionData[11][2745]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <div class="page-box" page="275"> |
| | | <odd-header :special="11" :num="275" /> |
| | | <div class="padding-96"> |
| | | <p class="img">续表</p> |
| | | <!-- <p class="img">续表</p> |
| | | <p class="center"> |
| | | <el-image :src="tableTwo" :preview-src-list="[tableTwo]" /> |
| | | </p> --> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷六</span> |
| | | <examinations :cardList="questionData[11][2746]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷七</span> |
| | | <examinations :cardList="questionData[11][2747]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷八</span> |
| | | <examinations :cardList="questionData[11][2748]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷九</span> |
| | | <examinations :cardList="questionData[11][2749]" /> |
| | | </p> |
| | | <p class=" block3"> |
| | | <span class="block3 center dl-bl w100 mb-20">卷十</span> |
| | | <examinations :cardList="questionData[11][27410]" /> |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <script> |
| | | import oddHeader from '../../components/pageHeader/oddHeader.vue'; |
| | | import examinations from "@/components/examinations/index.vue"; |
| | | export default { |
| | | name: "chapterEleven", |
| | | components: {oddHeader}, |
| | | components: {oddHeader,examinations}, |
| | | data() { |
| | | return { |
| | | tableOne: require("../../../assets/images/chapterEleven/0287-1.jpg"), |
| | | tableTwo: require("../../../assets/images/chapterEleven/0288-1.jpg"), |
| | | questionData:{} |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$data.questionData = this.$store.state.questionData |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <div class="page-content"> |
| | | <pageHeader v-if="showCatalogList.indexOf(0) > -1"></pageHeader> |
| | | <chapterOne v-if="showCatalogList.indexOf(1) > -1"></chapterOne> |
| | | <chapterOne v-if="showCatalogList.indexOf(1) > -1"></chapterOne> |
| | | <chapterTwo v-if="showCatalogList.indexOf(2) > -1"></chapterTwo> |
| | | <chapterThree v-if="showCatalogList.indexOf(3) > -1"></chapterThree> |
| | | <chapterFour v-if="showCatalogList.indexOf(4) > -1"></chapterFour> |
| | |
| | | import chapterEleven from "./components/chapter011.vue"; |
| | | import chapterTwelve from "./components/chapter012.vue"; |
| | | import chapterThirteen from "./components/chapter013.vue"; |
| | | |
| | | import _ from "lodash"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | loadThreshold: 300, // 触发加载阈值 |
| | | throttleThreshold: 100, // 节流阈值 |
| | | previousScrollTop: 0, |
| | | throttledScrollHandler: null |
| | | throttledScrollHandler: null, |
| | | }; |
| | | }, |
| | | watch: { |
| | | showCatalogList: { |
| | | handler(newVal) { |
| | | console.log("显示章节", newVal); |
| | | if (this.$store.state.qiankun.windowSelection) { |
| | | this.$store.state.qiankun.windowSelection({ |
| | | showCatalogList: newVal, |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // 默认加载章节 |
| | |
| | | ); |
| | | // 提供页面跳转功能 |
| | | if (this.setGlobalState) { |
| | | console.log("setGlobalState"); |
| | | this.setGlobalState({ |
| | | gotoPage: (catalog, page) => { |
| | | this.gotoPage(catalog, page); |
| | | } |
| | | }, |
| | | }); |
| | | } |
| | | // 测试页面跳转 |
| | |
| | | } |
| | | } |
| | | } |
| | | // showCatalogList 当前显示的三个章节,watch监听传递给主应用 |
| | | console.log(this.showCatalogList); |
| | | // 更新上一次滚动的位置 |
| | | this.previousScrollTop = event.target.scrollTop; |
| | |
| | | this.showCatalogList = [ |
| | | this.catalogLength - 2, |
| | | this.catalogLength - 1, |
| | | this.catalogLength |
| | | this.catalogLength, |
| | | ]; |
| | | } else { |
| | | this.showCatalogList = [catalog - 1, catalog, catalog + 1]; |
| | |
| | | } else { |
| | | console.log("章节错误!"); |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | components: { |
| | | pageHeader, |
| | |
| | | chapterTen, |
| | | chapterEleven, |
| | | chapterTwelve, |
| | | chapterThirteen |
| | | } |
| | | chapterThirteen, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | |
| | | <script> |
| | | import examinations from "./components/examinations/index.vue"; |
| | | import { getPublicImage } from "@/assets/js/middleGround/tool"; |
| | | import pageContent from "./content/index.vue"; |
| | | import testData from '../assets/examinationList' |
| | | import getQuestionData from '@/assets/methods/examination' |
| | | export default { |
| | | name: "child-health", |
| | | components: { |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | bookData:{}, |
| | | type: "option", |
| | | idPathList: [], |
| | | cardList: [], |
| | | isMouseDown: false, |
| | | showToolBox: false, |
| | | move: false, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | }; |
| | | this.MG.store.getProductDetail(query).then((res) => { |
| | | console.log("图书信息", res.datas.cmsDatas[0].datas); |
| | | const testData = res.datas.cmsDatas[0].datas.find( |
| | | (item) => item.refCode == "questionBank" |
| | | ); |
| | | this.getResourceData(testData); |
| | | console.log("图书信息",res.datas,testData); |
| | | this.$data.bookData = res.datas.cmsDatas[0].datas |
| | | const questiondata = testData |
| | | for(let key in testData) { |
| | | for(let tkey in testData[key]) { |
| | | console.log(testData[key][tkey]); |
| | | questiondata[key][tkey] = getQuestionData(res.datas.rootCmsItemId,testData[key][tkey]) |
| | | } |
| | | } |
| | | this.$store.commit('setQuestionData',questiondata) |
| | | console.log(this.$store); |
| | | // console.log(questiondata); |
| | | }); |
| | | }, |
| | | getResourceData(type) { |
| | | let query = { |
| | | path: "*", |
| | | queryType: "*", |
| | | productId: this.config.bookId, |
| | | cmsPath: type.productLinkPath, |
| | | itemFields: { |
| | | SysType: "CmsFolder", |
| | | // 资源类型,试读文件,是否允许下载等参数 |
| | | selectType: [], |
| | | freeFile: [], |
| | | file: [], |
| | | protectedFile: [], |
| | | resourcesClassification: [], |
| | | isDownload: [], |
| | | jsek_resourceBrief: [], |
| | | jsek_link: [], |
| | | jsek_questionBank: [], |
| | | }, |
| | | pading: { |
| | | start: 0, |
| | | size: 999, |
| | | }, |
| | | }; |
| | | this.MG.store |
| | | .getProductDetail(query) |
| | | .then(async (res) => { |
| | | if (type.refCode == "questionBank") { |
| | | const data = res.datas.cmsDatas[0].datas.filter( |
| | | (item) => item.refCode == "jsek_questionBank" |
| | | ); |
| | | if (data.length) return this.getResourceData(data[0]); |
| | | } |
| | | if (type.refCode == "jsek_questionBank") { |
| | | const testDataList = res.datas.cmsDatas[0].datas; |
| | | if (testDataList.length > 0) { |
| | | // console.log("题目列表", testDataList); |
| | | this.$store.commit("setTestList", testDataList); |
| | | // this.getIdPathList(testDataList[1]) |
| | | } else { |
| | | console.log("暂无资源"); |
| | | } |
| | | } |
| | | }) |
| | | .catch((e) => { |
| | | console.log(e); |
| | | }); |
| | | }, |
| | | getIdPathList(data) { |
| | | let query = { |
| | | path: "*", |
| | | queryType: "*", |
| | | productId: this.config.bookId, |
| | | cmsPath: data.productLinkPath, |
| | | pading: { |
| | | start: 0, |
| | | size: 999, |
| | | }, |
| | | }; |
| | | this.MG.store.getProductDetail(query).then((res) => { |
| | | console.log("题目", res.datas.cmsDatas[0].datas); |
| | | this.$data.idPathList = res.datas.cmsDatas[0].datas; |
| | | this.getQuestionList(); |
| | | }); |
| | | }, |
| | | // 获取题库题目 |
| | | getQuestionList(oldData) { |
| | | // 清空正确题数记录 |
| | | let flag = 0; |
| | | for (let index = 0; index < this.$data.idPathList.length; index++) { |
| | | const pathitem = this.$data.idPathList[index]; |
| | | const pathList = this.$data.cardList; |
| | | pathList.push({ |
| | | path: pathitem.productLinkPath, |
| | | catalogName: pathitem.name, |
| | | infoList: [], |
| | | }); |
| | | this.$data.cardList = pathList; |
| | | // 获取题目 |
| | | let query = { |
| | | path: "*", |
| | | queryType: "*", |
| | | productId: this.config.bookId, |
| | | cmsPath: pathitem.productLinkPath, |
| | | itemFields: { |
| | | Embedded_QuestionBank_Stem: [], |
| | | Embedded_QuestionBank_AnalysisCon: [], |
| | | Embedded_QuestionBank_Answer: [], |
| | | Embedded_QuestionBank_Option: [], |
| | | Embedded_QuestionBank_QuestionType: [], |
| | | Embedded_QuestionBank_StemStyle: [], |
| | | Embedded_QuestionBank_OptionStyle: [], |
| | | Embedded_QuestionBank_KnowledgePoint: [], |
| | | Embedded_QuestionBank_Difficulty: [], |
| | | }, |
| | | pading: { |
| | | start: 0, |
| | | size: 999, |
| | | }, |
| | | }; |
| | | this.MG.store.getProductDetail(query).then((res) => { |
| | | let oldList; |
| | | if (oldData) { |
| | | // 提交过,存在答题记录 |
| | | oldList = oldData.find( |
| | | (item) => item.path == pathitem.productLinkPath |
| | | ).infoList; |
| | | this.setData({ |
| | | submitStatus: true, |
| | | }); |
| | | } |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | let oldObj = ""; |
| | | if (oldList) |
| | | oldObj = oldList.find((oldItem) => oldItem.id == item.id); |
| | | let questionObj = { |
| | | // num: index, // 题号 |
| | | id: item.id, |
| | | type: pathitem.name, |
| | | stem: |
| | | item.Embedded_QuestionBank_QuestionType == "completion" |
| | | ? JSON.parse(item.Embedded_QuestionBank_Stem) |
| | | .stemTxt.replaceAll("<vacancy>", ",input,") |
| | | .split(",") |
| | | : JSON.parse(item.Embedded_QuestionBank_Stem), // 题干 |
| | | answer: item.Embedded_QuestionBank_Answer, // 答案 |
| | | option: item.Embedded_QuestionBank_Option |
| | | ? JSON.parse(item.Embedded_QuestionBank_Option) |
| | | : "", // 选择题选项 |
| | | analysisCon: item.Embedded_QuestionBank_AnalysisCon, // 解析 |
| | | questionType: item.Embedded_QuestionBank_QuestionType, // 题型 |
| | | optionStyle: item.Embedded_QuestionBank_OptionStyle, // 选项显示类型 |
| | | stemStyle: item.Embedded_QuestionBank_StemStyle, // 题干显示类型 |
| | | difficulty: item.Embedded_QuestionBank_Difficulty |
| | | ? 4 - item.Embedded_QuestionBank_Difficulty |
| | | : 0, // 难度等级 |
| | | userAnswer: oldObj |
| | | ? oldObj.userAnswer |
| | | : item.Embedded_QuestionBank_QuestionType == "completion" || |
| | | item.Embedded_QuestionBank_QuestionType == "multipleChoice" |
| | | ? [] |
| | | : "", |
| | | isUserAnswer: oldObj |
| | | ? this.isHaveAnswer(oldObj.userAnswer) |
| | | : false, |
| | | isRight: oldObj ? oldObj.isRight : null, |
| | | isComplete: oldObj ? oldObj.isComplete : false, |
| | | isCollect: false, |
| | | isUnfold: "", // 控制解析的折叠面板是否展开 |
| | | }; |
| | | // 多选和填空答案肯为数组,要转换JSON格式 |
| | | if ( |
| | | questionObj.questionType == "completion" || |
| | | questionObj.questionType == "multipleChoice" |
| | | ) { |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString(); |
| | | } catch (error) { |
| | | questionObj.answer = item.Embedded_QuestionBank_Answer; |
| | | } |
| | | } |
| | | // 填空题改造 |
| | | if (questionObj.questionType == "completion") { |
| | | let index = 0; |
| | | for (let i = 0; i < questionObj.stem.length; i++) { |
| | | const item = questionObj.stem[i]; |
| | | if (item == "input") { |
| | | questionObj.stem[i] = { |
| | | num: index, |
| | | data: "input", |
| | | }; |
| | | if (!oldObj) questionObj.userAnswer[index] = ""; |
| | | index++; |
| | | } |
| | | } |
| | | } |
| | | // 题干富文本处理 |
| | | if (questionObj.stemStyle == "RichText") { |
| | | // questionObj.option.txt = '' |
| | | questionObj.stem.stemTxt = questionObj.stem.stemTxt |
| | | .replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ) |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | .replace("../file", app.config.requestCtx + "/file"); |
| | | } |
| | | // 选项富文本处理 |
| | | if ( |
| | | questionObj.optionStyle == "RichText" && |
| | | (questionObj.questionType == "singleChoice" || |
| | | questionObj.questionType == "judge" || |
| | | questionObj.questionType == "multipleChoice") |
| | | ) { |
| | | questionObj.option.forEach((item) => { |
| | | if (item.txt) |
| | | item.txt = item.txt |
| | | .replace(/\<img/gi, '<img class="option-rich-img"') |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | .replace("../file", app.config.requestCtx + "/file"); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | | if ( |
| | | questionObj.analysisCon && |
| | | typeof questionObj.analysisCon == "string" |
| | | ) { |
| | | questionObj.analysisCon = questionObj.analysisCon.replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ); |
| | | } |
| | | // 听力题修改 |
| | | // if (questionObj.questionType == 'singleChoice') { |
| | | // const src = this.extractSourceSrc(questionObj.stem.stemTxt) |
| | | // if (src) { |
| | | // questionObj.src = src |
| | | // questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) |
| | | // } |
| | | // } |
| | | // 获取图片 |
| | | if ( |
| | | questionObj.stemStyle == "Image" || |
| | | questionObj.stemStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.stem.stemImage = getPublicImage( |
| | | questionObj.stem.stemImage, |
| | | 150 |
| | | ); |
| | | } |
| | | if ( |
| | | questionObj.optionStyle == "Image" || |
| | | questionObj.optionStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.option.forEach((optionItem) => { |
| | | if (optionItem.img) |
| | | optionItem.img = getPublicImage(optionItem.img, 150); |
| | | }); |
| | | } |
| | | // 客观题总分赋值 |
| | | if (questionObj.questionType !== "shortAnswer") { |
| | | // this.setData({ |
| | | // subjectiveGrade: this.data.subjectiveGrade + 2, |
| | | // }); |
| | | } |
| | | // 旧数据里 题目正确 记录正确数量 |
| | | if (questionObj.isRight) { |
| | | // this.setData({ |
| | | // correctNum: this.data.correctNum + 1, |
| | | // }); |
| | | } |
| | | if ( |
| | | pathitem.name == "判断题" || |
| | | pathitem.name == "填空题" || |
| | | pathitem.name == "多选题" || |
| | | pathitem.name == "单选题" || |
| | | pathitem.name == "听力题" |
| | | ) { |
| | | if (oldObj) { |
| | | // this.setData({ |
| | | // subjectiveTotal: this.data.subjectiveTotal + 1, |
| | | // }); |
| | | } |
| | | } |
| | | // cardList赋值 |
| | | let cardIndex = this.$data.cardList.findIndex( |
| | | (item) => item.path == pathitem.productLinkPath |
| | | ); |
| | | let infoList = this.$data.cardList[cardIndex].infoList; |
| | | infoList.push(questionObj); |
| | | // this.setData({ |
| | | // [`cardList[${cardIndex}].infoList`]: infoList, |
| | | // }); |
| | | this.$data.cardList[cardIndex].infoList = infoList; |
| | | flag++; |
| | | let questionList = []; |
| | | let grade = 0; |
| | | const cardUpdatedList = this.$data.cardList; |
| | | // if (flag == this.data.idPathList.length) { |
| | | cardUpdatedList.forEach((aitem) => { |
| | | aitem.infoList.forEach((bitem, bindex) => { |
| | | questionList.push(bitem); |
| | | bitem.number = bindex + 1; |
| | | bitem.score = 2; |
| | | }); |
| | | }); |
| | | // this.setData({ |
| | | // questionDataList: questionList, |
| | | // cardList: cardUpdatedList, |
| | | // }); |
| | | this.$data.cardList = cardUpdatedList; |
| | | console.log("题目呢", this.$data.cardList); |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | getParentWithClass(element, className) { |
| | | while (element.parentElement) { |
| | |
| | | let chapterNum; |
| | | if (chapterDom) chapterNum = chapterDom.getAttribute("num"); |
| | | if (txt && pageHtml) { |
| | | this.$dsta.showToolBox = true; |
| | | const page = pageHtml.getAttribute("page"); |
| | | console.log( |
| | | { |
| | |
| | | |
| | | handleMouseDown() { |
| | | this.$data.isMouseDown = true; |
| | | this.$data.showToolBox = false; |
| | | }, |
| | | handleMousemove() { |
| | | if (this.$data.isMouseDown) { |
| | |
| | | </script> |
| | | |
| | | <style lang="less" scoped></style> |
| | | ../assets/examinationList.js../assets/examinationList.js |
| | |
| | | <template> |
| | | <div class="examination" v-loading="loading"> |
| | | <div v-for="(item, nindex) in cardList" :key="nindex" class="border-box"> |
| | | <div v-for="(item, nindex) in cardList" :key="nindex" class="border-box" v-show="item.infoList.length"> |
| | | <p class="catalogName"> |
| | | <span v-if="nindex == 0">一、</span> |
| | | <span v-if="nindex == 1">二、</span> |
| | |
| | | " |
| | | ></TEditorVue> --> |
| | | <el-input |
| | | :disabled="value.isComplete" |
| | | style="width: 90%; margin: 0 auto" |
| | | v-else-if="value.questionType == 'shortAnswer'" |
| | | type="textarea" |
| | |
| | | class="subjective subjectiveItem" |
| | | > |
| | | <div class="questionAnalysis"> |
| | | <p class="difficulty"> |
| | | <p class="difficulty" v-if="value.difficulty"> |
| | | <span style="color: #333">难度等级:</span> |
| | | <el-rate |
| | | v-model="value.difficulty" |
| | |
| | | >{{ |
| | | value.isUnfold ? "收起答案和解析" : "查看答案与解析" |
| | | }} </span |
| | | ><el-image :src="!value.isUnfold ? chakanIcon : packIcon" /> |
| | | > |
| | | </p> |
| | | </div> |
| | | <!-- :class="['analysisDetailBox', value.isUnfold ? 'open' : 'close'].join(' ') --> |
| | |
| | | import { getPublicImage } from "@/assets/js/middleGround/tool"; |
| | | export default { |
| | | name: "examination-option", |
| | | props: ["productLinkPath"], |
| | | props: ["cardList"], |
| | | data() { |
| | | return { |
| | | type: "option", |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.getIdPathList(); |
| | | }, |
| | | methods: { |
| | | // 数组转为字符串方法 |
| | |
| | | this.$data.loading = false; |
| | | }, |
| | | watchParsing(data) { |
| | | debugger |
| | | |
| | | data.isUnfold = !data.isUnfold; |
| | | }, |
| | | // 获取试卷下题目类型 |
| | | getIdPathList() { |
| | | this.$data.loading = true; |
| | | let query = { |
| | | path: "*", |
| | | queryType: "*", |
| | | productId: this.config.bookId, |
| | | cmsPath: "24080\\63791\\63792\\63807", |
| | | pading: { |
| | | start: 0, |
| | | size: 999, |
| | | }, |
| | | }; |
| | | this.MG.store.getProductDetail(query).then(async (res) => { |
| | | console.log(this.$props.productLinkPath, res.datas.cmsDatas[0].datas); |
| | | const idPathList = res.datas.cmsDatas[0].datas; |
| | | await this.getQuestionList(idPathList); |
| | | }); |
| | | }, |
| | | // 获取题库题目 |
| | | async getQuestionList(idPathList, oldData) { |
| | | let cardList = []; |
| | | // 清空正确题数记录 |
| | | for (let index = 0; index < idPathList.length; index++) { |
| | | const pathitem = idPathList[index]; |
| | | const pathList = cardList; |
| | | pathList.push({ |
| | | path: pathitem.productLinkPath, |
| | | catalogName: pathitem.name, |
| | | infoList: [], |
| | | }); |
| | | cardList = pathList; |
| | | // 获取题目 |
| | | let query = { |
| | | path: "*", |
| | | queryType: "*", |
| | | productId: this.config.bookId, |
| | | cmsPath: pathitem.productLinkPath, |
| | | itemFields: { |
| | | Embedded_QuestionBank_Stem: [], |
| | | Embedded_QuestionBank_AnalysisCon: [], |
| | | Embedded_QuestionBank_Answer: [], |
| | | Embedded_QuestionBank_Option: [], |
| | | Embedded_QuestionBank_QuestionType: [], |
| | | Embedded_QuestionBank_StemStyle: [], |
| | | Embedded_QuestionBank_OptionStyle: [], |
| | | Embedded_QuestionBank_KnowledgePoint: [], |
| | | Embedded_QuestionBank_Difficulty: [], |
| | | }, |
| | | pading: { |
| | | start: 0, |
| | | size: 999, |
| | | }, |
| | | }; |
| | | await this.MG.store.getProductDetail(query).then((res) => { |
| | | let oldList; |
| | | if (oldData) { |
| | | // 提交过,存在答题记录 |
| | | oldList = oldData.find( |
| | | (item) => item.path == pathitem.productLinkPath |
| | | ).infoList; |
| | | this.setData({ |
| | | submitStatus: true, |
| | | }); |
| | | } |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | let oldObj = ""; |
| | | if (oldList) |
| | | oldObj = oldList.find((oldItem) => oldItem.id == item.id); |
| | | let questionObj = { |
| | | // num: index, // 题号 |
| | | id: item.id, |
| | | type: pathitem.name, |
| | | stem: |
| | | item.Embedded_QuestionBank_QuestionType == "completion" |
| | | ? JSON.parse(item.Embedded_QuestionBank_Stem) |
| | | .stemTxt.replaceAll("<vacancy>", ",input,") |
| | | .split(",") |
| | | : JSON.parse(item.Embedded_QuestionBank_Stem), // 题干 |
| | | answer: item.Embedded_QuestionBank_Answer, // 答案 |
| | | option: item.Embedded_QuestionBank_Option |
| | | ? JSON.parse(item.Embedded_QuestionBank_Option) |
| | | : "", // 选择题选项 |
| | | analysisCon: item.Embedded_QuestionBank_AnalysisCon, // 解析 |
| | | questionType: item.Embedded_QuestionBank_QuestionType, // 题型 |
| | | optionStyle: item.Embedded_QuestionBank_OptionStyle, // 选项显示类型 |
| | | stemStyle: item.Embedded_QuestionBank_StemStyle, // 题干显示类型 |
| | | difficulty: item.Embedded_QuestionBank_Difficulty |
| | | ? 4 - item.Embedded_QuestionBank_Difficulty |
| | | : 0, // 难度等级 |
| | | userAnswer: oldObj |
| | | ? oldObj.userAnswer |
| | | : item.Embedded_QuestionBank_QuestionType == "completion" || |
| | | item.Embedded_QuestionBank_QuestionType == "multipleChoice" |
| | | ? [] |
| | | : "", |
| | | isUserAnswer: oldObj |
| | | ? this.isHaveAnswer(oldObj.userAnswer) |
| | | : false, |
| | | isRight: oldObj ? oldObj.isRight : null, |
| | | isComplete: oldObj ? oldObj.isComplete : false, |
| | | isCollect: false, |
| | | isUnfold: "", // 控制解析的折叠面板是否展开 |
| | | }; |
| | | // 多选和填空答案肯为数组,要转换JSON格式 |
| | | if ( |
| | | questionObj.questionType == "completion" || |
| | | questionObj.questionType == "multipleChoice" |
| | | ) { |
| | | try { |
| | | questionObj.answer = JSON.parse(questionObj.answer).toString(); |
| | | } catch (error) { |
| | | questionObj.answer = item.Embedded_QuestionBank_Answer; |
| | | } |
| | | } |
| | | // 填空题改造 |
| | | if (questionObj.questionType == "completion") { |
| | | let index = 0; |
| | | for (let i = 0; i < questionObj.stem.length; i++) { |
| | | const item = questionObj.stem[i]; |
| | | if (item == "input") { |
| | | questionObj.stem[i] = { |
| | | num: index, |
| | | data: "input", |
| | | }; |
| | | if (!oldObj) questionObj.userAnswer[index] = ""; |
| | | index++; |
| | | } |
| | | } |
| | | } |
| | | // 题干富文本处理 |
| | | if (questionObj.stemStyle == "RichText") { |
| | | // questionObj.option.txt = '' |
| | | questionObj.stem.stemTxt = questionObj.stem.stemTxt |
| | | .replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ) |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | .replace("../file", app.config.requestCtx + "/file"); |
| | | } |
| | | // 选项富文本处理 |
| | | if ( |
| | | questionObj.optionStyle == "RichText" && |
| | | (questionObj.questionType == "singleChoice" || |
| | | questionObj.questionType == "judge" || |
| | | questionObj.questionType == "multipleChoice") |
| | | ) { |
| | | questionObj.option.forEach((item) => { |
| | | if (item.txt) |
| | | item.txt = item.txt |
| | | .replace(/\<img/gi, '<img class="option-rich-img"') |
| | | .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | .replace("../file", app.config.requestCtx + "/file"); |
| | | }); |
| | | } |
| | | // 解析富文本处理 |
| | | if ( |
| | | questionObj.analysisCon && |
| | | typeof questionObj.analysisCon == "string" |
| | | ) { |
| | | questionObj.analysisCon = questionObj.analysisCon.replace( |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ); |
| | | } |
| | | // 听力题修改 |
| | | // if (questionObj.questionType == 'singleChoice') { |
| | | // const src = this.extractSourceSrc(questionObj.stem.stemTxt) |
| | | // if (src) { |
| | | // questionObj.src = src |
| | | // questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) |
| | | // // 获取试卷下题目类型 |
| | | // getIdPathList() { |
| | | // this.$data.loading = true; |
| | | // let query = { |
| | | // path: "*", |
| | | // queryType: "*", |
| | | // productId: this.config.bookId, |
| | | // cmsPath: "24080\\63791\\63792\\63807", |
| | | // pading: { |
| | | // start: 0, |
| | | // size: 999, |
| | | // }, |
| | | // }; |
| | | // this.MG.store.getProductDetail(query).then(async (res) => { |
| | | // console.log(this.$props.productLinkPath, res.datas.cmsDatas[0].datas); |
| | | // const idPathList = res.datas.cmsDatas[0].datas; |
| | | // await this.getQuestionList(idPathList); |
| | | // }); |
| | | // }, |
| | | // // 获取题库题目 |
| | | // async getQuestionList(idPathList, oldData) { |
| | | // let cardList = []; |
| | | // // 清空正确题数记录 |
| | | // for (let index = 0; index < idPathList.length; index++) { |
| | | // const pathitem = idPathList[index]; |
| | | // const pathList = cardList; |
| | | // pathList.push({ |
| | | // path: pathitem.productLinkPath, |
| | | // catalogName: pathitem.name, |
| | | // infoList: [], |
| | | // }); |
| | | // cardList = pathList; |
| | | // // 获取题目 |
| | | // let query = { |
| | | // path: "*", |
| | | // queryType: "*", |
| | | // productId: this.config.bookId, |
| | | // cmsPath: pathitem.productLinkPath, |
| | | // itemFields: { |
| | | // Embedded_QuestionBank_Stem: [], |
| | | // Embedded_QuestionBank_AnalysisCon: [], |
| | | // Embedded_QuestionBank_Answer: [], |
| | | // Embedded_QuestionBank_Option: [], |
| | | // Embedded_QuestionBank_QuestionType: [], |
| | | // Embedded_QuestionBank_StemStyle: [], |
| | | // Embedded_QuestionBank_OptionStyle: [], |
| | | // Embedded_QuestionBank_KnowledgePoint: [], |
| | | // Embedded_QuestionBank_Difficulty: [], |
| | | // }, |
| | | // pading: { |
| | | // start: 0, |
| | | // size: 999, |
| | | // }, |
| | | // }; |
| | | // await this.MG.store.getProductDetail(query).then((res) => { |
| | | // let oldList; |
| | | // if (oldData) { |
| | | // // 提交过,存在答题记录 |
| | | // oldList = oldData.find( |
| | | // (item) => item.path == pathitem.productLinkPath |
| | | // ).infoList; |
| | | // this.setData({ |
| | | // submitStatus: true, |
| | | // }); |
| | | // } |
| | | // res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | // let oldObj = ""; |
| | | // if (oldList) |
| | | // oldObj = oldList.find((oldItem) => oldItem.id == item.id); |
| | | // let questionObj = { |
| | | // // num: index, // 题号 |
| | | // id: item.id, |
| | | // type: pathitem.name, |
| | | // stem: |
| | | // item.Embedded_QuestionBank_QuestionType == "completion" |
| | | // ? JSON.parse(item.Embedded_QuestionBank_Stem) |
| | | // .stemTxt.replaceAll("<vacancy>", ",input,") |
| | | // .split(",") |
| | | // : JSON.parse(item.Embedded_QuestionBank_Stem), // 题干 |
| | | // answer: item.Embedded_QuestionBank_Answer, // 答案 |
| | | // option: item.Embedded_QuestionBank_Option |
| | | // ? JSON.parse(item.Embedded_QuestionBank_Option) |
| | | // : "", // 选择题选项 |
| | | // analysisCon: item.Embedded_QuestionBank_AnalysisCon, // 解析 |
| | | // questionType: item.Embedded_QuestionBank_QuestionType, // 题型 |
| | | // optionStyle: item.Embedded_QuestionBank_OptionStyle, // 选项显示类型 |
| | | // stemStyle: item.Embedded_QuestionBank_StemStyle, // 题干显示类型 |
| | | // difficulty: item.Embedded_QuestionBank_Difficulty |
| | | // ? 4 - item.Embedded_QuestionBank_Difficulty |
| | | // : 0, // 难度等级 |
| | | // userAnswer: oldObj |
| | | // ? oldObj.userAnswer |
| | | // : item.Embedded_QuestionBank_QuestionType == "completion" || |
| | | // item.Embedded_QuestionBank_QuestionType == "multipleChoice" |
| | | // ? [] |
| | | // : "", |
| | | // isUserAnswer: oldObj |
| | | // ? this.isHaveAnswer(oldObj.userAnswer) |
| | | // : false, |
| | | // isRight: oldObj ? oldObj.isRight : null, |
| | | // isComplete: oldObj ? oldObj.isComplete : false, |
| | | // isCollect: false, |
| | | // isUnfold: "", // 控制解析的折叠面板是否展开 |
| | | // }; |
| | | // // 多选和填空答案肯为数组,要转换JSON格式 |
| | | // if ( |
| | | // questionObj.questionType == "completion" || |
| | | // questionObj.questionType == "multipleChoice" |
| | | // ) { |
| | | // try { |
| | | // questionObj.answer = JSON.parse(questionObj.answer).toString(); |
| | | // } catch (error) { |
| | | // questionObj.answer = item.Embedded_QuestionBank_Answer; |
| | | // } |
| | | // } |
| | | // 获取图片 |
| | | if ( |
| | | questionObj.stemStyle == "Image" || |
| | | questionObj.stemStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.stem.stemImage = getPublicImage( |
| | | questionObj.stem.stemImage, |
| | | 150 |
| | | ); |
| | | } |
| | | if ( |
| | | questionObj.optionStyle == "Image" || |
| | | questionObj.optionStyle == "TxtAndImage" |
| | | ) { |
| | | questionObj.option.forEach((optionItem) => { |
| | | if (optionItem.img) |
| | | optionItem.img = getPublicImage(optionItem.img, 150); |
| | | }); |
| | | } |
| | | // 客观题总分赋值 |
| | | if (questionObj.questionType !== "shortAnswer") { |
| | | // this.setData({ |
| | | // subjectiveGrade: this.data.subjectiveGrade + 2, |
| | | // // 填空题改造 |
| | | // if (questionObj.questionType == "completion") { |
| | | // let index = 0; |
| | | // for (let i = 0; i < questionObj.stem.length; i++) { |
| | | // const item = questionObj.stem[i]; |
| | | // if (item == "input") { |
| | | // questionObj.stem[i] = { |
| | | // num: index, |
| | | // data: "input", |
| | | // }; |
| | | // if (!oldObj) questionObj.userAnswer[index] = ""; |
| | | // index++; |
| | | // } |
| | | // } |
| | | // } |
| | | // // 题干富文本处理 |
| | | // if (questionObj.stemStyle == "RichText") { |
| | | // // questionObj.option.txt = '' |
| | | // questionObj.stem.stemTxt = questionObj.stem.stemTxt |
| | | // .replace( |
| | | // /\<img/gi, |
| | | // '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | // ) |
| | | // .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | // .replace("../file", app.config.requestCtx + "/file"); |
| | | // } |
| | | // // 选项富文本处理 |
| | | // if ( |
| | | // questionObj.optionStyle == "RichText" && |
| | | // (questionObj.questionType == "singleChoice" || |
| | | // questionObj.questionType == "judge" || |
| | | // questionObj.questionType == "multipleChoice") |
| | | // ) { |
| | | // questionObj.option.forEach((item) => { |
| | | // if (item.txt) |
| | | // item.txt = item.txt |
| | | // .replace(/\<img/gi, '<img class="option-rich-img"') |
| | | // .replace(/\<p/gi, '<p class="stem-rich-p"') |
| | | // .replace("../file", app.config.requestCtx + "/file"); |
| | | // }); |
| | | } |
| | | // 旧数据里 题目正确 记录正确数量 |
| | | if (questionObj.isRight) { |
| | | // this.setData({ |
| | | // correctNum: this.data.correctNum + 1, |
| | | // } |
| | | // // 解析富文本处理 |
| | | // if ( |
| | | // questionObj.analysisCon && |
| | | // typeof questionObj.analysisCon == "string" |
| | | // ) { |
| | | // questionObj.analysisCon = questionObj.analysisCon.replace( |
| | | // /\<img/gi, |
| | | // '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | // ); |
| | | // } |
| | | // // 听力题修改 |
| | | // // if (questionObj.questionType == 'singleChoice') { |
| | | // // const src = this.extractSourceSrc(questionObj.stem.stemTxt) |
| | | // // if (src) { |
| | | // // questionObj.src = src |
| | | // // questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) |
| | | // // } |
| | | // // } |
| | | // // 获取图片 |
| | | // if ( |
| | | // questionObj.stemStyle == "Image" || |
| | | // questionObj.stemStyle == "TxtAndImage" |
| | | // ) { |
| | | // questionObj.stem.stemImage = getPublicImage( |
| | | // questionObj.stem.stemImage, |
| | | // 150 |
| | | // ); |
| | | // } |
| | | // if ( |
| | | // questionObj.optionStyle == "Image" || |
| | | // questionObj.optionStyle == "TxtAndImage" |
| | | // ) { |
| | | // questionObj.option.forEach((optionItem) => { |
| | | // if (optionItem.img) |
| | | // optionItem.img = getPublicImage(optionItem.img, 150); |
| | | // }); |
| | | } |
| | | if ( |
| | | pathitem.name == "判断题" || |
| | | pathitem.name == "填空题" || |
| | | pathitem.name == "多选题" || |
| | | pathitem.name == "单选题" || |
| | | pathitem.name == "听力题" |
| | | ) { |
| | | if (oldObj) { |
| | | // this.setData({ |
| | | // subjectiveTotal: this.data.subjectiveTotal + 1, |
| | | // } |
| | | // // 客观题总分赋值 |
| | | // if (questionObj.questionType !== "shortAnswer") { |
| | | // // this.setData({ |
| | | // // subjectiveGrade: this.data.subjectiveGrade + 2, |
| | | // // }); |
| | | // } |
| | | // // 旧数据里 题目正确 记录正确数量 |
| | | // if (questionObj.isRight) { |
| | | // // this.setData({ |
| | | // // correctNum: this.data.correctNum + 1, |
| | | // // }); |
| | | // } |
| | | // if ( |
| | | // pathitem.name == "判断题" || |
| | | // pathitem.name == "填空题" || |
| | | // pathitem.name == "多选题" || |
| | | // pathitem.name == "单选题" || |
| | | // pathitem.name == "听力题" |
| | | // ) { |
| | | // if (oldObj) { |
| | | // // this.setData({ |
| | | // // subjectiveTotal: this.data.subjectiveTotal + 1, |
| | | // // }); |
| | | // } |
| | | // } |
| | | // // cardList赋值 |
| | | // let cardIndex = cardList.findIndex( |
| | | // (item) => item.path == pathitem.productLinkPath |
| | | // ); |
| | | // let infoList = cardList[cardIndex].infoList; |
| | | // infoList.push(questionObj); |
| | | // cardList[cardIndex].infoList = infoList; |
| | | // let questionList = []; |
| | | // const cardUpdatedList = cardList; |
| | | // cardUpdatedList.forEach((aitem) => { |
| | | // aitem.infoList.forEach((bitem, bindex) => { |
| | | // questionList.push(bitem); |
| | | // bitem.number = bindex + 1; |
| | | // bitem.score = 2; |
| | | // }); |
| | | } |
| | | } |
| | | // cardList赋值 |
| | | let cardIndex = cardList.findIndex( |
| | | (item) => item.path == pathitem.productLinkPath |
| | | ); |
| | | let infoList = cardList[cardIndex].infoList; |
| | | infoList.push(questionObj); |
| | | cardList[cardIndex].infoList = infoList; |
| | | let questionList = []; |
| | | const cardUpdatedList = cardList; |
| | | cardUpdatedList.forEach((aitem) => { |
| | | aitem.infoList.forEach((bitem, bindex) => { |
| | | questionList.push(bitem); |
| | | bitem.number = bindex + 1; |
| | | bitem.score = 2; |
| | | }); |
| | | }); |
| | | cardList = cardUpdatedList; |
| | | this.$data.cardList = cardList; |
| | | this.$data.loading = false; |
| | | // console.log("题目呢", cardList); |
| | | // return cardList |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | // }); |
| | | // cardList = cardUpdatedList; |
| | | // this.$data.cardList = cardList; |
| | | // this.$data.loading = false; |
| | | // // console.log("题目呢", cardList); |
| | | // // return cardList |
| | | // }); |
| | | // }); |
| | | // } |
| | | // }, |
| | | // 批改题目 (练习,我的做题,我的收藏模式下) |
| | | handleQuestion() { |
| | | const list = this.$data.cardList |
| | | const list = this.$props.cardList |
| | | for (let index = 0; index < list.length; index++) { |
| | | const item = list[index]; |
| | | for (let cindex = 0; cindex < item.infoList.length; cindex++) { |
| | |
| | | } |
| | | |
| | | } |
| | | this.$data.cardList = list |
| | | this.$props.cardList = list |
| | | console.log(this.$props.cardList); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | font-size: 16px; |
| | | } |
| | | .examination { |
| | | margin-top: 20px; |
| | | min-height: 100px; |
| | | ul { |
| | | list-style: none; |
| | | } |
| | | } |
| | | .border-box { |
| | | padding-top: 20px; |
| | | border: 2px solid #e9e9e9; |
| | | border-top: 0; |
| | | } |
| | | .border-box:first-child { |
| | | border-top:2px solid #e9e9e9 ; |
| | | } |
| | | .questionContent { |
| | | // display: flex; |
| | | // justify-content: flex-start; |
| | | margin-left: -36px; |
| | | // justify-content: center; |
| | | margin-left: 20px; |
| | | } |
| | | .input { |
| | | /deep/ .el-input__inner { |
| | |
| | | /** 题干 */ |
| | | .questionTitle { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content: center; |
| | | .titleContent { |
| | | width: 95%; |
| | | display: flex; |
| | |
| | | width: 140px; |
| | | height: 24px; |
| | | border-top: 0; |
| | | } |
| | | /deep/ .el-textarea.is-disabled .el-textarea__inner { |
| | | background-color: #fff ; |
| | | } |
| | | /deep/.el-input__wrapper { |
| | | border-top: 0 !important; |
| | |
| | | .analysis { |
| | | margin: 20px 0; |
| | | width:550px; |
| | | margin-left: 48px; |
| | | // margin-left: 12px; |
| | | } |
| | | .el-collapse { |
| | | width: 100%; |
| | |
| | | }, |
| | | setQiankun(state,value) { |
| | | state.qiankun = value |
| | | }, |
| | | setQuestionData(state,value) { |
| | | state.questionData = value |
| | | } |
| | | }, |
| | | state: { |
| | | // 状态数据定义 |
| | | num:1, |
| | | testList:[], |
| | | qiankun: {} |
| | | qiankun: {}, |
| | | questionData:{} |
| | | }, |
| | | getters: { |
| | | // 计算派生状态 |