{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\testPaper.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\testPaper.vue","mtime":1705466684645},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport paperMenu from '@/api/examination/paperMenu.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'testPaper',\n\tcomponents: {},\n\tdata() {\n\t\treturn {\n\t\t\tcircleUrl: \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\", //头像\n\t\t\thr: 1,\n\t\t\tmin: 30,\n\t\t\tsec: 0,\n\t\t\tradio: '',\n\t\t\tcheckList: [],\n\t\t\tradio3: '',\n\t\t\tinput: '',\n\t\t\ttextarea: '',\n\t\t\tend: Date.parse(new Date()) + ((1 * 30 * 60)) * 1000,\n\t\t\tpaperData: {}, //试卷数据\n\t\t\tvalue: [],\n\t\t\ttopicList: [], //题目类型\n\t\t\tformalType: false, //正式考试\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t},\n\tmounted() {\n\t\tthis.countdown()\n\t},\n\t// watch: {\n\t// \tpaperData: {\n\t// \t\tdeep: true, //深度监听设置为 true\n\t// \t\thandler: function(newVal, oldVal) {\n\t// \t\t\tconsole.log(\"数据发生变化啦\"); //修改数据时,能看到输出结果\n\t// \t\t\tconsole.log(newVal, oldVal);\n\t// \t\t}\n\t// \t}\n\t// },\n\tmethods: {\n\t\tloadData() {\n\t\t\t// console.log(this.$route.query);\n\n\t\t\tlet id = this.$route.query.id\n\t\t\tpaperMenu.previewPaper(id, res => {\n\t\t\t\tif (res) {\n\t\t\t\t\tres.examQuestionsInfos.forEach(e => {\n\t\t\t\t\t\tif (e.type == 2) {\n\t\t\t\t\t\t\te.answer = []\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\te.answer = ''\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\tif (e.type == t.value) {\n\t\t\t\t\t\t\t\te.typeName = t.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tthis.paperData = res\n\t\t\t\t}\n\t\t\t})\n\n\t\t},\n\t\tcheckout(val) {\n\t\t\tconsole.log(this.checkList);\n\t\t\tconsole.log(this.value);\n\t\t},\n\t\tcountdown() {\n\t\t\tconst now = Date.parse(new Date())\n\t\t\tconst msec = this.end - now\n\t\t\tif (msec < 0) return;\n\t\t\tlet day = parseInt(msec / 1000 / 60 / 60 / 24)\n\t\t\tlet hr = parseInt(msec / 1000 / 60 / 60 % 24)\n\t\t\tlet min = parseInt(msec / 1000 / 60 % 60)\n\t\t\tlet sec = parseInt(msec / 1000 % 60)\n\t\t\tthis.day = day\n\t\t\tthis.hr = hr > 9 ? hr : '0' + hr\n\t\t\tthis.min = min > 9 ? min : '0' + min\n\t\t\tthis.sec = sec > 9 ? sec : '0' + sec\n\t\t\tconst that = this\n\t\t\tif (min >= 0 && sec >= 0) {\n\t\t\t\t//倒计时结束关闭订单\n\t\t\t\tif (min == 0 && sec == 0) {\n\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\tthat.countdown()\n\t\t\t\t}, 1000)\n\t\t\t}\n\t\t},\n\t\tchengeGroup(val) {\n\t\t\tval\n\t\t},\n\t\t//提交试卷\n\t\tsubmitPaper() {\n\n\t\t\tthis.$router.go(-1)\n\t\t}\n\t},\n\n\n}\n",null]}