{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\cjglMenu\\kscjMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\cjglMenu\\kscjMenu.vue","mtime":1673850719903},{"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\nimport req from \"@/request.js\";\nimport {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport kscjDialog from './components/kscjDialog.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\tkscjDialog\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: 'NOT_IN',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 's.status_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '0'\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},\n\tcomputed: {\n\t\t...mapState({\n\t\t\ttoken: (state) => state.login.currentUser.token,\n\t\t}),\n\t},\n\tmethods: {\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\t\tpreview(val) {\n\t\t\tconsole.log(val.id);\n\t\t\tthis.$refs.kscjDialog.add(val.id)\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(\n\t\t\t\t\t'.')[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]}