{"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\\configDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\configDialog.vue","mtime":1672209016474},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 configurationDIalog from './configurationDIalog.vue'\nimport subjectDialog from './subjectDialog.vue'\nimport randomDialog from './randomDialog.vue'\nimport yearSubjectDialog from './yearSubjectDialog.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\tyearSubjectDialog\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\tpaperSetting: {\n\t\t\t\t\ttestUserType: 1,\n\t\t\t\t\tplanStartTime: '',\n\t\t\t\t\tplanEndTime: '',\n\t\t\t\t\tpaperType: '',\n\t\t\t\t\ttotalScore: 100,\n\t\t\t\t\ttrainModel:1\n\t\t\t\t},\n\t\t\t\ttotalScore: 100,\n\t\t\t\tendStatus:''\n\n\t\t\t},\n\t\t\texamTime: [],\n\t\t\tsubject: [],\n\t\t\tsubjectList: [],\n\t\t\tbtnBisabled: true,\n\t\t\tvisiblePopover: false,\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\tpaperType: [{\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\t// timeLength: [{\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\t// roomId: [{\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\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\t// switchCount: [{\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\tplanStartTime: [{\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\tplanEndTime: [{\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\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\tnewParam: {\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\t// examsearch: '',\n\t\t\t// examsearch1: '',\n\t\t\t// examEquipmentList: [],\n\t\t\t// examparams.userInfoVos: [],\n\t\t\t// exammultipleSelection: [],\n\t\t\t// exammultipleSelection1: [],\n\t\t\t// examdefaultProps: {\n\t\t\t// \tchildren: 'children',\n\t\t\t// \tlabel: 'label'\n\t\t\t// },\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\t\t\tpickerOptions: {\n\t\t\t\tdisabledDate: (time) => {\n\t\t\t\t\tconsole.log(this.params.paperSetting.planStartTime);\n\t\t\t\t\tif (this.value2 != \"\") {\n\t\t\t\t\t\treturn time.getTime() > new Date(this.value2).getTime();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tpickerOptions1: {\n\t\t\t\tdisabledDate: (time) => {\n\t\t\t\t\tconsole.log(time.getTime(), '选中');\n\t\t\t\t\tconsole.log(Date.parse(new Date(this.params.paperSetting.planStartTime)), '开始');\n\t\t\t\t\treturn time.getTime() < Date.parse(new Date(this.params.paperSetting.planStartTime)) - 8.64e7;\n\t\t\t\t\t1000; //减去一天的时间代表可以选择同一天;\n\t\t\t\t}\n\t\t\t},\n\n\n\t\t\tsubjectsList: [],\n\t\t\ttopicList: [], //题目类型\n\t\t\tstndList: [], //试题难度\n\t\t\tkhlxList: [], //考试方式\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\tuserInfoVos: [],\n\t\t\tuserlength: 0,\n\t\t\tstartTimeRange: '',\n\t\t\tendType:false,//是否显示最终成绩\n\t\t\ttooltip:'',//提示语\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\texamTime: {\n\t\t\thandler(newValue, oldValue) {\n\t\t\t\tif (newValue) {\n\t\t\t\t\tlet nowDate = moment().format('YYYY-MM-DD HH:mm:ss');\n\t\t\t\t\tlet dt = nowDate.split(\" \");\n\t\t\t\t\tlet st = '';\n\t\t\t\t\tif (newValue.split(\" \")[0] == dt[0]) {\n\t\t\t\t\t\t// 如果是当天,选择的时间开始为此刻的时分秒\n\t\t\t\t\t\tst = dt[1];\n\t\t\t\t\t\t// 如果是当天(只有当日期改变时),默认选中时间为当前时间\n\t\t\t\t\t\tif (newValue.split(\" \")[0] != oldValue.split(\" \")[0]) {\n\t\t\t\t\t\t\tthis.examTime = nowDate;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// 明天以及后面的时间从0时开始\n\t\t\t\t\t\tst = '00:00:00';\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.startTimeRange = st + ' - 23:59:59';\n\t\t\t\t\t//例如:如果今天此刻时间为15:27:00 则选择时间范围为: 15:27:00 - 23:59:59 \n\t\t\t\t\t//否则为:00:00:00 - 23:59:59\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t},\n\n\tcreated() {\n\t\tthis.zjfsList = dictUtils.getDictItemsFromCache('zjfs')\n\t\tthis.topicList = dictUtils.getDictItemsFromCache('sttx')\n\t\tthis.stndList = dictUtils.getDictItemsFromCache('stnd')\n\t\tthis.khlxList = dictUtils.getDictItemsFromCache('khlx')\n\n\t},\n\tmounted() {},\n\tmethods: {\n\t\t// add(val) {\n\t\t// \tthis.visible = true\n\t\t// \tthis.parameter = val\n\t\t// \tthis.title = '新增'\n\t\t// \tthis.getOrgPostPage()\n\t\t// \tthis.pagingQuery()\n\t\t// },\n\t\tadd(val) {\n\t\t\tthis.getOrgPostPage()\n\t\t\tthis.pagingQuery()\n\t\t\tthis.visible = true\n\t\t\tthis.title = '配置信息'\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tpaperMenu.detailIdPaper(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.params.paperType = res.paperType\n\t\t\t\t\t\t\t.toString()\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\tthis.userInfoVos = JSON.parse(JSON.stringify(this.params.userInfoVos))\n\t\t\t\t\t\tthis.userlength = this.params.userInfoVos.length\n\t\t\t\t\t\tthis.examTime = [this.params.paperSetting.planStartTime, this.params\n\t\t\t\t\t\t\t.paperSetting.planEndTime\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.getOrgPostPage()\n\t\t\tthis.pagingQuery()\n\t\t\tthis.visible = true\n\t\t\tthis.title = '复制'\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tpaperMenu.detailIdPaper(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\tthis.examTime = [this.params.paperSetting.planStartTime, this.params\n\t\t\t\t\t\t\t.paperSetting.planEndTime\n\t\t\t\t\t\t]\n\t\t\t\t\t\tthis.userInfoVos = JSON.parse(JSON.stringify(this.params.userInfoVos))\n\t\t\t\t\t\tthis.userlength = this.params.userInfoVos.length\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\tthis.params.paperType = this.params.paperType\n\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\tif (this.params.paperType == 2) {\n\t\t\t\t\t\t\tthis.subject = []\n\t\t\t\t\t\t\tthis.subjectList = []\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\tplanStartTime: '',\n\t\t\t\t\tplanEndTime: '',\n\t\t\t\t\tpaperType: '',\n\t\t\t\t\ttotalScore: 100,\n\t\t\t\t\ttrainModel:1\n\t\t\t\t},\n\t\t\t\ttotalScore: 100,\n\t\t\t\tendStatus:''\n\t\t\t}\n\t\t\tthis.newParam={\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\tquerys:[\n\t\t\t\t\t\n\t\t\t\t]\n\t\t\t}\n\t\t\tthis.endType=false\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\tconsole.log(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\t\t\n\t\t\t\tif(this.params.paperType==2&&this.subject.length>0){\n\t\t\t\t\tpaperMenu.getEndStatus(this.subject[0],res=>{\n\t\t\t\t\t\tif(res.message){\n\t\t\t\t\t\t\tthis.tooltip=res.message\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tthis.endType=true\n\t\t\t\t}else{\n\t\t\t\t\tthis.endType=false\n\t\t\t\t}\n\t\t},\n\t\t//打开课目弹框\n\t\tsubjectDUsers() {\n\t\t\tconsole.log(this.params.id);\n\t\t\t// 1为普通考核 2为年度考核\n\t\t\tif (this.params.paperType) {\n\t\t\t\tif (this.params.paperType == 1) {\n\t\t\t\t\tthis.$refs.subjectDialog.add(this.subjectList)\n\t\t\t\t} else if (this.params.paperType == 2) {\n\t\t\t\t\tthis.$refs.yearSubject.add(this.subjectList, this.params.id)\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\t\t},\n\n\t\t//上一步\n\t\tlastStep() {\n\t\t\tthis.isActive -= 1\n\t\t},\n\t\t//下一步\n\t\tnextStep() {\n\t\t\t// if(this.subject.length==0){\n\t\t\t// \treturn\n\t\t\t// }\n\t\t\tif (this.isActive == 0) {\n\t\t\t\tthis.params.paperSetting.planStartTime = this.examTime[0]\n\t\t\t\tthis.params.paperSetting.planEndTime = this.examTime[1]\n\t\t\t\tlet arrA = []\n\t\t\t\tif (this.params.wayType == 1 || this.params.wayType == 1) {\n\t\t\t\t\tthis.params.paperQuestionSettings.forEach(item => {\n\t\t\t\t\t\tthis.subject.forEach(s => {\n\t\t\t\t\t\t\tif (item.subjectId == s) {\n\t\t\t\t\t\t\t\tarrA.push(item)\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} else if (this.params.wayType == 2) {\n\t\t\t\t\tthis.params.paperQuestionSettings.forEach(item => {\n\t\t\t\t\t\tthis.subject.forEach(s => {\n\t\t\t\t\t\t\tif (item.subId == s) {\n\t\t\t\t\t\t\t\tarrA.push(item)\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\tthis.params.paperQuestionSettings = arrA\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.name == '' || this.params.paperType ==\n\t\t\t\t\t'' || this.params.totalScore == '' || this.params.paperSetting.planStartTime == '' ||\n\t\t\t\t\tthis.params.paperSetting.planEndTime == '') {\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\tconsole.log(this.params.paperQuestionSettings);\n\t\t\t\tif (this.params.paperQuestionSettings.length == 0) {\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}\n\t\t\t\tthis.isActive += 1\n\t\t\t\tthis.subjectExaminee()\n\t\t\t\t// if(this.title=='新增'){\n\t\t\t\t// }else if(this.title=='修改'){\n\n\t\t\t\t// }\n\t\t\t} else if (this.isActive == 2) {\n\t\t\t\tconsole.log(this.params);\n\t\t\t\t// this.$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\tpaperMenu.addPaper(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} else if (this.title === '修改') {\n\t\t\t\t// \t\t\tpaperMenu.editPaper(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\tconsole.log(this.params.wayType);\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\t// } else {\n\t\t\t// \tif (this.params.paperQuestionSettings.length > 0) {\n\t\t\t// \t\tthis.$confirm('您确定要修改组卷类型吗?切换后原有的试题将会无效', '温馨提示', {\n\t\t\t// \t\t\tconfirmButtonText: '是',\n\t\t\t// \t\t\tcancelButtonText: '否',\n\t\t\t// \t\t\ttype: 'warning'\n\t\t\t// \t\t}).then(() => {\n\t\t\t// \t\t\tthis.params.wayType = val.value\n\t\t\t// \t\t\tif (this.params.wayType == 2) {\n\t\t\t// \t\t\t\tthis.params.paperQuestionSettings = []\n\t\t\t// \t\t\t} else {\n\t\t\t// \t\t\t\tthis.params.paperQuestionSettings = [{\n\t\t\t// \t\t\t\t\tquestionType: null,\n\t\t\t// \t\t\t\t\tscore: null,\n\t\t\t// \t\t\t\t\tnumuber: null\n\t\t\t// \t\t\t\t}]\n\t\t\t// \t\t\t}\n\t\t\t// \t\t}).catch(() => {\n\n\t\t\t// \t\t});\n\t\t\t// \t} else {\n\t\t\t// \t\tthis.params.wayType = val.value\n\t\t\t// \t\tif (this.params.wayType == 2) {\n\t\t\t// \t\t\tthis.params.paperQuestionSettings = []\n\t\t\t// \t\t\t// this.confVisible = true\n\t\t\t// \t\t} else {\n\t\t\t// \t\t\tthis.params.paperQuestionSettings = [{\n\t\t\t// \t\t\t\tquestionType: null,\n\t\t\t// \t\t\t\tscore: null,\n\t\t\t// \t\t\t\tnumuber: null\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\t// \n\n\t\t\treturn\n\t\t\tthis.params.userInfoVos = []\n\t\t\tthis.multipleSelection1 = []\n\t\t\tif (this.params.wayType == 2) {\n\t\t\t\tthis.params.paperQuestionSettings = []\n\t\t\t\t// this.confVisible = true\n\t\t\t} else {\n\t\t\t\tthis.params.paperQuestionSettings = [{\n\t\t\t\t\tquestionType: null,\n\t\t\t\t\tscore: null,\n\t\t\t\t\tnumuber: null\n\t\t\t\t}]\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\tthis.EquipmentList = []\n\t\t\tthis.newParam.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\tthis.getOrgUserPage(1)\n\t\t},\n\t\tgetOrgUserPage(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.newParam.pageBean.page = val\n\t\t\t}\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.newParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tthis.EquipmentList=[]\n\t\t\tpaperMenu.getOrgUserPage(this.newParam, res => {\n\t\t\t\tif (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\tuserId: r.userId\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tthis.$nextTick(()=>{\n\t\t\t\t\t\tthis.params.userInfoVos.forEach(s=>{\n\t\t\t\t\t\t\tthis.EquipmentList.forEach(u=>{\n\t\t\t\t\t\t\t\tconsole.log(s.positionId,u.positionId,s.positionId==u.positionId);\n\t\t\t\t\t\t\t\tif(s.userId==u.userId){\n\t\t\t\t\t\t\t\t\tthis.$refs.multipleTable.toggleRowSelection(u, true)\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\tthis.total = res.total\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t//根据课目id查询考生人员\n\t\tsubjectExaminee() {\n\t\t\t// if(this.params.)\n\t\t\tif (this.title == '新增') {\n\t\t\t\tthis.subjectUser.subjectIds = []\n\t\t\t\tthis.subjectList.forEach(s => {\n\t\t\t\t\tthis.subjectUser.subjectIds.push(s.id)\n\t\t\t\t})\n\t\t\t\tpaperMenu.getSubjectUserList(this.subjectUser, res => {\n\t\t\t\t\tthis.userInfoVos = JSON.parse(JSON.stringify(res))\n\t\t\t\t\tthis.userlength = res.length\n\t\t\t\t\tthis.params.userInfoVos = res\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\n\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\tthis.params.paperQuestionSettings = []\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\tconsole.log(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.newParam, 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.newParam.pageBean.pageSize = val\n\t\t\tthis.getOrgUserPage()\n\t\t},\n\t\thandleCurrentChange(val) {\n\t\t\tthis.newParam.pageBean.page = val\n\t\t\tthis.getOrgUserPage()\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\t\t//删除\n\t\tdelSubject(index) {\n\t\t\tthis.params.paperQuestionSettings.splice(index, 1)\n\t\t},\n\t\tbinRowKey(row) {\n\t\t\treturn row.userId\n\t\t},\n\t\tselectable(row) {\n\t\t\tlet type = true\n\t\t\tconsole.log(this.userInfoVos);\n\t\t\tthis.userInfoVos.forEach((u, ui) => {\n\t\t\t\tif (ui <= this.userlength) {\n\t\t\t\t\tconsole.log(row.userId ,u.userId);\n\t\t\t\t\tif (row.userId == u.userId) {\n\t\t\t\t\t\ttype = false\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t\tconsole.log(type);\n\t\t\treturn type\n\t\t\t// return true\n\t\t},\n\t\tmanualSelection(selection, 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.userId == item.userId) return true;\n\t\t\t})\n\t\t\tif (flag) {\n\t\t\t\tthis.params.userInfoVos.push(row)\n\t\t\t} else {\n\t\t\t\tthis.params.userInfoVos.forEach((s, si) => {\n\t\t\t\t\tif (s.userId == row.userId) {\n\t\t\t\t\t\tthis.params.userInfoVos.splice(si, 1)\n\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\tselectPaperType(val) {\n\t\t\tif (val == 2) {\n\t\t\t\tthis.visiblePopover = true\n\t\t\t\tthis.subjectList = []\n\t\t\t\tthis.subject = []\n\t\t\t} else {\n\t\t\t\tthis.visiblePopover = false\n\t\t\t}\n\t\t},\n\t\tselectSubject(val) {\n\t\t\tconsole.log(val);\n\n\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\tif(this.params.paperType==2){\n\t\t\t\tthis.endType=false\n\t\t\t}\n\t\t},\n\t\trenderContent(h, { node, data, store }) {\n\t\t return (\n\t\t {\n\t\t this.show = true\n\t\t }}\n\t\t on-mouseout={() => {\n\t\t this.show = false\n\t\t }}\n\t\t >\n\t\t {data.userName}\n\t\t \n\t\t this.remove(data)}\n\t\t >\n\t\t 删除\n\t\t \n\t\t \n\t\t \n\t\t )\n\t\t},\n\t\tremove(val){\n\t\t\tthis.params.userInfoVos.forEach((u,ui)=>{\n\t\t\t\tif(u.userId==val.userId){\n\t\t\t\t\tthis.params.userInfoVos.splice(ui,1)\n\t\t\t\t}\n\t\t\t})\n\t\t\tthis.userInfoVos = JSON.parse(JSON.stringify(this.params.userInfoVos))\n\t\t\tthis.userlength = this.params.userInfoVos.length\n\t\t\tthis.getOrgUserPage(1)\n\t\t}\n\t},\n}\n",null]}