{"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\\UnderUserTable.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\UnderUserTable.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.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 uc from \"@/api/uc.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\nexport default {\n name: 'under-user-table',\n props: {\n userId: String,\n orgId: {\n type: String,\n default: \"\"\n },\n demList: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n dimId: {\n type: String,\n default: \"\"\n }\n },\n components: {\n EipUserDialog: EipUserDialog\n },\n computed: {\n roleDeleteUrl: function roleDeleteUrl() {\n return \"\".concat(window.context.uc, \"/api/org/v1/userUnder/delUnderUserByIds\");\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 demId: \"\",\n orgUserId: \"\",\n superior: \"\"\n };\n },\n watch: {},\n methods: {\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n showDialog: function showDialog(orgUserId) {\n var _this = this;\n\n this.orgUserId = orgUserId;\n this.dialogVisible = true;\n this.demId = this.dimId;\n this.demList.forEach(function (item) {\n if (item.isDefault === 1) {\n _this.demId = item.id;\n }\n });\n this.change(false);\n },\n dialogCancle: function dialogCancle() {\n this.dialogVisible = false;\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n if (this.demId) {\n param.querys.push({\n property: \"DIMEN_ID_\",\n value: this.demId,\n group: \"defaultQueryGroup\",\n relation: \"AND\",\n operation: \"EQUAL\"\n });\n }\n\n orgrequest.getUserUndersPage(param).then(function (response) {\n _this2.data = response.rows;\n _this2.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 if (!this.demId) {\n this.$message.error(\"请选择维度\");\n return;\n }\n\n this.$refs.eipUserDialog.showDialog();\n },\n addUnderUser: function addUnderUser(selection) {\n var _this3 = 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 dimenId: this.demId,\n account: this.userId,\n underAccounts: accounts.join(\",\")\n };\n uc.setUnderUser(param).then(function (data) {\n if (data.state) {\n _this3.$message({\n message: data.message,\n type: \"success\",\n showClose: true\n });\n } else {\n _this3.$message.error(data.message || \"分配用户失败\");\n }\n }).finally(function () {\n _this3.$refs.userRoleTable.load();\n });\n },\n change: function change(isLoad) {\n var _this4 = this;\n\n uc.getSuperior(this.orgUserId, this.demId).then(function (data) {\n _this4.superior = data ? data.fullname : \"无\";\n });\n if (isLoad) this.$refs.userRoleTable.load();\n }\n }\n};",null]}