{"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\\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\\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/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//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport paperMenu from '@/api/examination/paperMenu.js';\nexport default {\n name: 'configurationDIalog',\n data: function data() {\n return {\n search: '',\n EquipmentList: [],\n reEquipmentList: [],\n multipleSelection: [],\n multipleSelection1: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 10\n }\n },\n querys: [{\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"q.sub_id_\",\n relation: \"AND\",\n value: ''\n }],\n topicList: [],\n id: '',\n total: 0,\n currentKey: null,\n subjectlist: []\n };\n },\n created: function created() {\n // this.loadData(1)\n this.topicList = dictUtils.getDictItemsFromCache('sttx');\n },\n watch: {\n currentKey: {\n handler: function handler(value) {\n var _this = this;\n\n console.log(value);\n\n if (value) {\n this.$nextTick(function () {\n _this.$refs.tree.setCurrentKey(_this.currentKey);\n });\n }\n },\n immediate: true,\n valType: false\n }\n },\n methods: {\n add: function add(val, list) {\n console.log(val, list);\n this.confVisible = true;\n this.subjectlist = val;\n this.paperQuestionSettings = list;\n this.currentKey = this.subjectlist[0].id;\n this.querys[0].value = this.currentKey;\n this.id = this.currentKey; // this.$refs.tree.setCurrentKey(this.currentKey)\n\n this.getData();\n console.log(this.currentKey);\n },\n //开始组卷\n handleNodeClick: function handleNodeClick(val) {\n if (val) {\n this.id = val.id;\n }\n\n this.getData();\n },\n getData: function getData() {\n var _this2 = this;\n\n this.queryParam.querys = [{\n group: \"main\",\n operation: \"EQUAL\",\n parentGroup: \"\",\n property: \"q.sub_id_\",\n relation: \"AND\",\n value: this.id\n }];\n\n if (this.paperQuestionSettings.length > 0) {\n var ids = '';\n this.paperQuestionSettings.forEach(function (p, pi) {\n if (pi == 0) {\n ids = p.questionId;\n } else {\n ids += ',' + p.questionId;\n }\n });\n this.queryParam.querys.push({\n group: \"main\",\n operation: \"NOT_IN\",\n parentGroup: \"\",\n property: \"q.id_\",\n relation: \"AND\",\n value: ids\n });\n }\n\n paperMenu.getTopic(this.queryParam, function (res) {\n if (res.rows) {\n _this2.EquipmentList = res.rows;\n _this2.total = res.total;\n\n _this2.EquipmentList.forEach(function (e) {\n _this2.topicList.forEach(function (t) {\n if (e.type == t.value) {\n e.typeName = t.name;\n }\n });\n });\n\n console.log(_this2.EquipmentList);\n\n _this2.reEquipmentList.forEach(function (s) {\n _this2.EquipmentList.forEach(function (u) {\n console.log(s, u);\n\n if (s.id == u.id) {\n console.log(s.id, u.id);\n console.log(s.id == u.id);\n\n _this2.$refs.multipleTable.toggleRowSelection(u, true);\n }\n });\n });\n }\n });\n },\n binRowKey: function binRowKey(row) {\n return row.id;\n },\n // 未\n handleSelectionChange: function handleSelectionChange(selection, row) {\n var _this3 = this;\n\n console.log(selection);\n console.log(row); //先判断当前操作flag\n //true勾选还是false取消\n\n var flag = selection.some(function (item) {\n if (row.id == item.id) return true;\n });\n\n if (flag) {\n this.reEquipmentList.push(row);\n } else {\n this.reEquipmentList.forEach(function (s, si) {\n if (s.id == row.id) {\n _this3.reEquipmentList.splice(si, 1);\n }\n });\n } // this.multipleSelection = val\n\n },\n // 已\n handleSelectionChange1: function handleSelectionChange1(val) {\n this.multipleSelection1 = val;\n },\n // 赋值\n // rightChang() {\n // \tthis.reEquipmentList = this.reEquipmentList.concat(this.multipleSelection)\n // \tthis.EquipmentList = this.EquipmentList.filter(\n // \t\titem => !this.reEquipmentList.some(citem => citem.question == item.question)\n // \t)\n // \tconsole.log(this.reEquipmentList);\n // },\n // leftChang() {\n // \tthis.EquipmentList = this.EquipmentList.concat(this.multipleSelection1)\n // \tthis.reEquipmentList = this.reEquipmentList.filter(\n // \t\titem2 => !this.EquipmentList.some(citem2 => citem2.question == item2.question)\n // \t)\n // },\n handleClose: function handleClose() {\n this.confVisible = false;\n this.id = '';\n this.currentKey = '';\n this.$emit('closeFormDiao');\n },\n //确认题目\n confirmTopic: function confirmTopic() {\n if (this.reEquipmentList.length > 0) {\n var scoreType = this.reEquipmentList.every(function (item) {\n return !!item.score;\n });\n\n if (!scoreType) {\n this.$message({\n message: '请输入题目分数',\n type: 'warning'\n });\n return;\n } else {\n this.$emit('questions', this.reEquipmentList);\n } // 向父组件传递\n\n } else {\n this.$message({\n message: '请选择题目',\n type: 'warning'\n });\n }\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.handleNodeClick();\n console.log(\"\\u5F53\\u524D\\u6761: \".concat(val));\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.handleNodeClick();\n console.log(\"\\u5F53\\u524D\\u9875: \".concat(val));\n }\n }\n};",null]}