{"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\\marking.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\marking.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//\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 dpsjMenu from '@/api/examination/dpsjMenu.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'marking',\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: 60,\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: null,\n\t\t\tpaperData: {}, //试卷数据\n\t\t\ttopicList: [], //题目类型\n\t\t\tformalType: false, //正式考试\n\t\t\tparam: {\n\t\t\t\tstatus: 0,\n\t\t\t\trecordId: null,\n\t\t\t\tquestionOptionList: []\n\t\t\t},\n\t\t\tuserKey: null,\n\t\t\tpaperName: null,\n\t\t\tnewParams: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tpageSize: -1,\n\t\t\t\t},\n\t\t\t\tquerys: [],\n\t\t\t},\n\t\t\tfullscreenLoading: false,\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t\tif (this.$route.params.data && typeof(this.$route.params.data.id) === 'string') {\n\t\t\tthis.userKey = this.$route.params.data.id\n\t\t\tthis.paperName = this.$route.params.data.paperName\n\t\t\tif (this.$route.params.querys.length > 0) {\n\t\t\t\tthis.newParams.querys = this.$route.params.querys\n\t\t\t} else {\n\t\t\t\tthis.newParams.querys = []\n\t\t\t}\n\t\t\tsessionStorage.setItem('userkey', this.userKey) //初次收到userKey,存起来\n\t\t\tsessionStorage.setItem('paperName', this.paperName) \n\t\t\tsessionStorage.setItem('querys', this.newParams.querys)\n\t\t} else {\n\t\t\tconsole.log(sessionStorage.getItem('querys'));\n\t\t\tif (sessionStorage.getItem('userkey')) {\n\t\t\t\tthis.userKey = sessionStorage.getItem('userkey') //不是第一次了,取出来\n\t\t\t\tthis.paperName = sessionStorage.getItem('paperName')\n\t\t\t\tif (sessionStorage.getItem('querys')) {\n\t\t\t\t\tthis.newParams.querys = sessionStorage.getItem('querys')\n\t\t\t\t} else {\n\t\t\t\t\tthis.newParams.querys = []\n\t\t\t\t}\n\t\t\n\t\t\n\t\t\t} else {\n\t\t\t\tconsole.log(3);\n\t\t\t\t//如果实在是没有了,就直接去store里面取\n\t\t\t\tthis.userKey = store.state.user.userInfo.userKey\n\t\t\t\tthis.paperName = store.state.user.userInfo.paperName\n\t\t\t\tif (store.state.user.userInfo.querys) {\n\t\t\t\t\tthis.newParams.querys = store.state.user.userInfo.querys\n\t\t\t\t} else {\n\t\t\t\t\tthis.newParams.querys = []\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t},\n\tmethods: {\n\t\tloadData() {\n\t\t\tdpsjMenu.getUserRecord(this.userKey, res => {\n\t\t\t\tif (res) {\n\t\t\t\t\tres.questionsInfoVos.forEach(e => {\n\t\t\t\t\t\tif (e.parsing) {\n\t\t\t\t\t\t\te.parsing = e.parsing.replace(/<[^>]+>/g, '')\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (e.result) {\n\t\t\t\t\t\t\tif (e.type == 2) {\n\t\t\t\t\t\t\t\tlet arr = JSON.parse(JSON.stringify(e.result.split(\",\")))\n\t\t\t\t\t\t\t\te.result = []\n\t\t\t\t\t\t\t\tarr.forEach(re => {\n\t\t\t\t\t\t\t\t\te.result.push(re)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (e.type == 2) {\n\t\t\t\t\t\t\t\te.result = []\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\te.result = ''\n\t\t\t\t\t\t\t}\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\tthis.param.recordId = res.recordId\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tsubmitPaper() {\n\t\t\tlet param=JSON.parse(JSON.stringify(this.param))\n\t\t\tlet paperData=JSON.parse(JSON.stringify(this.paperData))\n\t\t\tparam.questionOptionList = []\n\t\t\tpaperData.questionsInfoVos.forEach(e => {\n\t\t\t\tif (e.type == 2) {\n\t\t\t\t\tlet ts = \"\"\n\t\t\t\t\te.result.forEach((r, ri) => {\n\t\t\t\t\t\tif (ri == 0) {\n\t\t\t\t\t\t\tts = r\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tts += ',' + r\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\te.result = ts\n\t\t\t\t}\n\t\t\t\t// this.param.questionOptionList=this.paperData.questionsInfoVos\n\t\t\t\tparam.questionOptionList.push({\n\t\t\t\t\tquestionId: e.questionId,\n\t\t\t\t\tresult: e.result,\n\t\t\t\t\tactualScore: e.actualScore\n\n\t\t\t\t})\n\t\t\t})\n\t\t\tthis.$confirm('请确认评分是否正确,此操作将修改试卷为已阅卷,是否继续?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tparam.status = 1\n\t\t\t\t// console.log('提交', param);\n\t\t\t\t// return\n\t\t\t\tdpsjMenu.saveScore(param, res => {\n\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\tthis.$message({\n\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\tmessage: '提交成功'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.$router.go(-1)\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t}).catch(() => {\n\t\t\t\tthis.$message({\n\t\t\t\t\ttype: 'info',\n\t\t\t\t\tmessage: '取消提交'\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tnextSlide() {\n\t\t\tlet param=JSON.parse(JSON.stringify(this.param))\n\t\t\tlet paperData=JSON.parse(JSON.stringify(this.paperData))\n\t\t\tparam.questionOptionList = []\n\t\t\tthis.fullscreenLoading = true\n\t\t\tpaperData.questionsInfoVos.forEach(e => {\n\t\t\t\tif (e.type == 2) {\n\t\t\t\t\tlet ts = \"\"\n\t\t\t\t\te.result.forEach((r, ri) => {\n\t\t\t\t\t\tif (ri == 0) {\n\t\t\t\t\t\t\tts = r\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tts += ',' + r\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\te.result = ts\n\n\t\t\t\t}\n\t\t\t\tparam.questionOptionList.push({\n\t\t\t\t\tquestionId: e.questionId,\n\t\t\t\t\tresult: e.result,\n\t\t\t\t\tactualScore: e.actualScore\n\n\t\t\t\t})\n\n\t\t\t})\n\t\t\tparam.status = 1\n\t\t\tdpsjMenu.saveScore(param, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tdpsjMenu.paperEvaluationQuery(this.newParams, res => {\n\t\t\t\t\t\tif (res.rows.length > 0) {\n\t\t\t\t\t\t\tthis.userKey = res.rows[0].id\n\t\t\t\t\t\t\tthis.paperName = res.rows[0].paperName\n\t\t\t\t\t\t\tsessionStorage.setItem('userkey', this.userKey) //初次收到userKey,存起来\n\t\t\t\t\t\t\tsessionStorage.setItem('paperName', this.paperName)\n\t\t\t\t\t\t\tdpsjMenu.getUserRecord(this.userKey, res => {\n\t\t\t\t\t\t\t\tif (res) {\n\t\t\t\t\t\t\t\t\tres.questionsInfoVos.forEach(e => {\n\t\t\t\t\t\t\t\t\t\tif (e.parsing) {\n\t\t\t\t\t\t\t\t\t\t\te.parsing = e.parsing.replace(/<[^>]+>/g,\n\t\t\t\t\t\t\t\t\t\t\t\t'')\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (e.result) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.type == 2) {\n\t\t\t\t\t\t\t\t\t\t\t\tlet arr = JSON.parse(JSON.stringify(e\n\t\t\t\t\t\t\t\t\t\t\t\t\t.result.split(\",\")))\n\t\t\t\t\t\t\t\t\t\t\t\te.result = []\n\t\t\t\t\t\t\t\t\t\t\t\tarr.forEach(re => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te.result.push(re)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tif (e.type == 2) {\n\t\t\t\t\t\t\t\t\t\t\t\te.result = []\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\te.result = ''\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\t\t\t\t\tif (e.type == t.value) {\n\t\t\t\t\t\t\t\t\t\t\t\te.typeName = t.name\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.paperData = res\n\t\t\t\t\t\t\t\t\tthis.param.recordId = res.recordId\n\t\t\t\t\t\t\t\t\tthis.fullscreenLoading = false\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.$message.warning('没有试卷了')\n\t\t\t\t\t\t\tthis.fullscreenLoading = false\n\t\t\t\t\t\t\tthis.$router.go(-1)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tthis.$message.warning('提交失败')\n\t\t\t\t\tthis.fullscreenLoading = false\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}\n}\n",null]}