{"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\\DistrubutiveUser.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\DistrubutiveUser.vue","mtime":1667327529934},{"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.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.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/web.dom.iterable\";\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//\nimport orgrequest from \"@/api/org.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\nexport default {\n name: \"under-user-table\",\n components: {\n EipUserDialog: EipUserDialog\n },\n computed: {\n DeleteUrl: function DeleteUrl() {\n return \"\".concat(window.context.uc, \"/api/org/v1/orgUser/delOrgUser\");\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n isSubmit: true,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n roleCode: \"\",\n postCode: \"\",\n postId: \"\",\n selectUsers: []\n };\n },\n watch: {},\n created: function created() {},\n methods: {\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n showDialog: function showDialog(postId, postCode) {\n this.postId = postId;\n this.postCode = postCode;\n this.dialogVisible = true;\n },\n dialogCancle: function dialogCancle() {\n this.dialogVisible = false;\n },\n loadData: function loadData(param, cb) {\n var _this = this;\n\n orgrequest.getOrgUserPage(param).then(function (response) {\n _this.data = response.rows;\n _this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n showUserDialog: function showUserDialog() {\n this.$refs.eipUserDialog.showDialog();\n },\n addUnderUser: function addUnderUser(selection) {\n var _this2 = this;\n\n if (!selection || selection.length == 0) {\n this.$message.error(\"请至少选择一个用户\");\n return;\n }\n\n var accounts = [];\n\n var _iterator = _createForOfIteratorHelper(selection),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var user = _step.value;\n accounts.push(user.account);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var param = {\n postCode: \"\",\n accounts: []\n };\n param.postCode = this.postCode;\n param.accounts = accounts.join(\",\");\n orgrequest.saveUserPost(param).then(function (data) {\n if (data.state) {\n _this2.$message({\n message: data.message,\n type: \"success\",\n showClose: true\n });\n\n _this2.$refs.userTable.load();\n\n return;\n } // this.$message.error(data.message || \"分配用户失败\");\n\n });\n },\n selectUser: function selectUser(selection) {\n this.selectUsers = selection;\n },\n setMaster: function setMaster() {\n var _this3 = this;\n\n if (this.selectUsers.length == 0) {\n this.$message({\n message: '请选择人员',\n type: 'warning'\n });\n return;\n }\n\n var ids = [];\n this.selectUsers.forEach(function (item) {\n ids.push(item.orgUserId);\n });\n orgrequest.setMasterById(ids).then(function (resp) {\n if (resp.state) {\n _this3.$message({\n message: resp.message,\n type: 'success'\n });\n\n _this3.selectUsers = [];\n\n _this3.$refs.userTable.load();\n }\n });\n }\n }\n};",null]}