{"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\\addCandidatesDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\components\\addCandidatesDialog.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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport paperMenu from '@/api/examination/paperMenu.js';\nexport default {\n mixins: [TableMixin],\n name: 'SelectOrganize',\n props: [\"userTypeId\"],\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 newParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n }\n },\n search: '',\n treeData: [{\n code: '',\n id: '',\n name: '专业装备',\n type: 0,\n children: []\n }],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n visible: false,\n UserData: [],\n selectUser: [],\n selectUserProps: {\n label: \"userName\"\n },\n nameArr: [],\n multipleSelection: null,\n params: {\n majorIds: [],\n subjectIds: []\n },\n jobsList: [],\n EquipmentList: [],\n userInfoVos: [],\n userlength: null,\n paperId: null,\n //试卷id\n filterText: '',\n expandAll: false\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n expandHandle: function expandHandle() {\n console.log(this.$refs.tree.store);\n this.expandAll = !this.expandAll;\n this.expandNodes(this.$refs.tree.store.root);\n },\n // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n expandNodes: function expandNodes(node) {\n node.expanded = this.expandAll;\n\n for (var i = 0; i < node.childNodes.length; i++) {\n node.childNodes[i].expanded = this.expandAll;\n\n if (node.childNodes[i].childNodes.length > 0) {\n this.expandNodes(node.childNodes[i]);\n }\n }\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n add: function add(val) {\n var _this = this;\n\n this.EquipmentList = [];\n this.userInfoVos = [];\n this.visible = true;\n this.paperId = val.id;\n paperMenu.detailIdPaper(this.paperId, function (res) {\n if (res) {\n res.userInfoVos.forEach(function (e) {\n e.state = true;\n });\n _this.userInfoVos = res.userInfoVos;\n _this.selectUser = JSON.parse(JSON.stringify(res.userInfoVos));\n _this.userlength = _this.userInfoVos.length;\n }\n });\n this.getTree();\n },\n searchName: function searchName() {\n this.getTree(1);\n },\n // 获取列表\n loadData: function loadData(page) {},\n selectable: function selectable(row) {\n var _this2 = this;\n\n var type = true;\n this.userInfoVos.forEach(function (u, ui) {\n if (ui <= _this2.userlength) {\n if (row.account == u.account) {\n type = false;\n }\n }\n });\n return type; // return true\n },\n getTree: function getTree(page) {\n var _this3 = this;\n\n if (page) {\n this.newParam.pageBean.page = page;\n }\n\n paperMenu.getOrgPostPage(this.newParam, function (res) {\n if (res) {\n _this3.jobsList = res;\n _this3.total = res.total;\n }\n });\n },\n // 显示\n handleShow: function handleShow(val) {\n this.visible = true;\n this.selectUser = [];\n this.multipleSelection = null;\n this.getTree(1);\n this.loadData(1);\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.treeData = [{\n code: '',\n id: '',\n name: '专业装备',\n type: 0,\n children: []\n }];\n this.UserData = [];\n this.selectUser = [];\n },\n // 树\n handleNodeClick: function handleNodeClick(val) {\n var _this4 = this;\n\n if (val) {\n this.queryParam.querys = [{\n group: \"defaultQueryGroup\",\n operation: \"EQUAL\",\n property: \"POS_ID_\",\n relation: \"AND\",\n value: val.id\n }];\n }\n\n paperMenu.getOrgUserPage(this.queryParam, function (res) {\n if (res.rows) {\n _this4.EquipmentList = [];\n res.rows.forEach(function (r) {\n _this4.EquipmentList.push({\n positionId: r.relId,\n account: r.account,\n userId: r.userId,\n userName: r.fullName\n });\n }); //判断人员列表是否存在已选人员 存在赋予勾选状态\n\n _this4.selectUser.forEach(function (s) {\n _this4.EquipmentList.forEach(function (e) {\n if (s.account == e.account) {\n _this4.$refs.multipleSelection.toggleRowSelection(e, true);\n }\n });\n });\n\n _this4.total = res.total;\n }\n });\n },\n getOrgUserPage: function getOrgUserPage(val) {\n var _this5 = 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 _this5.EquipmentList = [];\n res.rows.forEach(function (r) {\n _this5.EquipmentList.push({\n positionId: r.relId,\n account: r.account,\n userId: r.userId,\n userName: r.fullName\n });\n }); //判断人员列表是否存在已选人员 存在赋予勾选状态\n\n _this5.selectUser.forEach(function (s) {\n _this5.EquipmentList.forEach(function (e) {\n if (s.account == e.account) {\n _this5.$refs.multipleSelection.toggleRowSelection(e, true);\n }\n });\n });\n\n _this5.total = res.total;\n }\n });\n },\n // 中间列表\n searchEnterFun: function searchEnterFun() {\n // this.loadData(1)\n this.getOrgUserPage(1);\n },\n // 重置\n reset: function reset() {\n this.querys[0].value = \"\";\n this.getOrgUserPage(1);\n },\n dialogConfirm: function dialogConfirm() {\n var _this6 = this;\n\n //去除之前选择的考生\n var arr = JSON.parse(JSON.stringify(this.selectUser));\n arr.splice(0, this.userlength);\n\n if (arr.length > 0) {\n var params = {\n id: this.paperId,\n userInfoVos: arr\n };\n paperMenu.addUser(params, function (res) {\n if (res.state) {\n _this6.$message({\n message: '添加成功',\n type: 'success'\n });\n }\n\n _this6.handleClose();\n });\n } else {\n this.$message({\n message: '请选择添加考生',\n type: 'warning'\n });\n }\n },\n handleSelectionChange: function handleSelectionChange(val) {},\n manualSelection: function manualSelection(selection, row) {\n var _this7 = this;\n\n //先判断当前操作flag\n //true勾选还是false取消\n var flag = selection.some(function (item) {\n if (item.account === row.account) return true;\n });\n\n if (flag) {\n this.selectUser.push(row);\n } else {\n this.selectUser.forEach(function (s, si) {\n if (s.account == row.account) {\n _this7.selectUser.splice(si, 1);\n }\n });\n }\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.handleNodeClick();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.handleNodeClick();\n },\n binRowKey: function binRowKey(row) {\n return row.userId;\n }\n }\n};",null]}