{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\BasicDataManagement\\userManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\BasicDataManagement\\userManager.vue","mtime":1704711122360},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/sfz-lh-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nvar _methods;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 uc from '@/api/uc.js';\nimport org from '@/api/org.js';\nimport utils from '@/hotent-ui-util.js';\nimport UserManager from '@/views/uc/UcManager/UserManager';\nimport UserDetail from '@/views/uc/UcManager/UserDetail';\nimport EipUserDialog from '@/components/dialog/EipUserDialog.vue';\n\nvar UserRoleManager = function UserRoleManager() {\n return import('@/views/uc/UserRoleManager.vue');\n};\n\nvar EipSysTypeDialog = function EipSysTypeDialog() {\n return import('@/components/dialog/EipSysTypeDialog.vue');\n};\n\nvar UnderUserTable = function UnderUserTable() {\n return import('@/views/uc/org/UnderUserTable');\n};\n\nvar ShiftRuleDialog = function ShiftRuleDialog() {\n return import('@/components/dialog/ShiftRuleDialog.vue');\n};\n\nimport tenant from '@/store/tenant';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport { dragController } from '@/assets/js/dragController';\nexport default {\n name: 'workGroupContent',\n mixins: [TableMixin],\n components: {\n EipUserDialog: EipUserDialog,\n UserRoleManager: UserRoleManager,\n EipSysTypeDialog: EipSysTypeDialog,\n UserManager: UserManager,\n UserDetail: UserDetail,\n UnderUserTable: UnderUserTable,\n ShiftRuleDialog: ShiftRuleDialog\n },\n data: function data() {\n var _ref;\n\n return _ref = {\n treeData: [],\n defaultProps: {\n id: 'id',\n children: 'children',\n label: 'name'\n },\n sreachTree: '',\n disabledDetils: false,\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'DESC',\n property: 'updateTime'\n }]\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n allData: {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n },\n currentNodekey: '',\n showDialogId: '',\n selectOrgId: '',\n selectOrgName: '',\n orgList: [],\n //下拉框待选择的组织\n demList: []\n }, _defineProperty(_ref, \"treeData\", []), _defineProperty(_ref, \"defaultProps\", {\n children: 'children',\n label: 'name'\n }), _defineProperty(_ref, \"reFresh\", true), _defineProperty(_ref, \"dialogVisible\", false), _defineProperty(_ref, \"isUserManagerShow\", false), _defineProperty(_ref, \"showExcel\", false), _defineProperty(_ref, \"role\", {\n name: '',\n code: ''\n }), _defineProperty(_ref, \"user\", {\n account: '',\n address: '',\n email: '',\n fullname: '',\n mobile: '',\n password: '',\n photo: '',\n sex: '',\n status: 1,\n roleName: '',\n orgPostList: []\n }), _defineProperty(_ref, \"isSubmit\", true), _defineProperty(_ref, \"data\", []), _defineProperty(_ref, \"pageResult\", {\n page: 1,\n pageSize: 50,\n total: 0\n }), _defineProperty(_ref, \"loadDataUrl\", ''), _defineProperty(_ref, \"menuPerm\", {}), _defineProperty(_ref, \"allowRoles\", []), _defineProperty(_ref, \"fileList\", []), _defineProperty(_ref, \"img\", ''), _defineProperty(_ref, \"clickUserAccount\", ''), _defineProperty(_ref, \"isUserInfo\", false), _defineProperty(_ref, \"isUpdatePwd\", false), _defineProperty(_ref, \"password\", {\n pwd: '',\n newPwd: ''\n }), _defineProperty(_ref, \"pwdValidate\", {\n required: true,\n min: 6,\n max: 30\n }), _defineProperty(_ref, \"dialogTitle\", ''), _defineProperty(_ref, \"roles\", []), _defineProperty(_ref, \"jobs\", []), _defineProperty(_ref, \"posts\", []), _defineProperty(_ref, \"importDialogVisible\", false), _defineProperty(_ref, \"importDemCode\", ''), _defineProperty(_ref, \"importRepeatConver\", false), _defineProperty(_ref, \"exportSelection\", []), _defineProperty(_ref, \"orgCode\", ''), _defineProperty(_ref, \"selectOrgUserAccount\", ''), _defineProperty(_ref, \"orgId\", ''), _defineProperty(_ref, \"dimenList\", []), _defineProperty(_ref, \"wxDtVisible\", false), _defineProperty(_ref, \"userUnite\", {}), _defineProperty(_ref, \"signatureImportVisible\", false), _defineProperty(_ref, \"signatureRepeatConver\", true), _ref;\n },\n created: function created() {\n // this.loadTollStation()\n this.loadTreeData();\n this.loadData(1);\n this.getAllDemList();\n },\n mounted: function mounted() {\n dragController();\n },\n methods: (_methods = {\n getAllDemList: function getAllDemList() {\n var _this = this;\n\n org.getDescAll().then(function (resp) {\n for (var i = 0; i < resp.length; i++) {\n _this.orgList.push({\n key: resp[i].id,\n value: resp[i].demName\n });\n\n _this.demList.push({\n key: resp[i].code,\n value: resp[i].demName\n });\n\n _this.dimenList = resp;\n\n if (resp[i].isDefault === 1) {\n _this.selectOrgId = resp[i].id;\n }\n }\n }).then(function (params) {\n var dem = {\n demId: _this.selectOrgId\n };\n org.getByParentAndDemToTree(dem).then(function (data) {\n _this.treeData = utils.tile2nest(data);\n });\n });\n },\n dialogCancle: function dialogCancle(dialogVisible) {\n this.isUpdatePwd = false;\n },\n updatePwd: function updatePwd() {\n var _this2 = this;\n\n if (this.password.pwd != this.password.newPwd) {\n this.$message.error('两次输入密码不一致');\n return;\n } else if (this.password.newPwd == '' || this.password.newPwd == null) {\n this.$message.error('请输入密码');\n return;\n } else if (this.password.newPwd.length < 6) {\n this.$message.error('密码长度必须到6位');\n return;\n }\n\n var param = {\n account: this.user.account,\n newPwd: this.password.newPwd\n };\n uc.updateUserPsw(param).then(function () {\n _this2.$message({\n message: '修改成功!',\n type: 'success'\n });\n\n _this2.isUpdatePwd = false;\n _this2.password = {};\n });\n },\n handleCommand: function handleCommand(params) {\n var _this3 = this;\n\n switch (params.command) {\n case 'unbinding':\n this.$confirm('是否确定解绑该用户?', '提示', {\n cancelButtonText: '取消',\n confirmButtonText: '确定',\n type: 'warning',\n closeOnClickModal: false\n }).then(function () {\n _this3.handleUnbinding(params.row.uniteId);\n });\n break;\n\n case 'edit':\n this.dialogTitle = '编辑用户';\n this.clickUserAccount = params.row.account;\n this.isUserManagerShow = false;\n this.$nextTick(function () {\n _this3.isUserManagerShow = true;\n });\n break;\n\n case 'showInfo':\n this.selectUserInfo(params.row.account);\n break;\n\n case 'updatePwd':\n this.user = params.row;\n this.isUpdatePwd = true;\n break;\n\n case 'toFront':\n uc.getTokenByUserName(params.row.account).then(function (resp) {\n var token = resp.value; // window.location.href = `${window.context.front}?token= ` + token;\n\n window.open(\"\".concat(window.context.front, \"?token=\") + token);\n });\n break;\n\n case 'toManager':\n uc.getTokenByUserName(params.row.account).then(function (resp) {\n var token = resp.value; // window.location.href = `${window.context.front}?token= ` + token;\n\n window.open(\"\".concat(window.context.manage, \"?token=\") + token);\n });\n break;\n\n case 'bindWxDk':\n this.getUserUniteData(params.row.userId);\n break;\n\n case 'toUnderUserPage':\n this.selectOrgUserAccount = params.row.account;\n this.$refs.underUserTable.showDialog(params.row.userId);\n break;\n\n case 'shiftUser':\n this.setShiftUser(params.row.userId);\n\n default:\n break;\n }\n },\n handleUnbinding: function handleUnbinding(uniteId) {\n var _this4 = this;\n\n this.$http.remove('${portal}/uc/userUnite/v1/removes?ids=' + uniteId).then(function (resp) {\n if (resp.data) {\n _this4.$message.success('解绑成功');\n\n _this4.$refs.htTable.load();\n }\n });\n },\n selectUserInfo: function selectUserInfo(account) {\n var _this5 = this;\n\n //查询用户的详细信息\n uc.getUser(account).then(function (resp) {\n resp.photo = \"\".concat(window.context.portal) + resp.photo;\n _this5.user = _objectSpread({}, resp.user);\n }).then(function () {\n // 查询所属组织岗位,所属角色信息\n uc.getUserByUserId(_this5.user.id).then(function (resp) {\n _this5.$set(_this5.user, 'roleName', resp[resp.length - 1].roleName.roleName);\n\n var _orgPostList = [];\n\n for (var i = 0; i < resp.length - 1; i++) {\n _orgPostList.push(resp[i]);\n }\n\n _this5.$set(_this5.user, 'orgPostList', _orgPostList);\n\n _this5.isUserInfo = true;\n });\n });\n },\n getUserUniteData: function getUserUniteData(userId) {\n var _this6 = this;\n\n this.userUnite = {};\n this.userUnite.userId = userId;\n uc.getUserUniteByUserId(userId).then(function (resp) {\n if (resp.data) {\n _this6.userUnite = resp.data;\n }\n\n _this6.wxDtVisible = true;\n });\n },\n setShiftUser: function setShiftUser(id) {\n var selection = this.$refs.htTable.$refs.htTable.selection;\n\n if (selection.length <= 0) {\n this.$message.error('请选择用户!');\n return;\n }\n\n this.$refs.shiftRuleDialog.showDialog();\n },\n handleCloseUserManager: function handleCloseUserManager() {\n this.isUserManagerShow = false;\n this.isUserInfo = false;\n this.isUpdatePwd = false;\n this.password = {};\n this.clickUserAccount = '';\n this.loadData(1);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.currentNodekey = data.id;\n this.loadIdData(data); // this.handleSearch()\n },\n loadIdData: function loadIdData(orgbytree) {\n var querys = [];\n\n if (!orgbytree.code) {\n querys.push({\n property: 'DEM_ID_',\n value: orgbytree.demId,\n group: 'orgTree',\n relation: 'AND',\n operation: 'EQUAL'\n });\n this.showDialogId = '';\n } else {\n this.orgCode = orgbytree.code;\n var ids = [];\n var trees = '';\n this.getOrgTrees(orgbytree, ids);\n trees = ids.join(',');\n\n if (trees != '') {\n querys.push({\n property: 'ORG_ID_',\n value: trees,\n group: 'orgTree',\n relation: 'AND',\n operation: 'IN'\n });\n }\n\n this.showDialogId = trees;\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n getOrgTrees: function getOrgTrees(node, ids) {\n ids.push(node.id);\n var arr = node.children;\n\n if (arr) {\n for (var i = 0; i < arr.length; i++) {\n this.getOrgTrees(arr[i], ids);\n }\n }\n },\n // 获取组织数据\n loadTreeData: function loadTreeData(cb) {\n var _this7 = this;\n\n var param = {\n demId: this.selectOrgId\n };\n org.getByParentAndDemToTree(param).then(function (data) {\n _this7.treeData = utils.tile2nest(data); // this.currentNodekey = this.treeData[0].id\n\n _this7.$nextTick(function () {\n _this7.$refs.myTree.setCurrentKey(_this7.currentNodekey); //一定要加这个选中了否则样式没有出来\n\n });\n\n cb && cb();\n });\n },\n //获取数据\n loadData: function loadData(page) {\n var _this8 = this;\n\n if (page) this.params.pageBean.page = page;\n this.tableLoading = true;\n uc.getOrgUserQuery(this.params).then(function (res) {\n _this8.tableLoading = false;\n var data = res;\n _this8.tableData = data.rows || [];\n\n if (data.page) {\n _this8.params.pageBean = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n }\n });\n },\n //添加\n handleAdd: function handleAdd() {\n var _this9 = this;\n\n if (this.showDialogId) {\n this.dialogTitle = '添加用户';\n this.isUserManagerShow = false;\n this.$nextTick(function () {\n _this9.isUserManagerShow = true;\n });\n } else {\n this.$message.error('请选择用户所在组织');\n }\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.edit = true;\n this.disabledDetils = false;\n this.dialogForm = rows || {};\n this.dialogForm = _objectSpread({}, rows);\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this10 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n uc.batchDeleteInfo(_this10.deleteIds).then(function (res) {\n _this10.loadData(1);\n\n if (res.data.state) {\n _this10.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var querys = [];\n\n for (var i in this.searchForm) {\n if (this.searchForm[i]) {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: this.searchForm[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n // 侧边栏搜索\n filterNode: function filterNode(value, treeData) {\n if (!value) return true;\n return treeData.label.indexOf(value) !== -1;\n },\n afterLoadData: function afterLoadData(data) {\n var _this11 = this;\n\n // 菜单权限复制\n if (this.isUserManagerShow) {\n this.allowRoles = data;\n } // 编辑角色\n\n\n if (this.dialogVisible) {\n this.role = data.value;\n setTimeout(function () {\n return _this11.$validator.validateAll('editRoleForm');\n });\n }\n }\n }, _defineProperty(_methods, \"afterLoadData\", function afterLoadData(data) {\n var _this12 = this;\n\n // 菜单权限复制\n if (this.isUserManagerShow) {\n this.allowRoles = data;\n } // 编辑角色\n\n\n if (this.dialogVisible) {\n this.role = data.value;\n setTimeout(function () {\n return _this12.$validator.validateAll('editRoleForm');\n });\n }\n }), _defineProperty(_methods, \"shiftConfirm\", function shiftConfirm(data) {\n var _this13 = this;\n\n var selection = this.$refs.htTable.$refs.htTable.selection;\n\n if (data.length > 0) {\n var shiftUser = selection.map(function (item) {\n return {\n userId: item.id,\n shiftId: data[0].id\n };\n });\n uc.saveShiftUser(shiftUser).then(function (response) {\n if (response.state) {\n _this13.$message.success('设置成功');\n }\n });\n } else {\n var ids = selection.map(function (item) {\n return item.id;\n }).join(',');\n uc.removeShiftUser(ids).then(function (response) {\n if (response.state) {\n _this13.$message.success('设置成功');\n }\n });\n }\n }), _methods),\n watch: {\n sreachTree: function sreachTree(val) {\n this.$refs.myTree.filter(val);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}