{"remainingRequest":"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\\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\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport givePower from '@/api/examination/givePower.js'\nexport default {\n\tmixins: [TableMixin],\n\tname: 'SelectOrganize',\n\tdata() {\n\t\treturn {\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'org_id_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'RIGHT_LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\n\t\t\t],\n\t\t\tsearch: '',\n\t\t\ttreeData: [{\n\t\t\t\tcode: '',\n\t\t\t\tid: '0',\n\t\t\t\tname: '行政维度',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}],\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'name'\n\t\t\t},\n\t\t\tvisible: false,\n\t\t\tUserData: [],\n\t\t\tselectUser: [],\n\t\t\tselectUserProps: {\n\t\t\t\tlabel: \"accessControlName\"\n\t\t\t},\n\t\t\tnameArr: [],\n\t\t\tmultipleSelection: []\n\t\t}\n\t},\n\tcreated() {},\n\tmounted() {},\n\tmethods: {\n\t\tsearchName() {\n\t\t\tthis.getTree(1)\n\t\t},\n\t\t// 获取列表\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.UserData = []\n\t\t\tthis.queryParam.querys = []\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\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tgivePower.getUsersList(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tres.rows.forEach(u => {\n\t\t\t\t\tthis.UserData.push({\n\t\t\t\t\t\taccessControlName: u.fullname,\n\t\t\t\t\t\taccessControlId:u. id,\n\t\t\t\t\t\tmobile:u.mobile,\n\t\t\t\t\t\temail:u.email,\n\t\t\t\t\t\taccount:u.account\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.selectUser.forEach(s=>{\n\t\t\t\t\tthis.UserData.forEach(u=>{\n\t\t\t\t\t\tif(s.accessControlId==u.accessControlId){\n\t\t\t\t\t\t\tthis.$refs.multipleTable.toggleRowSelection(u, true)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t// this.UserData = res.rows\n\t\t\t\tthis.$set(this.UserData)\n\t\t\t})\n\t\t},\n\t\t// 获取树\n\t\tgetTree(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tgivePower.getOrgsList(this.queryParam, res => {\n\t\t\t\tthis.treeData[0].children = res.rows\n\t\t\t})\n\t\t},\n\t\t// 显示\n\t\thandleShow(val) {\n\t\t\tconsole.log(val);\n\t\t\tthis.selectUser = []\n\t\t\tthis.visible = true\n\t\t\tif (val) {\n\t\t\t\tthis.userInfoVos = val\n\t\t\t\tthis.selectUser = JSON.parse(JSON.stringify(val))\n\t\t\t\tthis.userlength = val.length\n\n\t\t\t}\n\t\t\t// this.visible = true\n\t\t\tthis.loadData(1)\n\t\t\tthis.getTree(1)\n\t\t},\n\t\t// 关闭新增人员窗口\n\t\thandleClose() {\n\t\t\tthis.visible = false\n\t\t\tthis.treeData = [{\n\t\t\t\tcode: '',\n\t\t\t\tid: '0',\n\t\t\t\tname: '科室',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}]\n\t\t\tthis.UserData = []\n\t\t\tthis.selectUser = []\n\t\t},\n\t\t// 树\n\t\thandleNodeClick(item) {\n\t\t\tconsole.log(item);\n\t\t\tthis.querys[0].value = item.id\n\t\t\tthis.loadData(1)\n\t\t},\n\t\t// 中间列表\n\t\tsearchEnterFun() {\n\t\t\tthis.loadData(1)\n\t\t},\n\t\t// 重置\n\t\treset() {\n\t\t\tthis.querys[0].value = \"\"\n\t\t\tthis.querys[1].value = \"\"\n\t\t\tthis.loadData(1)\n\t\t},\n\t\tdialogConfirm() {\n\t\t\tthis.$emit('getUser', this.selectUser)\n\t\t\tthis.handleClose()\n\t\t},\n\t\tbinRowKey(row) {\n\t\t\treturn row.accessControlId\n\t\t},\n\t\tselectable(row) {\n\t\t\tlet type = true\n\t\t\tthis.userInfoVos.forEach((u, ui) => {\n\t\t\t\tif (ui <= this.userlength) {\n\t\t\t\t\tif (row.accessControlId == u.accessControlId) {\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\treturn type\n\t\t\t// return true\n\t\t},\n\t\tmanualSelection(selection, row) {\n\t\t\tconsole.log(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.accessControlId == item.accessControlId) return true;\n\t\t\t})\n\t\t\tif (flag) {\n\t\t\t\tthis.selectUser.push(row)\n\t\t\t} else {\n\t\t\t\tthis.selectUser.forEach((s, si) => {\n\t\t\t\t\tif (s.accessControlId == row.accessControlId) {\n\t\t\t\t\t\tthis.selectUser.splice(si, 1)\n\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = val.map((item) => {\n\t\t\t\treturn item\n\t\t\t})\n\t\t\tthis.selectUser = this.multipleSelection\n\t\t\tthis.selectUser.forEach(item => {\n\t\t\t\tthis.nameArr.push(item.fullname);\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.accessControlName}\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.selectUser.forEach((u,ui)=>{\n\t\t\t\tif(u.accessControlId==val.accessControlId){\n\t\t\t\t\tthis.selectUser.splice(ui,1)\n\t\t\t\t}\n\t\t\t})\n\t\t\tthis.userInfoVos = JSON.parse(JSON.stringify(this.selectUser))\n\t\t\tthis.userlength = this.selectUser.length\n\t\t\tthis.loadData(1)\n\t\t}\n\n\n\n\t}\n}\n",null]}