{"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\\zlMenu\\components\\SelectUser.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\zlMenu\\components\\SelectUser.vue","mtime":1670320948215},{"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 givePower from '@/api/examination/givePower.js';\nexport default {\n mixins: [TableMixin],\n name: 'SelectOrganize',\n data: function data() {\n return {\n querys: [{\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'org_id_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }],\n search: '',\n treeData: [{\n code: '',\n id: '0',\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: \"accessControlName\"\n },\n nameArr: [],\n multipleSelection: []\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n searchName: function searchName() {\n this.getTree(1);\n },\n // 获取列表\n loadData: function loadData(page) {\n var _this = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.UserData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n givePower.getUsersList(this.queryParam, function (res) {\n _this.total = res.total;\n res.rows.forEach(function (u) {\n _this.UserData.push({\n accessControlName: u.fullname,\n accessControlId: u.id,\n mobile: u.mobile,\n email: u.email,\n account: u.account\n });\n });\n\n _this.selectUser.forEach(function (s) {\n _this.UserData.forEach(function (u) {\n if (s.accessControlId == u.accessControlId) {\n _this.$refs.multipleTable.toggleRowSelection(u, true);\n }\n });\n }); // this.UserData = res.rows\n\n\n _this.$set(_this.UserData);\n });\n },\n // 获取树\n getTree: function getTree(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.queryParam.querys = [];\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n givePower.getOrgsList(this.queryParam, function (res) {\n _this2.treeData[0].children = res.rows;\n });\n },\n // 显示\n handleShow: function handleShow(val) {\n console.log(val);\n this.selectUser = [];\n this.visible = true;\n\n if (val) {\n this.userInfoVos = val;\n this.selectUser = JSON.parse(JSON.stringify(val));\n this.userlength = val.length;\n } // this.visible = true\n\n\n this.loadData(1);\n this.getTree(1);\n },\n // 关闭新增人员窗口\n handleClose: function handleClose() {\n this.visible = false;\n this.treeData = [{\n code: '',\n id: '0',\n name: '科室',\n type: 0,\n children: []\n }];\n this.UserData = [];\n this.selectUser = [];\n },\n // 树\n handleNodeClick: function handleNodeClick(item) {\n console.log(item);\n this.querys[0].value = item.id;\n this.loadData(1);\n },\n // 中间列表\n searchEnterFun: function searchEnterFun() {\n this.loadData(1);\n },\n // 重置\n reset: function reset() {\n this.querys[0].value = \"\";\n this.querys[1].value = \"\";\n this.loadData(1);\n },\n dialogConfirm: function dialogConfirm() {\n this.$emit('getUser', this.selectUser);\n this.handleClose();\n },\n binRowKey: function binRowKey(row) {\n return row.accessControlId;\n },\n selectable: function selectable(row) {\n var _this3 = this;\n\n var type = true;\n this.userInfoVos.forEach(function (u, ui) {\n if (ui <= _this3.userlength) {\n if (row.accessControlId == u.accessControlId) {\n type = false;\n }\n }\n });\n return type; // return true\n },\n manualSelection: function manualSelection(selection, row) {\n var _this4 = this;\n\n console.log(row); //先判断当前操作flag\n //true勾选还是false取消\n\n var flag = selection.some(function (item) {\n if (row.accessControlId == item.accessControlId) return true;\n });\n\n if (flag) {\n this.selectUser.push(row);\n } else {\n this.selectUser.forEach(function (s, si) {\n if (s.accessControlId == row.accessControlId) {\n _this4.selectUser.splice(si, 1);\n }\n });\n }\n },\n handleSelectionChange: function handleSelectionChange(val) {\n var _this5 = this;\n\n this.multipleSelection = val.map(function (item) {\n return item;\n });\n this.selectUser = this.multipleSelection;\n this.selectUser.forEach(function (item) {\n _this5.nameArr.push(item.fullname);\n });\n },\n renderContent: function renderContent(h, _ref) {\n var _this6 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this6.show = true;\n },\n \"mouseout\": function mouseout() {\n _this6.show = false;\n }\n }\n }, [h(\"span\", [data.accessControlName]), h(\"span\", [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this6.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"])])]);\n },\n remove: function remove(val) {\n var _this7 = this;\n\n this.selectUser.forEach(function (u, ui) {\n if (u.accessControlId == val.accessControlId) {\n _this7.selectUser.splice(ui, 1);\n }\n });\n this.userInfoVos = JSON.parse(JSON.stringify(this.selectUser));\n this.userlength = this.selectUser.length;\n this.loadData(1);\n }\n }\n};",null]}