{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\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 { mapState } from 'vuex';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport dpsjMenu from '@/api/examination/dpsjMenu.js';\nexport default {\n mixins: [TableMixin],\n name: 'marking',\n components: {},\n data: function data() {\n return {\n circleUrl: \"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png\",\n //头像\n hr: 1,\n min: 60,\n sec: 0,\n radio: '',\n checkList: [],\n radio3: '',\n input: '',\n textarea: '',\n end: null,\n paperData: {},\n //试卷数据\n topicList: [],\n //题目类型\n formalType: false,\n //正式考试\n param: {\n status: 0,\n recordId: null,\n questionOptionList: []\n },\n userKey: null,\n paperName: null,\n newParams: {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: []\n },\n fullscreenLoading: false\n };\n },\n created: function created() {\n this.topicList = dictUtils.getDictItemsFromCache('sttx');\n\n if (this.$route.params.data && typeof this.$route.params.data.id === 'string') {\n this.userKey = this.$route.params.data.id;\n this.paperName = this.$route.params.data.paperName;\n\n if (this.$route.params.querys.length > 0) {\n this.newParams.querys = this.$route.params.querys;\n } else {\n this.newParams.querys = [];\n }\n\n sessionStorage.setItem('userkey', this.userKey); //初次收到userKey,存起来\n\n sessionStorage.setItem('paperName', this.paperName);\n sessionStorage.setItem('querys', this.newParams.querys);\n } else {\n console.log(sessionStorage.getItem('querys'));\n\n if (sessionStorage.getItem('userkey')) {\n this.userKey = sessionStorage.getItem('userkey'); //不是第一次了,取出来\n\n this.paperName = sessionStorage.getItem('paperName');\n\n if (sessionStorage.getItem('querys')) {\n this.newParams.querys = sessionStorage.getItem('querys');\n } else {\n this.newParams.querys = [];\n }\n } else {\n console.log(3); //如果实在是没有了,就直接去store里面取\n\n this.userKey = store.state.user.userInfo.userKey;\n this.paperName = store.state.user.userInfo.paperName;\n\n if (store.state.user.userInfo.querys) {\n this.newParams.querys = store.state.user.userInfo.querys;\n } else {\n this.newParams.querys = [];\n }\n }\n }\n },\n methods: {\n loadData: function loadData() {\n var _this = this;\n\n dpsjMenu.getUserRecord(this.userKey, function (res) {\n if (res) {\n res.questionsInfoVos.forEach(function (e) {\n if (e.parsing) {\n e.parsing = e.parsing.replace(/<[^>]+>/g, '');\n }\n\n if (e.result) {\n if (e.type == 2) {\n var arr = JSON.parse(JSON.stringify(e.result.split(\",\")));\n e.result = [];\n arr.forEach(function (re) {\n e.result.push(re);\n });\n }\n } else {\n if (e.type == 2) {\n e.result = [];\n } else {\n e.result = '';\n }\n }\n\n _this.topicList.forEach(function (t) {\n if (e.type == t.value) {\n e.typeName = t.name;\n }\n });\n });\n _this.paperData = res;\n _this.param.recordId = res.recordId;\n }\n });\n },\n submitPaper: function submitPaper() {\n var _this2 = this;\n\n var param = JSON.parse(JSON.stringify(this.param));\n var paperData = JSON.parse(JSON.stringify(this.paperData));\n param.questionOptionList = [];\n paperData.questionsInfoVos.forEach(function (e) {\n if (e.type == 2) {\n var ts = \"\";\n e.result.forEach(function (r, ri) {\n if (ri == 0) {\n ts = r;\n } else {\n ts += ',' + r;\n }\n });\n e.result = ts;\n } // this.param.questionOptionList=this.paperData.questionsInfoVos\n\n\n param.questionOptionList.push({\n questionId: e.questionId,\n result: e.result,\n actualScore: e.actualScore\n });\n });\n this.$confirm('请确认评分是否正确,此操作将修改试卷为已阅卷,是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n param.status = 1; // console.log('提交', param);\n // return\n\n dpsjMenu.saveScore(param, function (res) {\n if (res.state) {\n _this2.$message({\n type: 'success',\n message: '提交成功'\n });\n\n _this2.$router.go(-1);\n }\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '取消提交'\n });\n });\n },\n nextSlide: function nextSlide() {\n var _this3 = this;\n\n var param = JSON.parse(JSON.stringify(this.param));\n var paperData = JSON.parse(JSON.stringify(this.paperData));\n param.questionOptionList = [];\n this.fullscreenLoading = true;\n paperData.questionsInfoVos.forEach(function (e) {\n if (e.type == 2) {\n var ts = \"\";\n e.result.forEach(function (r, ri) {\n if (ri == 0) {\n ts = r;\n } else {\n ts += ',' + r;\n }\n });\n e.result = ts;\n }\n\n param.questionOptionList.push({\n questionId: e.questionId,\n result: e.result,\n actualScore: e.actualScore\n });\n });\n param.status = 1;\n dpsjMenu.saveScore(param, function (res) {\n if (res.state) {\n dpsjMenu.paperEvaluationQuery(_this3.newParams, function (res) {\n if (res.rows.length > 0) {\n _this3.userKey = res.rows[0].id;\n _this3.paperName = res.rows[0].paperName;\n sessionStorage.setItem('userkey', _this3.userKey); //初次收到userKey,存起来\n\n sessionStorage.setItem('paperName', _this3.paperName);\n dpsjMenu.getUserRecord(_this3.userKey, function (res) {\n if (res) {\n res.questionsInfoVos.forEach(function (e) {\n if (e.parsing) {\n e.parsing = e.parsing.replace(/<[^>]+>/g, '');\n }\n\n if (e.result) {\n if (e.type == 2) {\n var arr = JSON.parse(JSON.stringify(e.result.split(\",\")));\n e.result = [];\n arr.forEach(function (re) {\n e.result.push(re);\n });\n }\n } else {\n if (e.type == 2) {\n e.result = [];\n } else {\n e.result = '';\n }\n }\n\n _this3.topicList.forEach(function (t) {\n if (e.type == t.value) {\n e.typeName = t.name;\n }\n });\n });\n _this3.paperData = res;\n _this3.param.recordId = res.recordId;\n _this3.fullscreenLoading = false;\n }\n });\n } else {\n _this3.$message.warning('没有试卷了');\n\n _this3.fullscreenLoading = false;\n\n _this3.$router.go(-1);\n }\n });\n } else {\n _this3.$message.warning('提交失败');\n\n _this3.fullscreenLoading = false;\n }\n });\n }\n }\n};",null]}