{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\UserCenter.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\UserCenter.vue","mtime":1667327530028},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-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/es6.object.keys\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es6.string.ends-with\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport \"core-js/modules/es6.function.name\";\n\nvar _methods;\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 \"./UserManager\";\nimport UserDetail from \"./UserDetail\";\n\nvar UserRoleManager = function UserRoleManager() {\n return import(\"./UserRoleManager.vue\");\n};\n\nvar EipSysTypeDialog = function EipSysTypeDialog() {\n return import('@/components/dialog/EipSysTypeDialog.vue');\n};\n\nvar UnderUserTable = function UnderUserTable() {\n return import(\"./UnderUserTable\");\n};\n\nvar ShiftRuleDialog = function ShiftRuleDialog() {\n return import('@/components/dialog/ShiftRuleDialog.vue');\n};\n\nimport tenant from '@/store/tenant';\nexport default {\n components: {\n UserRoleManager: UserRoleManager,\n EipSysTypeDialog: EipSysTypeDialog,\n UserManager: UserManager,\n UserDetail: UserDetail,\n UnderUserTable: UnderUserTable,\n ShiftRuleDialog: ShiftRuleDialog\n },\n computed: {\n userDeleteUrl: function userDeleteUrl() {\n return window.context.uc + '/api/user/v1/user/deleteUserByIds';\n },\n saveUserUrl: function saveUserUrl() {\n var preUrl = window.context.uc + '/api/user/v1/user';\n\n if (this.user.id) {\n preUrl += '/updateUser';\n } else {\n preUrl += '/addUser';\n }\n\n return preUrl;\n },\n requestMethod: function requestMethod() {\n return this.role.id ? 'PUT' : 'POST';\n },\n roleCodesOptions: function roleCodesOptions() {\n var result = [];\n\n var _iterator = _createForOfIteratorHelper(this.allowRoles),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var role = _step.value;\n var obj = {};\n obj.key = role.code;\n obj.value = role.name;\n result.push(obj);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n },\n saveRoleCopy: function saveRoleCopy() {\n return \"\".concat(window.context.uc, \"/sys/sysRoleAuth/v1/saveCopy?oldCode=\").concat(this.menuPerm.code, \"&newCodes=\").concat(this.menuPerm.newCodes);\n },\n importUserUrl: function importUserUrl() {\n var tenantId = '';\n\n if (tenant.state.tenantId) {\n tenantId = '&tenantId=' + tenant.state.tenantId;\n }\n\n return window.context.uc + '/api/user/v1/users/importExcelUser?demCode=' + this.importDemCode + '&repeatConver=' + this.importRepeatConver + tenantId;\n },\n importSignatureUrl: function importSignatureUrl() {\n var tenantId = '';\n\n if (tenant.state.tenantId) {\n tenantId = '&tenantId=' + tenant.state.tenantId;\n }\n\n return window.context.portal + '/file/v1/importSignature?repeatConver=' + this.signatureRepeatConver + tenantId;\n },\n uploadHeaders: function uploadHeaders(mapState) {\n return {\n Authorization: 'Bearer ' + this.$store.state.login.currentUser.token\n };\n }\n },\n data: function data() {\n return {\n showDialogId: '',\n selectOrgId: '',\n selectOrgName: '',\n orgList: [],\n //下拉框待选择的组织\n demList: [],\n //下拉框待选择的维度\n treeData: [],\n //树形菜单展示的数组\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n reFresh: true,\n dialogVisible: false,\n isUserManagerShow: false,\n showExcel: false,\n role: {\n name: '',\n code: ''\n },\n 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 },\n isSubmit: true,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n loadDataUrl: '',\n menuPerm: {},\n allowRoles: [],\n fileList: [],\n img: '',\n clickUserAccount: '',\n //当前点击用户的用户账号\n isUserInfo: false,\n isUpdatePwd: false,\n password: {\n pwd: '',\n newPwd: ''\n },\n pwdValidate: {\n required: true,\n min: 6,\n max: 30\n },\n dialogTitle: '',\n roles: [],\n jobs: [],\n posts: [],\n importDialogVisible: false,\n importDemCode: '',\n importRepeatConver: false,\n exportSelection: [],\n orgCode: '',\n selectOrgUserAccount: '',\n orgId: '',\n dimenList: [],\n wxDtVisible: false,\n userUnite: {},\n signatureImportVisible: false,\n signatureRepeatConver: true\n };\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator; //维度-组织数据\n\n this.getAllDemList(); //获取用户导入按钮参数\n\n this.getUserExcel(); //默认密码策略\n //this.loadPwdStratege();\n\n /*//加载全部角色\r\n this.getAllRoles();\r\n //加载全部职务\r\n this.getAllJobs();\r\n //加载全部岗位\r\n this.getAllPosts();*/\n },\n methods: (_methods = {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n getUserExcel: function getUserExcel() {\n var this_ = this;\n this.$http.get('${portal}/sys/sysProperties/v1/getByAlias?alias=userExcel').then(function (resp) {\n if (resp.data) {\n this_.showExcel = true;\n }\n });\n },\n demChange: function demChange(data) {\n this.selectOrgId = data;\n this.orgCode = '';\n this.loadTreeData();\n this.showDialogId = '';\n },\n orgTreeClick: function orgTreeClick(orgbytree) {\n //重置数据\n var ary = this.$refs.htTable.querys;\n\n for (var i = 0; i < ary.length; i++) {\n if (ary[i].group && ary[i].group == 'orgTree') {\n ary.remove(ary[i]);\n }\n }\n\n var quickSearchEl = document.querySelector('.quick-search input');\n\n if (quickSearchEl && !quickSearchEl.value) {\n this.$refs.htTable.querys = [];\n }\n\n if (!orgbytree.code) {\n this.$refs.htTable.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 this.$refs.htTable.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.$refs.htTable.load();\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 handleRefresh: function handleRefresh(cb) {\n this.loadTreeData(cb); //重置数据\n\n var ary = this.$refs.htTable.querys;\n\n for (var i = 0; i < ary.length; i++) {\n if (ary[i].group && ary[i].group == 'orgTree') {\n ary.remove(ary[i]);\n }\n }\n\n this.$refs.htTable.load();\n this.showDialogId = '';\n },\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 loadTreeData: function loadTreeData(cb) {\n var _this2 = this;\n\n var param = {\n demId: this.selectOrgId\n };\n org.getByParentAndDemToTree(param).then(function (data) {\n _this2.treeData = utils.tile2nest(data);\n cb && cb();\n });\n },\n loadPwdStratege: function loadPwdStratege() {\n var _this3 = this;\n\n uc.getDefaultPwdStrategy().then(function (data) {\n if (data) {\n var form = data;\n\n if (form.enable == 1) {\n var pwdRule = form.pwdRule;\n var pwdLength = form.pwdLength;\n\n if (pwdRule == 1) {\n _this3.pwdValidate = {\n required: true,\n min: pwdLength\n };\n } else {\n var regex = {};\n\n if (pwdRule == 2) {\n regex = {\n exp: '^(?=.*[0-9])(?=.*[a-zA-Z]).{' + pwdLength + ',30}$',\n message: '密码必须包含字母、数字,至少' + pwdLength + '位'\n };\n } else if (pwdRule == 3) {\n regex = {\n exp: '^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{' + pwdLength + ',30}$',\n message: '密码必须包含数字、字母、特殊字符,至少' + pwdLength + '位'\n };\n } else if (pwdRule == 4) {\n regex = {\n exp: '^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{' + pwdLength + ',30}$',\n message: '密码必须包含数字、大小写字母、特殊字符,至少' + pwdLength + '位'\n };\n }\n\n _this3.pwdValidate = {\n required: true,\n regex: regex\n };\n }\n }\n }\n });\n },\n onBeforeUploadImage: function onBeforeUploadImage(file) {\n var isIMAGE = file.type === 'image/jpeg' || 'image/jpg' || 'image/png';\n var isLt1M = file.size / 1024 / 1024 < 1;\n\n if (!isIMAGE) {\n this.$message.error('上传文件只能是图片格式!');\n }\n\n if (!isLt1M) {\n this.$message.error('上传文件大小不能超过 1MB!');\n }\n\n return isIMAGE && isLt1M;\n },\n UploadImage: function UploadImage(param) {\n var _this4 = this;\n\n //执行文件上传\n var formData = new FormData();\n formData.append('files', param.file);\n uc.fileUpload(formData).then(function (response) {\n _this4.user.photo = '/file/v1/downloadFile?fileId=' + response.fileId;\n param.onSuccess(); // 上传成功的图片会显示绿色的对勾\n }).catch(function (response) {\n param.onError();\n });\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\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.$refs.htTable.load();\n },\n showDialog: function showDialog(row) {\n var _this5 = this;\n\n if (this.showDialogId) {\n this.dialogTitle = '添加用户';\n this.isUserManagerShow = false;\n this.$nextTick(function () {\n _this5.isUserManagerShow = true;\n });\n } else {\n this.$message.error('请选择用户所在组织');\n }\n },\n dialogCancle: function dialogCancle(dialogVisible) {\n this[dialogVisible] = false;\n },\n loadData: function loadData(param, cb) {\n var _this6 = this;\n\n uc.getOrgUserQuery(param).then(function (response) {\n _this6.data = response.rows;\n _this6.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n handleCommand: function handleCommand(params) {\n var _this7 = this;\n\n switch (params.command) {\n case 'edit':\n this.dialogTitle = '编辑用户';\n this.clickUserAccount = params.row.account;\n this.isUserManagerShow = false;\n this.$nextTick(function () {\n _this7.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 beforeSaveData: function () {\n var _beforeSaveData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.isSubmit = true;\n\n case 1:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function beforeSaveData() {\n return _beforeSaveData.apply(this, arguments);\n }\n\n return beforeSaveData;\n }(),\n afterSaveData: function afterSaveData() {\n this.dialogVisible = false;\n this.$refs.htTable.load();\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n afterLoadData: function afterLoadData(data) {\n var _this8 = 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 _this8.$validator.validateAll('editRoleForm');\n });\n }\n },\n showFlowTypeDialog: function showFlowTypeDialog() {\n this.$refs.flowTypeDialog.showDialog();\n },\n selectUserInfo: function selectUserInfo(account) {\n var _this9 = this;\n\n //查询用户的详细信息\n uc.getUser(account).then(function (resp) {\n resp.photo = \"\".concat(window.context.portal) + resp.photo;\n _this9.user = _objectSpread({}, resp.user);\n }).then(function () {\n // 查询所属组织岗位,所属角色信息\n uc.getUserByUserId(_this9.user.id).then(function (resp) {\n _this9.$set(_this9.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 _this9.$set(_this9.user, 'orgPostList', _orgPostList);\n\n _this9.isUserInfo = true;\n });\n });\n },\n beforeSynchronization: function beforeSynchronization() {\n var _this10 = this;\n\n var users = this.$refs.htTable.$refs.htTable.selection;\n var userIds = users.map(function (obj) {\n return obj.userId;\n });\n uc.syncUserToWx(userIds).then(function () {\n _this10.$refs.htTable.load();\n });\n },\n updatePwd: function updatePwd() {\n var _this11 = 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 _this11.$message({\n message: '修改成功!',\n type: 'success'\n });\n\n _this11.isUpdatePwd = false;\n _this11.password = {};\n });\n },\n closeUserManeger: function closeUserManeger() {\n this.handleCloseUserManager();\n },\n excelImport: function excelImport() {\n this.fullscreenLoading = false;\n this.importDialogVisible = true;\n },\n signatureImport: function signatureImport() {\n this.fullscreenLoading = false;\n this.signatureImportVisible = true;\n },\n excelExport: function excelExport() {\n var _this12 = this;\n\n if (this.exportSelection.length < 1) {\n this.$message({\n type: 'warning',\n message: '请选择需要导出的数据!'\n });\n return false;\n }\n\n var select = [];\n\n for (var i = 0; i < this.exportSelection.length; i++) {\n select.push(JSON.stringify(this.exportSelection[i]));\n }\n\n var loading = this.$loading();\n uc.userExport(select, function (resp) {\n loading.close();\n\n _this12.$message({\n type: 'success',\n message: '导出成功'\n });\n });\n }\n }, _defineProperty(_methods, \"rowClick\", function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n }), _defineProperty(_methods, \"selectRow\", function selectRow(selection, row) {\n this.exportSelection = selection;\n }), _defineProperty(_methods, \"getAllRoles\", function getAllRoles() {\n var _this13 = this;\n\n uc.getAllRoles().then(function (data) {\n data.forEach(function (item) {\n _this13.roles.push({\n key: item.name,\n value: item.name\n });\n });\n });\n }), _defineProperty(_methods, \"getAllJobs\", function getAllJobs() {\n var _this14 = this;\n\n uc.getAllJobs().then(function (data) {\n data.forEach(function (item) {\n _this14.jobs.push({\n key: item.name,\n value: item.name\n });\n });\n });\n }), _defineProperty(_methods, \"getAllPosts\", function getAllPosts() {\n var _this15 = this;\n\n uc.getAllPosts().then(function (data) {\n data.rows.forEach(function (item) {\n _this15.posts.push({\n key: item.name,\n value: item.name\n });\n });\n });\n }), _defineProperty(_methods, \"getTokenByUserName\", function getTokenByUserName(username) {\n var token = '';\n uc.getTokenByUserName(username).then(function (resp) {\n token = resp.value;\n });\n return token;\n }), _defineProperty(_methods, \"onExceed\", function onExceed(file) {\n this.$message.warning('只能选择一个Excel文件!');\n }), _defineProperty(_methods, \"submitImport\", function submitImport() {\n if (!this.$refs.upload.uploadFiles || this.$refs.upload.uploadFiles.length == 0) {\n this.$message.warning('请选择要导入的数据文件!');\n return false;\n }\n\n if (!this.importDemCode) {\n this.$message.warning('请选择要导入的维度!');\n return false;\n }\n\n this.$refs.upload.submit();\n }), _defineProperty(_methods, \"beforeUpload\", function beforeUpload(file) {\n if (!file.name.endsWith('.xlsx') && !file.name.endsWith('.xls')) {\n this.$message.warning('只能导入Excel文件!');\n return false;\n }\n\n this.fullscreenLoading = true;\n }), _defineProperty(_methods, \"hadleUploadResult\", function hadleUploadResult(response, file, fileList) {\n this.fullscreenLoading = false;\n\n if (response.state) {\n this.$message.success(response.message);\n this.importDialogVisible = false;\n this.$refs.htTable.load();\n } else {\n this.$message.error(response.message + ':' + response.value);\n }\n }), _defineProperty(_methods, \"submitSignature\", function submitSignature() {\n if (!this.$refs.signatureFile.uploadFiles || this.$refs.signatureFile.uploadFiles.length == 0) {\n this.$message.warning('请选择要导入的数据文件!');\n return false;\n }\n\n this.$refs.signatureFile.submit();\n }), _defineProperty(_methods, \"beforeSignatureUpload\", function beforeSignatureUpload(file) {\n if (!file.name.endsWith('.zip')) {\n this.$message.warning('只能导入压缩(zip)文件!');\n return false;\n }\n\n this.fullscreenLoading = true;\n }), _defineProperty(_methods, \"hadleSignatureUploadResult\", function hadleSignatureUploadResult(response, file, fileList) {\n this.fullscreenLoading = false;\n\n if (response.state) {\n this.$message.success(response.message);\n this.signatureImportVisible = false;\n this.$refs.htTable.load();\n } else {\n this.$message.error(response.message + ':' + response.value);\n }\n }), _defineProperty(_methods, \"downloadTemplate\", function downloadTemplate() {\n window.location.href = window.context.manage + '/static/excel/导入组织用户模板_标准.xlsx';\n }), _defineProperty(_methods, \"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 }), _defineProperty(_methods, \"shiftConfirm\", function shiftConfirm(data) {\n var _this16 = 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 _this16.$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 _this16.$message.success('设置成功');\n }\n });\n }\n }), _defineProperty(_methods, \"getUserUniteData\", function getUserUniteData(userId) {\n var _this17 = this;\n\n this.userUnite = {};\n this.userUnite.userId = userId;\n uc.getUserUniteByUserId(userId).then(function (resp) {\n if (resp.data) {\n _this17.userUnite = resp.data;\n }\n\n _this17.wxDtVisible = true;\n });\n }), _methods)\n};",null]}