{"remainingRequest":"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\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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\tprops: {\n\t\tsubjectlist: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => []\n\t\t},\n\t},\n\tcomponents: {\n\t\tconfigurationDIalog,\n\t\tsubjectDialog,\n\t\trandomDialog\n\t},\n\tname: 'paperMenuDialog',\n\tdata() {\n\t\treturn {\n\t\t\tquerys: [{\n\t\t\t\tgroup: 'main',\n\t\t\t\toperation: 'LIKE',\n\t\t\t\tparentGroup: '',\n\t\t\t\tproperty: 'u.fullname_',\n\t\t\t\trelation: 'AND',\n\t\t\t\tvalue: ''\n\t\t\t}, ],\n\t\t\tvisible: false,\n\t\t\tconfVisible: false, //二级弹框\n\t\t\tactiveCollapse1: '1',\n\t\t\tctlTypeList: '',\n\t\t\tisActive: 0,\n\t\t\tparameter: {},\n\t\t\tparams: {\n\t\t\t\tname: '',\n\t\t\t\tsubjectId: '',\n\t\t\t\twayType: 1,\n\t\t\t\tpaperQuestionSettings: [],\n\t\t\t\ttotalScore: 100,\n\t\t\t\tpaperSetting: {\n\t\t\t\t\ttimeLength: null,\n\t\t\t\t\tpassScore: null\n\t\t\t\t}\n\n\t\t\t},\n\t\t\tsubject: [],\n\t\t\tsubjectList: [],\n\t\t\tbtnBisabled: true,\n\t\t\trules: {\n\t\t\t\tname: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入试卷名称',\n\t\t\t\t\ttrigger: 'blur',\n\t\t\t\t}, ],\n\n\t\t\t\tsubjectId: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请选择考试课目',\n\t\t\t\t\ttrigger: 'blur',\n\t\t\t\t}, ],\n\t\t\t\ttotalScore: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入总分数',\n\t\t\t\t\ttrigger: 'blur',\n\t\t\t\t}, ],\n\t\t\t\ttimeLength: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入考试时长',\n\t\t\t\t\ttrigger: 'blur',\n\t\t\t\t}, ],\n\t\t\t},\n\t\t\ttestUserList: [{\n\t\t\t\tname: '所有人',\n\t\t\t\tvalue: '1'\n\t\t\t}, {\n\t\t\t\tname: '用户',\n\t\t\t\tvalue: '2'\n\t\t\t}],\n\t\t\t//随机组卷\n\t\t\tdata: [],\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\truleForm: {\n\t\t\t\tstartTime: '', // 开始时间\n\t\t\t\tendTime: '', // 结束时间\n\t\t\t},\n\t\t\t// 禁用今天之前的时间\n\t\t\tpickerOptionsOne: {\n\t\t\t\tdisabledDate(time) {\n\t\t\t\t\treturn time.getTime() < Date.now() - 8.64e7\n\t\t\t\t},\n\t\t\t},\n\t\t\t// 禁用今天之前的时间 + 禁用第一个时间选择框选择的小时之前的时间\n\t\t\tpickerOptionsTwo: {\n\t\t\t\tselectableRange: [],\n\t\t\t\tdisabledDate(time) {\n\t\t\t\t\treturn time.getTime() < Date.now() - 8.64e7\n\t\t\t\t},\n\t\t\t},\n\n\n\t\t\ttitle: '',\n\t\t\tsearch: '',\n\t\t\tsearch1: '',\n\t\t\tEquipmentList: [],\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\tselectUserProps: {\n\t\t\t\tlabel: \"userName\"\n\t\t\t},\n\t\t\tnameArr: [],\n\t\t\ttypeList: [{\n\t\t\t\t\tname: '正在考试',\n\t\t\t\t\tvalue: 0\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tname: '模拟考试',\n\t\t\t\t\tvalue: 1\n\t\t\t\t}\n\n\t\t\t],\n\n\n\n\t\t\tsubjectsList: [],\n\t\t\ttopicList: [], //题目类型\n\t\t\tstndList: [], //试题难度\n\t\t\tksfsList: [], //考试方式\n\t\t\tisShrink: false, //展开\n\t\t\t//考生确认\n\t\t\ttotal: 0,\n\t\t\tjobsList: [], //岗位树\n\t\t\tsubjectUser: {\n\t\t\t\tmajorIds: [],\n\t\t\t\tsubjectIds: []\n\t\t\t},\n\t\t\troomList: [], //考场列表\n\t\t}\n\t},\n\tcomputed: {\n\t\ttotalScore() {\n\t\t\tlet totalScore = 0\n\t\t\tthis.params.paperQuestionSettings.forEach(p => {\n\t\t\t\ttotalScore += p.numuber * p.score\n\t\t\t})\n\t\t\treturn totalScore\n\t\t},\n\t\tconfigScore() {\n\t\t\tlet configScore = 0\n\t\t\tthis.params.paperQuestionSettings.forEach(s => {\n\t\t\t\tconfigScore += Number(s.score)\n\t\t\t})\n\t\t\treturn configScore\n\t\t}\n\t},\n\twatch: {\n\t\t// 监听计算属性里面的endTime\n\t\tendTime: {\n\t\t\thandler: function(val, oldVal) {\n\t\t\t\tthis.pickerOptionsTwo.selectableRange = val\n\t\t\t},\n\t\t\tdeep: true,\n\t\t}\n\t},\n\n\tcreated() {\n\t\tthis.zjfsList = dictUtils.getDictItemsFromCache('zjfs')\n\t\tthis.zjfsList.pop()\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t\tthis.stndList = dictUtils.getDictItemsFromCache('stnd')\n\t\tthis.ksfsList = dictUtils.getDictItemsFromCache('ksfs')\n\t\tthis.getOrgPostPage()\n\t\tthis.pagingQuery()\n\t},\n\tmounted() {},\n\tmethods: {\n\t\tadd(val) {\n\t\t\tthis.visible = true\n\t\t\tthis.parameter = val\n\t\t\tthis.title = '新增'\n\t\t},\n\t\tedit(val) {\n\t\t\tthis.visible = true\n\t\t\tthis.title = '修改'\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tmnsjMenu.detailId(val.id, res => {\n\t\t\t\t\tif (res) {\n\t\t\t\t\t\tthis.params = res\n\t\t\t\t\t\tthis.subjectList = this.params.subjectInfos\n\t\t\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\t\t\tthis.subject.push(s.id)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tif (this.params.wayType == 1 || this.params.wayType == 3) {\n\t\t\t\t\t\t\tthis.params.paperQuestionSettings.forEach(p => {\n\t\t\t\t\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\t\t\t\t\tif (s.id == p.subjectId) {\n\t\t\t\t\t\t\t\t\t\tp.subjectName = s.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\t\t\tif (t.value == p.questionType) {\n\t\t\t\t\t\t\t\t\t\tp.questionName = t.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.params.wayType == 2) {\n\t\t\t\t\t\t\tthis.params.paperQuestionSettings.forEach(e => {\n\t\t\t\t\t\t\t\te.isShrink = false\n\t\t\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\t\t\tif (e.questionType == t.value) {\n\t\t\t\t\t\t\t\t\t\te.questionTypeName = t.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.stndList.forEach(s => {\n\t\t\t\t\t\t\t\t\tif (e.questionsInfo.difficulty == s\n\t\t\t\t\t\t\t\t\t\t.value) {\n\t\t\t\t\t\t\t\t\t\te.questionsInfo.difficultyName = s.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\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\n\t\t},\n\t\t//复制试卷\n\t\tcopy(val) {\n\t\t\tthis.visible = true\n\t\t\tthis.title = '复制'\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tmnsjMenu.detailId(val.id, res => {\n\t\t\t\t\tif (res) {\n\t\t\t\t\t\tthis.params = res\n\t\t\t\t\t\tdelete this.params.id\n\t\t\t\t\t\tthis.subjectList = this.params.subjectInfos\n\t\t\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\t\t\tthis.subject.push(s.id)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tdelete this.params.paperSetting.id\n\t\t\t\t\t\tdelete this.params.paperSetting.paperId\n\t\t\t\t\t\tdelete this.params.pkVal\n\t\t\t\t\t\tif (this.params.wayType == 1 || this.params.wayType == 3) {\n\t\t\t\t\t\t\tthis.params.paperQuestionSettings.forEach(p => {\n\t\t\t\t\t\t\t\tdelete p.paperBaseId\n\t\t\t\t\t\t\t\tdelete p.id\n\t\t\t\t\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\t\t\t\t\tif (s.id == p.subjectId) {\n\t\t\t\t\t\t\t\t\t\tp.subjectName = s.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\t\t\tif (t.value == p.questionType) {\n\t\t\t\t\t\t\t\t\t\tp.questionName = t.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.params.wayType == 2) {\n\t\t\t\t\t\t\tthis.params.paperQuestionSettings.forEach(e => {\n\t\t\t\t\t\t\t\tdelete e.paperBaseId\n\t\t\t\t\t\t\t\tdelete e.id\n\t\t\t\t\t\t\t\te.isShrink = false\n\t\t\t\t\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\t\t\t\t\tif (e.questionType == t.value) {\n\t\t\t\t\t\t\t\t\t\te.questionTypeName = t.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.stndList.forEach(s => {\n\t\t\t\t\t\t\t\t\tif (e.questionsInfo.difficulty == s\n\t\t\t\t\t\t\t\t\t\t.value) {\n\t\t\t\t\t\t\t\t\t\te.questionsInfo.difficultyName = s.name\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\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\tpagingQuery() {\n\t\t\tpaperMenu.pagingQuery({\n\t\t\t\tpageBean: {\n\t\t\t\t\tpage: -1,\n\t\t\t\t\tpageSize: 10,\n\t\t\t\t\tshowTotal: true\n\t\t\t\t}\n\n\t\t\t}, res => {\n\t\t\t\tif (res) {\n\t\t\t\t\tthis.roomList = res.rows\n\t\t\t\t\t// console.log(this.roomList);\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t// 关闭新增人员窗口\n\t\thandleClose() {\n\t\t\tthis.params = {\n\t\t\t\tname: '',\n\t\t\t\tsubjectId: '',\n\t\t\t\twayType: 1,\n\t\t\t\tpaperQuestionSettings: [],\n\t\t\t\tpaperSetting: {\n\t\t\t\t\ttestUserType: 1\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.isActive = 0\n\t\t\tthis.subject = []\n\t\t\tthis.subjectList = []\n\t\t\tthis.visible = false\n\t\t},\n\t\t// 确认后不关闭弹框\n\t\taddClose() {\n\t\t\tthis.params = {\n\t\t\t\tname: '',\n\t\t\t\twayType: 1,\n\t\t\t\tsubjectId: '',\n\t\t\t\tpaperQuestionSettings: [{}]\n\t\t\t}\n\t\t},\n\t\tchangeValue() {\n\t\t\tthis.params.paperQuestionSettings[index].questionType = JSON.parse(JSON.stringify(this.params\n\t\t\t\t.paperQuestionSettings[index].questionType));\n\t\t},\n\t\tgetUser(val) {\n\t\t\tthis.subject = []\n\t\t\tthis.subjectList = val\n\t\t\tthis.subjectList.forEach(e => {\n\t\t\t\tthis.subject.push(e.id)\n\t\t\t})\n\n\n\t\t},\n\t\t//打开课目弹框\n\t\tsubjectDUsers() {\n\t\t\tconsole.log(this.subjectList);\n\t\t\tthis.$refs.subjectDialog.add(this.subjectList)\n\t\t},\n\t\tselectSubject(val) {\n\t\t\tconsole.log(val);\n\t\t\tlet arr = JSON.parse(JSON.stringify(this.subjectList))\n\t\t\tthis.subjectList = []\n\t\t\tarr.forEach((p, pi) => {\n\t\t\t\tval.forEach(v => {\n\t\t\t\t\t// console.log(p,v);\n\t\t\t\t\tif (p.id == v) {\n\t\t\t\t\t\tthis.subjectList.push(p)\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t})\n\t\t},\n\t\t//上一步\n\t\tlastStep() {\n\t\t\tthis.isActive -= 1\n\t\t},\n\t\t//下一步\n\t\tnextStep() {\n\t\t\tif (this.isActive == 0) {\n\t\t\t\tif (this.subject.length > 0) {\n\t\t\t\t\tthis.subject.forEach((s, si) => {\n\t\t\t\t\t\tif (si == 0) {\n\t\t\t\t\t\t\tthis.params.subjectId = s\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.params.subjectId += ',' + s\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tthis.params.subjectId = ''\n\t\t\t\t}\n\t\t\t\tif (this.params.subjectId == '' || this.params.paperSetting.timeLength == '' || this.params\n\t\t\t\t\t.totalScore == '' || this.params.paperSetting.passScore == '') {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'warning',\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\treturn\n\t\t\t\t} else {\n\t\t\t\t\tthis.isActive += 1\n\t\t\t\t}\n\t\t\t} else if (this.isActive == 1) {\n\t\t\t\tthis.$refs.formInfo.validate(valid => {\n\t\t\t\t\tif (valid) {\n\t\t\t\t\t\tif (this.title === '新增' || this.title === '复制') {\n\t\t\t\t\t\t\tmnsjMenu.addRecord(this.params, response => {\n\t\t\t\t\t\t\t\tif (response.state) {\n\t\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\t\tmessage: this.title + '成功',\n\t\t\t\t\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.$emit('loadData')\n\t\t\t\t\t\t\t\t\tthis.handleClose()\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.$message.warning(response.message)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} else if (this.title === '修改') {\n\t\t\t\t\t\t\tmnsjMenu.editQuery(this.params, response => {\n\t\t\t\t\t\t\t\tif (response.state) {\n\t\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\t\tmessage: this.title + '成功',\n\t\t\t\t\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.handleClose()\n\t\t\t\t\t\t\t\t\tthis.$emit('loadData')\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.$message.warning(response.message)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\n\n\t\t},\n\t\taddTable() {\n\t\t\tthis.params.paperQuestionSettings.push({})\n\t\t},\n\t\ttestUserType(val) {\n\t\t\tthis.params.paperSetting.testUserType = val.value\n\t\t},\n\t\tchangeType(val) {\n\t\t\t//判断当前选中的组卷类型 \n\t\t\t//如果为1和3时\n\t\t\t//判断是否填写题目\n\t\t\t// 如果存在题目,则弹出提示框确认\n\t\t\tif (this.params.paperQuestionSettings.length > 0) {\n\t\t\t\tthis.$confirm('您确定要修改组卷类型吗?切换后原有的试题将会无效', '温馨提示', {\n\t\t\t\t\tconfirmButtonText: '是',\n\t\t\t\t\tcancelButtonText: '否',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tthis.params.wayType = val.value\n\t\t\t\t\tthis.params.paperQuestionSettings = []\n\n\t\t\t\t}).catch(() => {\n\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t// 不存在题目,直接跳转\n\t\t\t\tthis.params.wayType = val.value\n\t\t\t\tthis.params.paperQuestionSettings = []\n\n\t\t\t}\n\t\t},\n\t\tremoveTable(index) {\n\t\t\tif (this.params.paperQuestionSettings.length == 1) {\n\t\t\t\tthis.params.json = ''\n\t\t\t\tthis.params.paperQuestionSettings = [{}]\n\t\t\t} else {\n\t\t\t\tthis.params.paperQuestionSettings.splice(index, 1)\n\t\t\t}\n\t\t},\n\t\t// 课目树选中ID\n\t\thandleChange(val) {\n\t\t\tlet ArrIds = []\n\t\t\tArrIds = val\n\t\t\tif (ArrIds.length == 0) {\n\t\t\t\tthis.params.subjectId = ArrIds[0]\n\t\t\t} else {\n\t\t\t\tthis.params.subjectId = ArrIds[val.length - 1]\n\t\t\t}\n\t\t},\n\t\t//岗位树点击\n\t\thandleNodeClick(val) {\n\t\t\tconsole.log(val);\n\t\t\tthis.queryParam.querys = [{\n\t\t\t\tgroup: \"defaultQueryGroup\",\n\t\t\t\toperation: \"EQUAL\",\n\t\t\t\tproperty: \"POS_ID_\",\n\t\t\t\trelation: \"AND\",\n\t\t\t\tvalue: val.id\n\t\t\t}, ]\n\t\t\tpaperMenu.getOrgUserPage(this.queryParam, res => {\n\t\t\t\tif (res.rows) {\n\t\t\t\t\t// this.EquipmentList = res.rows\n\t\t\t\t\tres.rows.forEach(r => {\n\t\t\t\t\t\tthis.EquipmentList.push({\n\t\t\t\t\t\t\tpositionId: r.relId,\n\t\t\t\t\t\t\taccount: r.account,\n\t\t\t\t\t\t\tuserName: r.fullName\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tthis.total = res.total\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tgetOrgUserPage(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.queryParam.pageBean.page = val\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\tpaperMenu.getOrgUserPage(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}\n\t\t\t})\n\t\t},\n\t\t//删除\n\t\tdelSubject(index) {\n\t\t\tthis.params.paperQuestionSettings.splice(index, 1)\n\t\t},\n\t\t//添加题目\n\t\taddTopic() {\n\t\t\tthis.confVisible = true\n\t\t},\n\t\t//随机添加\n\t\taddRandom() {\n\t\t\tthis.$refs.randomDialog.add(this.subjectList, this.params.paperQuestionSettings)\n\t\t},\n\t\t//展开 收缩\n\t\tanShrinkage(val, index) {\n\t\t\tif (!val.questionsInfo.options || val.questionsInfo.options.length > 0) {\n\t\t\t\tval.isShrink = !val.isShrink\n\t\t\t\tthis.$set(this.params.paperQuestionSettings, index, val)\n\n\t\t\t} else if (val.questionsInfo.options.length == 0 && !val.isShrink) {\n\t\t\t\tpaperMenu.detailIdTopic(val.questionId, res => {\n\t\t\t\t\tval.questionsInfo.options = res.options\n\t\t\t\t\tval.isShrink = !val.isShrink\n\t\t\t\t\tthis.$set(this.params.paperQuestionSettings, index, val)\n\t\t\t\t})\n\n\t\t\t} else {\n\t\t\t\tval.isShrink = !val.isShrink\n\t\t\t\tthis.$set(this.params.paperQuestionSettings, index, val)\n\t\t\t}\n\t\t},\n\t\tcloseFormDiao() {\n\t\t\tthis.confVisible = false;\n\t\t},\n\t\tdeleteTopic(index) {\n\t\t\tthis.params.paperQuestionSettings.splice(index, 1)\n\t\t},\n\t\t//随机弹框返回值\n\t\tgetRandom(val) {\n\t\t\tval.forEach(v => {\n\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\tif (s.id == v.subjectId) {\n\t\t\t\t\t\tv.subjectName = s.name\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\tif (t.value == v.questionType) {\n\t\t\t\t\t\tv.questionName = t.name\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.params.paperQuestionSettings.push(v)\n\t\t\t})\n\n\t\t},\n\t\t//接收考试题目\n\t\tasync testQuestions(val) {\n\t\t\tthis.confVisible = false\n\t\t\tval.forEach(e => {\n\t\t\t\tthis.params.paperQuestionSettings.push({\n\t\t\t\t\tquestionId: e.id,\n\t\t\t\t\tquestionType: e.type,\n\t\t\t\t\tscore: e.score,\n\t\t\t\t\tnumuber: 1,\n\t\t\t\t\tquestionsInfo: {\n\t\t\t\t\t\tdifficulty: e.difficulty,\n\t\t\t\t\t\tquestion: e.question,\n\t\t\t\t\t\trightOption: e.rightOption,\n\t\t\t\t\t\tparsing: e.parsing,\n\t\t\t\t\t\tcreateTime: e.createTime,\n\t\t\t\t\t\toptions: []\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t\tthis.params.paperQuestionSettings.forEach(e => {\n\t\t\t\te.isShrink = false\n\t\t\t\tthis.topicList.forEach(t => {\n\t\t\t\t\tif (e.questionType == t.value) {\n\t\t\t\t\t\te.questionTypeName = t.name\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\tthis.stndList.forEach(s => {\n\t\t\t\t\tif (e.questionsInfo.difficulty == s.value) {\n\t\t\t\t\t\te.questionsInfo.difficultyName = s.name\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t\t\tthis.params.paperQuestionSettings = this.params.paperQuestionSettings.sort(function(a, b) {\n\t\t\t\treturn a.questionType - b.questionType\n\t\t\t})\n\t\t},\n\t\t//题目数量\n\t\thandleNumber(num, totalNumuber) {\n\t\t\tconsole.log(num, totalNumuber);\n\t\t},\n\t\t// 考生确认\n\t\t//获取岗位树\n\t\tgetOrgPostPage() {\n\t\t\tpaperMenu.getOrgPostPage(this.queryParam, res => {\n\t\t\t\tif (res.rows) {\n\t\t\t\t\tthis.jobsList = res.rows\n\t\t\t\t\tthis.total = res.total\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\thandleSizeChange(val) {\n\t\t\tthis.queryParam.pageBean.pageSize = val\n\t\t\tthis.getOrgUserPage()\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.getOrgUserPage()\n\t\t\tconsole.log(`当前页: ${val}`);\n\t\t},\n\t\t// 中间列表\n\t\tsearchEnterFun() {\n\t\t\tthis.getOrgUserPage(1)\n\t\t},\n\t\t// 重置\n\t\treset() {\n\t\t\tthis.querys[0].value = \"\"\n\t\t\tthis.getOrgUserPage(1)\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tif (val.length > 0) {\n\t\t\t\tval.forEach(v => {\n\t\t\t\t\tthis.params.userInfoVos.push(v)\n\t\t\t\t})\n\t\t\t}\n\n\t\t},\n\n\n\t},\n}\n",null]}