{"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\\mnksMenu\\components\\mnsjMenuDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mnksMenu\\components\\mnsjMenuDialog.vue","mtime":1669878423742},{"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.array.sort\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.number.constructor\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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';\nimport mnsjMenu from '@/api/examination/mnsjMenu.js';\nimport configurationDIalog from '@/views/examMenu/components/configurationDIalog.vue';\nimport subjectDialog from '@/views/examMenu/components/subjectDialog.vue';\nimport randomDialog from '@/views/examMenu/components/randomDialog.vue';\nexport default {\n props: {\n subjectlist: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n components: {\n configurationDIalog: configurationDIalog,\n subjectDialog: subjectDialog,\n randomDialog: randomDialog\n },\n name: 'paperMenuDialog',\n data: function data() {\n return {\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'u.fullname_',\n relation: 'AND',\n value: ''\n }],\n visible: false,\n confVisible: false,\n //二级弹框\n activeCollapse1: '1',\n ctlTypeList: '',\n isActive: 0,\n parameter: {},\n params: {\n name: '',\n subjectId: '',\n wayType: 1,\n paperQuestionSettings: [],\n totalScore: 100,\n paperSetting: {\n timeLength: null,\n passScore: null\n }\n },\n subject: [],\n subjectList: [],\n btnBisabled: true,\n rules: {\n name: [{\n required: true,\n message: '请输入试卷名称',\n trigger: 'blur'\n }],\n subjectId: [{\n required: true,\n message: '请选择考试课目',\n trigger: 'blur'\n }],\n totalScore: [{\n required: true,\n message: '请输入总分数',\n trigger: 'blur'\n }],\n timeLength: [{\n required: true,\n message: '请输入考试时长',\n trigger: 'blur'\n }]\n },\n testUserList: [{\n name: '所有人',\n value: '1'\n }, {\n name: '用户',\n value: '2'\n }],\n //随机组卷\n data: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 10\n }\n },\n ruleForm: {\n startTime: '',\n // 开始时间\n endTime: '' // 结束时间\n\n },\n // 禁用今天之前的时间\n pickerOptionsOne: {\n disabledDate: function disabledDate(time) {\n return time.getTime() < Date.now() - 8.64e7;\n }\n },\n // 禁用今天之前的时间 + 禁用第一个时间选择框选择的小时之前的时间\n pickerOptionsTwo: {\n selectableRange: [],\n disabledDate: function disabledDate(time) {\n return time.getTime() < Date.now() - 8.64e7;\n }\n },\n title: '',\n search: '',\n search1: '',\n EquipmentList: [],\n multipleSelection: [],\n multipleSelection1: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n selectUserProps: {\n label: \"userName\"\n },\n nameArr: [],\n typeList: [{\n name: '正在考试',\n value: 0\n }, {\n name: '模拟考试',\n value: 1\n }],\n subjectsList: [],\n topicList: [],\n //题目类型\n stndList: [],\n //试题难度\n ksfsList: [],\n //考试方式\n isShrink: false,\n //展开\n //考生确认\n total: 0,\n jobsList: [],\n //岗位树\n subjectUser: {\n majorIds: [],\n subjectIds: []\n },\n roomList: [] //考场列表\n\n };\n },\n computed: {\n totalScore: function totalScore() {\n var totalScore = 0;\n this.params.paperQuestionSettings.forEach(function (p) {\n totalScore += p.numuber * p.score;\n });\n return totalScore;\n },\n configScore: function configScore() {\n var configScore = 0;\n this.params.paperQuestionSettings.forEach(function (s) {\n configScore += Number(s.score);\n });\n return configScore;\n }\n },\n watch: {\n // 监听计算属性里面的endTime\n endTime: {\n handler: function handler(val, oldVal) {\n this.pickerOptionsTwo.selectableRange = val;\n },\n deep: true\n }\n },\n created: function created() {\n this.zjfsList = dictUtils.getDictItemsFromCache('zjfs');\n this.zjfsList.pop();\n this.topicList = dictUtils.getDictItemsFromCache('sttx');\n this.stndList = dictUtils.getDictItemsFromCache('stnd');\n this.ksfsList = dictUtils.getDictItemsFromCache('ksfs');\n this.getOrgPostPage();\n this.pagingQuery();\n },\n mounted: function mounted() {},\n methods: {\n add: function add(val) {\n this.visible = true;\n this.parameter = val;\n this.title = '新增';\n },\n edit: function edit(val) {\n var _this = this;\n\n this.visible = true;\n this.title = '修改';\n this.$nextTick(function () {\n mnsjMenu.detailId(val.id, function (res) {\n if (res) {\n _this.params = res;\n _this.subjectList = _this.params.subjectInfos;\n\n _this.subjectList.forEach(function (s) {\n _this.subject.push(s.id);\n });\n\n if (_this.params.wayType == 1 || _this.params.wayType == 3) {\n _this.params.paperQuestionSettings.forEach(function (p) {\n _this.subjectList.forEach(function (s) {\n if (s.id == p.subjectId) {\n p.subjectName = s.name;\n }\n });\n\n _this.topicList.forEach(function (t) {\n if (t.value == p.questionType) {\n p.questionName = t.name;\n }\n });\n });\n }\n\n if (_this.params.wayType == 2) {\n _this.params.paperQuestionSettings.forEach(function (e) {\n e.isShrink = false;\n\n _this.topicList.forEach(function (t) {\n if (e.questionType == t.value) {\n e.questionTypeName = t.name;\n }\n });\n\n _this.stndList.forEach(function (s) {\n if (e.questionsInfo.difficulty == s.value) {\n e.questionsInfo.difficultyName = s.name;\n }\n });\n });\n }\n }\n });\n });\n },\n //复制试卷\n copy: function copy(val) {\n var _this2 = this;\n\n this.visible = true;\n this.title = '复制';\n this.$nextTick(function () {\n mnsjMenu.detailId(val.id, function (res) {\n if (res) {\n _this2.params = res;\n delete _this2.params.id;\n _this2.subjectList = _this2.params.subjectInfos;\n\n _this2.subjectList.forEach(function (s) {\n _this2.subject.push(s.id);\n });\n\n delete _this2.params.paperSetting.id;\n delete _this2.params.paperSetting.paperId;\n delete _this2.params.pkVal;\n\n if (_this2.params.wayType == 1 || _this2.params.wayType == 3) {\n _this2.params.paperQuestionSettings.forEach(function (p) {\n delete p.paperBaseId;\n delete p.id;\n\n _this2.subjectList.forEach(function (s) {\n if (s.id == p.subjectId) {\n p.subjectName = s.name;\n }\n });\n\n _this2.topicList.forEach(function (t) {\n if (t.value == p.questionType) {\n p.questionName = t.name;\n }\n });\n });\n }\n\n if (_this2.params.wayType == 2) {\n _this2.params.paperQuestionSettings.forEach(function (e) {\n delete e.paperBaseId;\n delete e.id;\n e.isShrink = false;\n\n _this2.topicList.forEach(function (t) {\n if (e.questionType == t.value) {\n e.questionTypeName = t.name;\n }\n });\n\n _this2.stndList.forEach(function (s) {\n if (e.questionsInfo.difficulty == s.value) {\n e.questionsInfo.difficultyName = s.name;\n }\n });\n });\n }\n }\n });\n });\n },\n pagingQuery: function pagingQuery() {\n var _this3 = this;\n\n paperMenu.pagingQuery({\n pageBean: {\n page: -1,\n pageSize: 10,\n showTotal: true\n }\n }, function (res) {\n if (res) {\n _this3.roomList = res.rows; // console.log(this.roomList);\n }\n });\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.params = {\n name: '',\n subjectId: '',\n wayType: 1,\n paperQuestionSettings: [],\n paperSetting: {\n testUserType: 1\n }\n };\n this.isActive = 0;\n this.subject = [];\n this.subjectList = [];\n this.visible = false;\n },\n // 确认后不关闭弹框\n addClose: function addClose() {\n this.params = {\n name: '',\n wayType: 1,\n subjectId: '',\n paperQuestionSettings: [{}]\n };\n },\n changeValue: function changeValue() {\n this.params.paperQuestionSettings[index].questionType = JSON.parse(JSON.stringify(this.params.paperQuestionSettings[index].questionType));\n },\n getUser: function getUser(val) {\n var _this4 = this;\n\n this.subject = [];\n this.subjectList = val;\n this.subjectList.forEach(function (e) {\n _this4.subject.push(e.id);\n });\n },\n //打开课目弹框\n subjectDUsers: function subjectDUsers() {\n console.log(this.subjectList);\n this.$refs.subjectDialog.add(this.subjectList);\n },\n selectSubject: function selectSubject(val) {\n var _this5 = this;\n\n console.log(val);\n var arr = JSON.parse(JSON.stringify(this.subjectList));\n this.subjectList = [];\n arr.forEach(function (p, pi) {\n val.forEach(function (v) {\n // console.log(p,v);\n if (p.id == v) {\n _this5.subjectList.push(p);\n }\n });\n });\n },\n //上一步\n lastStep: function lastStep() {\n this.isActive -= 1;\n },\n //下一步\n nextStep: function nextStep() {\n var _this6 = this;\n\n if (this.isActive == 0) {\n if (this.subject.length > 0) {\n this.subject.forEach(function (s, si) {\n if (si == 0) {\n _this6.params.subjectId = s;\n } else {\n _this6.params.subjectId += ',' + s;\n }\n });\n } else {\n this.params.subjectId = '';\n }\n\n if (this.params.subjectId == '' || this.params.paperSetting.timeLength == '' || this.params.totalScore == '' || this.params.paperSetting.passScore == '') {\n this.$notify({\n type: 'warning',\n message: '请填写完整试卷信息',\n duration: 2000\n });\n return;\n } else {\n this.isActive += 1;\n }\n } else if (this.isActive == 1) {\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this6.title === '新增' || _this6.title === '复制') {\n mnsjMenu.addRecord(_this6.params, function (response) {\n if (response.state) {\n _this6.$notify({\n type: 'success',\n message: _this6.title + '成功',\n duration: 2000\n });\n\n _this6.$emit('loadData');\n\n _this6.handleClose();\n } else {\n _this6.$message.warning(response.message);\n }\n });\n } else if (_this6.title === '修改') {\n mnsjMenu.editQuery(_this6.params, function (response) {\n if (response.state) {\n _this6.$notify({\n type: 'success',\n message: _this6.title + '成功',\n duration: 2000\n });\n\n _this6.handleClose();\n\n _this6.$emit('loadData');\n } else {\n _this6.$message.warning(response.message);\n }\n });\n }\n }\n });\n }\n },\n addTable: function addTable() {\n this.params.paperQuestionSettings.push({});\n },\n testUserType: function testUserType(val) {\n this.params.paperSetting.testUserType = val.value;\n },\n changeType: function changeType(val) {\n var _this7 = this;\n\n //判断当前选中的组卷类型 \n //如果为1和3时\n //判断是否填写题目\n // 如果存在题目,则弹出提示框确认\n if (this.params.paperQuestionSettings.length > 0) {\n this.$confirm('您确定要修改组卷类型吗?切换后原有的试题将会无效', '温馨提示', {\n confirmButtonText: '是',\n cancelButtonText: '否',\n type: 'warning'\n }).then(function () {\n _this7.params.wayType = val.value;\n _this7.params.paperQuestionSettings = [];\n }).catch(function () {});\n } else {\n // 不存在题目,直接跳转\n this.params.wayType = val.value;\n this.params.paperQuestionSettings = [];\n }\n },\n removeTable: function removeTable(index) {\n if (this.params.paperQuestionSettings.length == 1) {\n this.params.json = '';\n this.params.paperQuestionSettings = [{}];\n } else {\n this.params.paperQuestionSettings.splice(index, 1);\n }\n },\n // 课目树选中ID\n handleChange: function handleChange(val) {\n var ArrIds = [];\n ArrIds = val;\n\n if (ArrIds.length == 0) {\n this.params.subjectId = ArrIds[0];\n } else {\n this.params.subjectId = ArrIds[val.length - 1];\n }\n },\n //岗位树点击\n handleNodeClick: function handleNodeClick(val) {\n var _this8 = this;\n\n console.log(val);\n this.queryParam.querys = [{\n group: \"defaultQueryGroup\",\n operation: \"EQUAL\",\n property: \"POS_ID_\",\n relation: \"AND\",\n value: val.id\n }];\n paperMenu.getOrgUserPage(this.queryParam, function (res) {\n if (res.rows) {\n // this.EquipmentList = res.rows\n res.rows.forEach(function (r) {\n _this8.EquipmentList.push({\n positionId: r.relId,\n account: r.account,\n userName: r.fullName\n });\n });\n _this8.total = res.total;\n }\n });\n },\n getOrgUserPage: function getOrgUserPage(val) {\n var _this9 = this;\n\n if (val) {\n this.queryParam.pageBean.page = val;\n }\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n paperMenu.getOrgUserPage(this.queryParam, function (res) {\n if (res.rows) {\n _this9.EquipmentList = res.rows;\n _this9.total = res.total;\n }\n });\n },\n //删除\n delSubject: function delSubject(index) {\n this.params.paperQuestionSettings.splice(index, 1);\n },\n //添加题目\n addTopic: function addTopic() {\n this.confVisible = true;\n },\n //随机添加\n addRandom: function addRandom() {\n this.$refs.randomDialog.add(this.subjectList, this.params.paperQuestionSettings);\n },\n //展开 收缩\n anShrinkage: function anShrinkage(val, index) {\n var _this10 = this;\n\n if (!val.questionsInfo.options || val.questionsInfo.options.length > 0) {\n val.isShrink = !val.isShrink;\n this.$set(this.params.paperQuestionSettings, index, val);\n } else if (val.questionsInfo.options.length == 0 && !val.isShrink) {\n paperMenu.detailIdTopic(val.questionId, function (res) {\n val.questionsInfo.options = res.options;\n val.isShrink = !val.isShrink;\n\n _this10.$set(_this10.params.paperQuestionSettings, index, val);\n });\n } else {\n val.isShrink = !val.isShrink;\n this.$set(this.params.paperQuestionSettings, index, val);\n }\n },\n closeFormDiao: function closeFormDiao() {\n this.confVisible = false;\n },\n deleteTopic: function deleteTopic(index) {\n this.params.paperQuestionSettings.splice(index, 1);\n },\n //随机弹框返回值\n getRandom: function getRandom(val) {\n var _this11 = this;\n\n val.forEach(function (v) {\n _this11.subjectList.forEach(function (s) {\n if (s.id == v.subjectId) {\n v.subjectName = s.name;\n }\n });\n\n _this11.topicList.forEach(function (t) {\n if (t.value == v.questionType) {\n v.questionName = t.name;\n }\n });\n\n _this11.params.paperQuestionSettings.push(v);\n });\n },\n //接收考试题目\n testQuestions: function () {\n var _testQuestions = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(val) {\n var _this12 = this;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.confVisible = false;\n val.forEach(function (e) {\n _this12.params.paperQuestionSettings.push({\n questionId: e.id,\n questionType: e.type,\n score: e.score,\n numuber: 1,\n questionsInfo: {\n difficulty: e.difficulty,\n question: e.question,\n rightOption: e.rightOption,\n parsing: e.parsing,\n createTime: e.createTime,\n options: []\n }\n });\n });\n this.params.paperQuestionSettings.forEach(function (e) {\n e.isShrink = false;\n\n _this12.topicList.forEach(function (t) {\n if (e.questionType == t.value) {\n e.questionTypeName = t.name;\n }\n });\n\n _this12.stndList.forEach(function (s) {\n if (e.questionsInfo.difficulty == s.value) {\n e.questionsInfo.difficultyName = s.name;\n }\n });\n });\n this.params.paperQuestionSettings = this.params.paperQuestionSettings.sort(function (a, b) {\n return a.questionType - b.questionType;\n });\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function testQuestions(_x) {\n return _testQuestions.apply(this, arguments);\n }\n\n return testQuestions;\n }(),\n //题目数量\n handleNumber: function handleNumber(num, totalNumuber) {\n console.log(num, totalNumuber);\n },\n // 考生确认\n //获取岗位树\n getOrgPostPage: function getOrgPostPage() {\n var _this13 = this;\n\n paperMenu.getOrgPostPage(this.queryParam, function (res) {\n if (res.rows) {\n _this13.jobsList = res.rows;\n _this13.total = res.total;\n }\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getOrgUserPage();\n console.log(\"\\u5F53\\u524D\\u6761: \".concat(val));\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getOrgUserPage();\n console.log(\"\\u5F53\\u524D\\u9875: \".concat(val));\n },\n // 中间列表\n searchEnterFun: function searchEnterFun() {\n this.getOrgUserPage(1);\n },\n // 重置\n reset: function reset() {\n this.querys[0].value = \"\";\n this.getOrgUserPage(1);\n },\n handleSelectionChange: function handleSelectionChange(val) {\n var _this14 = this;\n\n if (val.length > 0) {\n val.forEach(function (v) {\n _this14.params.userInfoVos.push(v);\n });\n }\n }\n }\n};",null]}