{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\paperMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\paperMenu.vue","mtime":1686814052230},{"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//\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 req from \"@/request.js\";\nimport {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport paperMenuDialog from './components/paperMenuDialog.vue'\nimport addCandidatesDialog from './components/addCandidatesDialog.vue'\nimport configDialog from './components/configDialog.vue'\nimport paperMenu from '@/api/examination/paperMenu.js'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'roomMenu',\n\tcomponents: {\n\t\tpaperMenuDialog,\n\t\taddCandidatesDialog,\n\t\tconfigDialog\n\t},\n\tdata() {\n\t\treturn {\n\t\t\turl: {\n\t\t\t\tdelete: '/exam/paper/base/'\n\t\t\t},\n\t\t\ttableData: [],\n\t\t\ttotal: 0,\n\t\t\tmultipleSelection: [],\n\t\t\tcurrentPage: 4,\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'type_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '1'\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'b.name_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'b.way_type_ ',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\n\t\t\t\t{\n\t\t\t\t\tgroup: 'time',\n\t\t\t\t\toperation: 'BETWEEN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 's.plan_start_time_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}, {\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'paperStatus',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}, {\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'b.paper_type_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}\n\t\t\t],\n\t\t\t//课目\n\t\t\tsubjects: '',\n\t\t\tsubjectsList: [],\n\t\t\t//难度\n\t\t\tdifficultyList: [],\n\t\t\tksztList: [],\n\t\t\tkhlxList: [],\n\t\t\tsjztList: [],\n\t\t\tfileList: []\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.ksztList = dictUtils.getDictItemsFromCache('kszt')\n\t\tthis.khlxList = dictUtils.getDictItemsFromCache('khlx')\n\t\tthis.zjfsList = dictUtils.getDictItemsFromCache('zjfs')\n\t\tthis.sjztList = dictUtils.getDictItemsFromCache('sjzt')\n\t\tconsole.log(this.sjztList);\n\t},\n\tcomputed: {\n\t\t...mapState({\n\t\t\ttoken: (state) => state.login.currentUser.token,\n\t\t}),\n\t},\n\tmethods: {\n\n\t\thandleDbClick(val) {\n\t\t\tif (val.status == 0) {\n\t\t\t\tthis.$refs.formModal.edit(val)\n\t\t\t} else {\n\t\t\t\tlet title = val.status == 1 ? '该试卷正在考试中,禁止编辑' : val.status == 2 ? '该试卷已结束考试' : '禁止编辑'\n\t\t\t\tthis.$message({\n\t\t\t\t\tmessage: title,\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tthis.queryParam.sorter = [{\n\t\t\t\tdirection: \"DESC\",\n\t\t\t\tproperty: \"createTime\"\n\t\t\t}]\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tif (this.querys[3].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[3])\n\t\t\t}\n\t\t\tif (this.querys[4].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[4])\n\t\t\t}\n\t\t\tif (this.querys[5].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[5])\n\t\t\t}\n\t\t\tpaperMenu.getPaper(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.tableData.forEach(e => {\n\t\t\t\t\tthis.sjztList.forEach(k => {\n\t\t\t\t\t\tif (e.status == k.value) {\n\t\t\t\t\t\t\te.statusName = k.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.khlxList.forEach(k => {\n\t\t\t\t\t\tif (e.paperType == k.value) {\n\t\t\t\t\t\t\te.paperTypeName = k.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.zjfsList.forEach(z => {\n\t\t\t\t\t\tif (e.wayType == z.value) {\n\t\t\t\t\t\t\te.wayTypeName = z.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\n\t\t\t\t})\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t\t// \t}\n\t\t\t// })\n\t\t},\n\n\n\t\t//预览试卷\n\t\tpreview(command, val) {\n\t\t\tif (command == 0) {\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tname: 'testPaper',\n\t\t\t\t\tquery: val\n\t\t\t\t})\n\t\t\t} else if (command == 1) {\n\t\t\t\tthis.$confirm('是否发布,请检查试卷配置题目人员信息,发布后试卷不能编辑',\n\t\t\t\t\t\t\"提示\", {\n\t\t\t\t\t\t\ttype: 'warning',\n\t\t\t\t\t\t})\n\t\t\t\t\t.then(_ => {\n\t\t\t\t\t\tpaperMenu.startPaper(val.id, res => {\n\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\tthis.$message({\n\t\t\t\t\t\t\t\t\tmessage: '发布成功',\n\t\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tthis.loadData()\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\t.catch(_ => {});\n\n\t\t\t} else if (command == 2) {\n\t\t\t\tthis.$refs.addCandidates.add(val)\n\t\t\t}else if(command==3){\n\t\t\t\tthis.$refs.configDialog.add(val)\n\t\t\t}\n\n\t\t\t// let routeData = this.$router.resolve({\n\t\t\t// \tpath: '/frontPlat/Equipment/examMenu/previewTestPaper'\n\t\t\t// });\n\t\t\t// console.log(routeData);\n\t\t\t// window.open(routeData.href +'?token=' +\n\t\t\t// this.token, \"_blank\"); \n\t\t},\n\t\t//复制试卷\n\t\thandleClick(val) {\n\t\t\tthis.$refs.formModal.copy(val)\n\t\t},\n\t\ttableRowClassName({\n\t\t\trow,\n\t\t\trowIndex\n\t\t}) {\n\t\t\tif (rowIndex % 2 == 0) {\n\t\t\t\treturn 'warning-row';\n\t\t\t} else {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t},\n\t\t// 打开搜索更多\n\t\topenMore() {\n\t\t\tthis.showMore = !this.showMore\n\t\t},\n\t\t//导入\n\t\thandleChange(file, fileList) {\n\t\t\tif (fileList.length > 1) {\n\t\t\t\tfileList.splice(0, 1)\n\t\t\t}\n\t\t\tif (file.raw.name.split('.')[1] == 'xlsx' || file.raw.name.split('.')[1] == 'xls'|| file.raw.name.split('.')[1] == 'xlsm') {\n\t\t\t\tthis.upLoadFile(file.raw)\n\t\t\t} else {\n\t\t\t\tthis.$message.warning('请上传xls,xlsx,xlsm格式文件!')\n\t\t\t\tfileList.splice(0)\n\t\t\t}\n\t\t},\n\t\t//自定义上传方法(覆盖默认上传行为)\n\t\tupLoadFile(file) {\n\t\t\tlet formData = new FormData()\n\t\t\tformData.append('file', file)\n\t\t\tquestionListMenu.importExcel(formData, (res) => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\tmessage: '导入成功',\n\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData(1)()\n\t\t\t\t} else {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\toffset: 80,\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData(1)\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\texportFile() {\n\t\t\tquestionListMenu.export(this.queryParam, res => {\n\t\t\t\tif (res) {\n\n\t\t\t\t}\n\t\t\t})\n\n\t\t}\n\t}\n}\n",null]}