{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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//\nimport userManage from '@/api/device/userManage.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport { dragControllerDiv } 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';\nexport default {\n name: 'UserManage',\n components: {\n userManageDialog: userManageDialog,\n userOrgDialog: userOrgDialog,\n userUpdateOrgDialog: userUpdateOrgDialog //修改组织弹框\n\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n titles: '',\n titleUp: '',\n tableData: [],\n showFormDias: false,\n showFormDiaUp: false,\n //修改组织\n treeData: [],\n defaultProps: {\n children: 'children',\n label: 'companyName'\n },\n data: [],\n treeNode: {\n code: '',\n id: 0,\n companyName: '单位管理',\n type: 0,\n children: []\n },\n pId: '',\n url: {\n delete: '/device/base/user/'\n },\n // 删除人员信息\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'tel',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'companyId',\n relation: 'AND',\n value: ''\n }],\n types: [] //人员类型\n\n };\n },\n watch: {\n filterText: function filterText(val) {\n console.log(val);\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n this.types = dictUsers.getDictItemsFromCache('rylx');\n },\n mounted: function mounted() {\n dragControllerDiv();\n this.getTreen();\n },\n methods: {\n // 组织树查询\n getTreen: function getTreen() {\n var _this = this;\n\n resourceManage.loadUnit({}, function (res) {\n _this.treeData = res.rows;\n\n _this.$set(_this.treeData);\n });\n },\n // renderContent(h, {node, data, store}) {\n // return (\n // {\n // this.show = true\n // }}\n // on-mouseout={() => {\n // this.show = false\n // }}\n // >\n // {data.companyName}\n // \n // \n // this.append()}\n // >\n // 新增\n // \n // this.upDateinfo(data, '')}\n // >\n // 修改\n // \n // this.remove(data)}\n // >\n // 删除\n // \n // \n // \n // \n // \n // )\n // },\n reload: function reload() {\n this.treeData = [{\n code: '',\n id: 0,\n companyName: '单位管理',\n type: 0,\n children: []\n }];\n this.$set(this.treeData);\n this.loadData();\n this.getTreen();\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n // 获取人员信息\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\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 if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n userManage.userQuery(this.queryParam).then(function (res) {\n // console.log(res)\n _this2.total = res.total;\n _this2.tableData = res.rows;\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n handleAdd: function handleAdd() {\n if (this.treeNode.type == 0) {\n this.$message.warning('请选择单位!');\n return;\n }\n\n this.$refs.formModal.add(this.treeNode);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n\n if (data.id == '0') {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n } else {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n }\n },\n closeFormDiaos: function closeFormDiaos() {\n this.showFormDias = false;\n this.getTreen();\n this.loadData();\n },\n // 删除单位信息\n remove: function remove(data) {\n var _this3 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n userManage.removeUnits(data.id).then(function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this3.queryParam.pageBean.page = 1;\n\n _this3.loadData();\n\n _this3.getTreen();\n\n _this3.$set(_this3.treeData, _this3.treeData, _this3.treeData);\n }\n }).catch(function (res) {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n }).catch(function () {});\n },\n // 修改单位信息\n closeFormDiaoUp: function closeFormDiaoUp() {\n this.showFormDiaUp = false;\n this.getTreen();\n this.loadData();\n },\n append: function append() {\n this.titles = '新增';\n this.showFormDias = true;\n },\n upDateinfo: function upDateinfo(data, type) {\n this.titleUp = '修改';\n this.showFormDiaUp = true;\n this.pId = data.id;\n }\n }\n};",null]}