{"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\\configurationDIalog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\configurationDIalog.vue","mtime":1675655021195},{"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\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport paperMenu from '@/api/examination/paperMenu.js'\nexport default {\n\tname: 'configurationDIalog',\n\tdata() {\n\t\treturn {\n\t\t\tsearch: '',\n\t\t\tEquipmentList: [],\n\t\t\treEquipmentList: [],\n\t\t\tmultipleSelection: [],\n\t\t\tmultipleSelection1: [],\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'name'\n\t\t\t},\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpage: 1,\n\t\t\t\t\tpageSize: 10,\n\t\t\t\t}\n\t\t\t},\n\t\t\tquerys: [{\n\t\t\t\tgroup: \"main\",\n\t\t\t\toperation: \"EQUAL\",\n\t\t\t\tparentGroup: \"\",\n\t\t\t\tproperty: \"q.sub_id_\",\n\t\t\t\trelation: \"AND\",\n\t\t\t\tvalue: ''\n\t\t\t}],\n\t\t\ttopicList: [],\n\t\t\tid: '',\n\t\t\ttotal: 0,\n\t\t\tcurrentKey: null,\n\t\t\tsubjectlist:[]\n\t\t}\n\t},\n\tcreated() {\n\t\n\t\t// this.loadData(1)\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t},\n\twatch: {\n\t\tcurrentKey: {\n\t\t\thandler(value) {\n\t\t\t\tconsole.log(value);\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.$nextTick(\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tthis.$refs.tree.setCurrentKey(this.currentKey)\n\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\timmediate: true,\n\t\t\tvalType: false\n\t\t},\n\t},\n\tmethods: {\n\t\tadd(val,list) {\n\t\t\tconsole.log(val,list);\n\t\t\tthis.confVisible = true\n\t\t\tthis.subjectlist=val\n\t\t\tthis.paperQuestionSettings=list\n\t\t\tthis.currentKey = this.subjectlist[0].id\n\t\t\tthis.querys[0].value = this.currentKey\n\t\t\tthis.id=this.currentKey\n\t\t\t// this.$refs.tree.setCurrentKey(this.currentKey)\n\t\t\tthis.getData()\n\t\t\tconsole.log(this.currentKey);\n\t\t},\n\t\t//开始组卷\n\t\thandleNodeClick(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.id = val.id\n\t\t\t}\n\t\t\tthis.getData()\n\t\t\t\n\t\t},\n\t\tgetData(){\n\t\t\tthis.queryParam.querys = [{\n\t\t\t\tgroup: \"main\",\n\t\t\t\toperation: \"EQUAL\",\n\t\t\t\tparentGroup: \"\",\n\t\t\t\tproperty: \"q.sub_id_\",\n\t\t\t\trelation: \"AND\",\n\t\t\t\tvalue: this.id\n\t\t\t}]\n\t\t\tif (this.paperQuestionSettings.length > 0) {\n\t\t\t\tlet ids = ''\n\t\t\t\tthis.paperQuestionSettings.forEach((p, pi) => {\n\t\t\t\t\tif (pi == 0) {\n\t\t\t\t\t\tids = p.questionId\n\t\t\t\t\t} else {\n\t\t\t\t\t\tids += ',' + p.questionId\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.queryParam.querys.push({\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: \"q.id_\",\n\t\t\t\t\trelation: \"AND\",\n\t\t\t\t\tvalue: ids\n\t\t\t\t})\n\t\t\t}\n\t\t\tpaperMenu.getTopic(this.queryParam, res => {\n\t\t\t\tif (res.rows) {\n\t\t\t\t\tthis.EquipmentList = res.rows\n\t\t\t\t\tthis.total = res.total\n\t\t\t\t\tthis.EquipmentList.forEach(e => {\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\tconsole.log(this.EquipmentList);\n\t\t\t\t\tthis.reEquipmentList.forEach(s => {\n\t\t\t\t\t\tthis.EquipmentList.forEach(u => {\n\t\t\t\t\t\t\tconsole.log(s, u);\n\t\t\t\t\t\t\tif (s.id == u.id) {\n\t\t\t\t\t\t\t\tconsole.log(s.id, u.id);\n\t\t\t\t\t\t\t\tconsole.log(s.id == u.id);\n\t\t\t\t\t\t\t\tthis.$refs.multipleTable.toggleRowSelection(u,\n\t\t\t\t\t\t\t\t\ttrue)\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}\n\t\t\t})\n\t\t},\n\t\tbinRowKey(row) {\n\t\t\treturn row.id\n\t\t},\n\t\t// 未\n\t\thandleSelectionChange(selection, row) {\n\t\t\tconsole.log(selection);\n\t\t\tconsole.log(row);\n\t\t\t//先判断当前操作flag\n\t\t\t//true勾选还是false取消\n\t\t\tlet flag = selection.some((item) => {\n\t\t\t\tif (row.id == item.id) return true;\n\t\t\t})\n\t\t\tif (flag) {\n\t\t\t\tthis.reEquipmentList.push(row)\n\t\t\t} else {\n\t\t\t\tthis.reEquipmentList.forEach((s, si) => {\n\t\t\t\t\tif (s.id == row.id) {\n\t\t\t\t\t\tthis.reEquipmentList.splice(si, 1)\n\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// this.multipleSelection = val\n\t\t},\n\t\t// 已\n\t\thandleSelectionChange1(val) {\n\t\t\tthis.multipleSelection1 = val\n\t\t},\n\t\t// 赋值\n\t\t// rightChang() {\n\t\t// \tthis.reEquipmentList = this.reEquipmentList.concat(this.multipleSelection)\n\t\t// \tthis.EquipmentList = this.EquipmentList.filter(\n\t\t// \t\titem => !this.reEquipmentList.some(citem => citem.question == item.question)\n\t\t// \t)\n\t\t// \tconsole.log(this.reEquipmentList);\n\t\t// },\n\t\t// leftChang() {\n\t\t// \tthis.EquipmentList = this.EquipmentList.concat(this.multipleSelection1)\n\t\t// \tthis.reEquipmentList = this.reEquipmentList.filter(\n\t\t// \t\titem2 => !this.EquipmentList.some(citem2 => citem2.question == item2.question)\n\t\t// \t)\n\t\t// },\n\t\thandleClose() {\n\t\t\tthis.confVisible=false\n\t\t\tthis.id=''\n\t\t\tthis.currentKey=''\n\t\t\tthis.$emit('closeFormDiao')\n\t\t},\n\t\t//确认题目\n\t\tconfirmTopic() {\n\t\t\tif (this.reEquipmentList.length > 0) {\n\t\t\t\tlet scoreType = this.reEquipmentList.every(item => !!item.score)\n\t\t\t\tif (!scoreType) {\n\t\t\t\t\tthis.$message({\n\t\t\t\t\t\tmessage: '请输入题目分数',\n\t\t\t\t\t\ttype: 'warning'\n\t\t\t\t\t});\n\t\t\t\t\treturn\n\t\t\t\t} else {\n\t\t\t\t\tthis.$emit('questions', this.reEquipmentList);\n\t\t\t\t}\n\t\t\t\t// 向父组件传递\n\t\t\t} else {\n\t\t\t\tthis.$message({\n\t\t\t\t\tmessage: '请选择题目',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t});\n\t\t\t}\n\n\t\t},\n\t\thandleSizeChange(val) {\n\t\t\tthis.queryParam.pageBean.pageSize = val\n\t\t\tthis.handleNodeClick()\n\t\t\tconsole.log(`当前条: ${val}`);\n\t\t},\n\t\thandleCurrentChange(val) {\n\t\t\tthis.queryParam.pageBean.page = val\n\t\t\tthis.handleNodeClick()\n\t\t\tconsole.log(`当前页: ${val}`);\n\t\t}\n\t}\n}\n",null]}