{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mnksMenu\\components\\xlcjPaper.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mnksMenu\\components\\xlcjPaper.vue","mtime":1669022438603},{"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\nimport {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport xlcjMenu from '@/api/examination/xlcjMenu.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'xlcjPaper',\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\n\t\t\t}\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t},\n\tmethods: {\n\t\tloadData() {\n\t\t\tconsole.log(this.$route.params);\n\t\t\tif (this.$route.params.id !== {} && typeof(this.$route.params.id) === 'string') {\n\t\t\t\tthis.userKey = this.$route.params.id\n\t\t\t\tthis.paperName = this.$route.params.paperName\n\t\t\t\tsessionStorage.setItem('userkey', this.userKey) //初次收到userKey,存起来\n\t\t\t\tsessionStorage.setItem('paperName', this.paperName) //初次收到userKey,存起来\n\t\t\t} else {\n\t\t\t\tif (sessionStorage.getItem('userkey')) {\n\t\t\t\t\tthis.userKey = sessionStorage.getItem('userkey') //不是第一次了,取出来\n\t\t\t\t\tthis.paperName = sessionStorage.getItem('paperName') //不是第一次了,取出来\n\t\t\t\t} else {\n\t\t\t\t\t//如果实在是没有了,就直接去store里面取\n\t\t\t\t\tthis.userKey = store.state.user.userInfo.userKey\n\t\t\t\t\tthis.paperName = store.state.user.userInfo.paperName\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\txlcjMenu.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\t\n\t\t}\n\t}\n}\n",null]}