{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\UserManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\UserManage.vue","mtime":1686792516249},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-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\nimport userManage from '@/api/device/userManage.js'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport resourceManage from '@/api/device/resourceManage.js'\nimport {\n\tdragControllerDiv\n} from '@/mixins/dragControllerDiv'\nimport userManageDialog from '@/views/Device/resourceManage/components/userManageDialog'\nimport dictUsers from '@/components/dict/DictSelectUtils.js'\nimport userOrgDialog from '@/views/Device/resourceManage/components/userOrgDialog.vue'\nimport userUpdateOrgDialog from '@/views/Device/resourceManage/components/userUpdateOrgDialog'\n\nexport default {\n\tname: 'UserManage',\n\tcomponents: {\n\t\tuserManageDialog,\n\t\tuserOrgDialog,\n\t\tuserUpdateOrgDialog //修改组织弹框\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\ttitles: '',\n\t\t\ttitleUp: '',\n\t\t\ttableData: [],\n\t\t\tshowFormDias: false,\n\t\t\tshowFormDiaUp: false, //修改组织\n\t\t\ttreeData: [],\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'companyName'\n\t\t\t},\n\t\t\tdata: [],\n\t\t\ttreeNode: {\n\t\t\t\tcode: '',\n\t\t\t\tid: 0,\n\t\t\t\tcompanyName: '单位管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t},\n\t\t\tpId: '',\n\t\t\turl: {\n\t\t\t\tdelete: '/device/base/user/'\n\t\t\t}, // 删除人员信息\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: '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: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'tel',\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: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'type',\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: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'companyId',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}\n\t\t\t],\n\t\t\ttypes: [] //人员类型\n\t\t}\n\t},\n\twatch: {\n\t\tfilterText(val) {\n\t\t\tconsole.log(val)\n\t\t\tthis.$refs.tree.filter(val)\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.types = dictUsers.getDictItemsFromCache('rylx')\n\t},\n\tmounted() {\n\t\tdragControllerDiv()\n\t\tthis.getTreen()\n\t},\n\tmethods: {\n\t\t// 组织树查询\n\t\tgetTreen() {\n\t\t\tresourceManage.loadUnit({}, res => {\n\t\t\t\tthis.treeData = res.rows\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\t// renderContent(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.companyName}\n\t\t// \n\t\t// \n\t\t// this.append()}\n\t\t// >\n\t\t// 新增\n\t\t// \n\t\t// this.upDateinfo(data, '')}\n\t\t// >\n\t\t// 修改\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\t// )\n\t\t// },\n\t\treload() {\n\t\t\tthis.treeData = [{\n\t\t\t\tcode: '',\n\t\t\t\tid: 0,\n\t\t\t\tcompanyName: '单位管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}]\n\t\t\tthis.$set(this.treeData)\n\t\t\tthis.loadData()\n\t\t\tthis.getTreen()\n\t\t},\n\t\t// 重置\n\t\tclearQuerys() {\n\t\t\tthis.querys[0].value = ''\n\t\t\tthis.querys[1].value = ''\n\t\t\tthis.querys[2].value = ''\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.loading = true\n\t\t\tthis.tableData = []\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\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tif (this.querys[3].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[3])\n\t\t\t}\n\t\t\tuserManage.userQuery(this.queryParam).then(res => {\n\t\t\t\t// console.log(res)\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\t\thandleAdd() {\n\t\t\tif (this.treeNode.type == 0) {\n\t\t\t\tthis.$message.warning('请选择单位!')\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.$refs.formModal.add(this.treeNode)\n\t\t},\n\t\thandleNodeClick(data) {\n\t\t\tthis.treeNode = data\n\t\t\tif (data.id == '0') {\n\t\t\t\tthis.querys[3].value = this.treeNode.id\n\t\t\t\tthis.loadData(1)\n\t\t\t} else {\n\t\t\t\tthis.querys[3].value = this.treeNode.id\n\t\t\t\tthis.loadData(1)\n\t\t\t}\n\t\t},\n\t\tcloseFormDiaos() {\n\t\t\tthis.showFormDias = false\n\t\t\tthis.getTreen()\n\t\t\tthis.loadData()\n\t\t},\n\t\t// 删除单位信息\n\t\tremove(data) {\n\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})\n\t\t\t\t.then(() => {\n\t\t\t\t\tuserManage\n\t\t\t\t\t\t.removeUnits(data.id)\n\t\t\t\t\t\t.then(res => {\n\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\t\t\t\t\t\tthis.loadData()\n\t\t\t\t\t\t\t\tthis.getTreen()\n\t\t\t\t\t\t\t\tthis.$set(this.treeData, this.treeData, this.treeData)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(res => {\n\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\toffset: 80\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.catch(() => {})\n\t\t},\n\t\t// 修改单位信息\n\t\tcloseFormDiaoUp() {\n\t\t\tthis.showFormDiaUp = false\n\t\t\tthis.getTreen()\n\t\t\tthis.loadData()\n\t\t},\n\t\tappend() {\n\t\t\tthis.titles = '新增'\n\t\t\tthis.showFormDias = true\n\t\t},\n\t\tupDateinfo(data, type) {\n\t\t\tthis.titleUp = '修改'\n\t\t\tthis.showFormDiaUp = true\n\t\t\tthis.pId = data.id\n\t\t}\n\t}\n}\n",null]}