{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\heiorgmanager\\DistrubutiveUser.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\heiorgmanager\\DistrubutiveUser.vue","mtime":1675071993381},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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\nimport orgrequest from \"@/api/org.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\n\nexport default {\n name:'under-user-table',\n components: {\n EipUserDialog\n },\n computed: {\n DeleteUrl: function() {\n return `${window.context.uc}/api/org/v1/orgUser/delOrgUser`;\n }\n },\n 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 },\n created() {},\n methods: {\n handleClose() {\n this.dialogVisible = false;\n },\n showDialog(postId,postCode) {\n this.postId = postId;\n this.postCode = postCode;\n this.dialogVisible = true;\n },\n dialogCancle() {\n this.dialogVisible = false;\n },\n loadData(param, cb) {\n orgrequest.getOrgUserPage(param)\n .then(response => {\n this.data = response.rows;\n this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n })\n .finally(() => cb());\n },\n showUserDialog() {\n this.$refs.eipUserDialog.showDialog();\n },\n addUnderUser(selection) {\n if (!selection || selection.length == 0) {\n this.$message.error(\"请至少选择一个用户\");\n return;\n }\n let accounts = [];\n for (let user of selection) {\n accounts.push(user.account);\n }\n var param = {postCode: '',accounts: []};\n param.postCode=this.postCode;\n param.accounts = accounts.join(\",\");\n orgrequest.saveUserPost(param).then(data => {\n if (data.state) {\n this.$message({\n message: data.message,\n type: \"success\",\n showClose: true\n });\n this.$refs.userTable.load();\n return;\n }\n this.$message.error(data.message||\"分配用户失败\");\n });\n },\n setMaster(){\n if(this.selectUsers.length == 0){\n this.$message({message:'请选择人员', type:'warning'});\n return;\n }\n let ids = [];\n this.selectUsers.forEach(item =>{\n ids.push(item.orgUserId);\n });\n orgrequest.setMasterById(ids).then(resp =>{\n if(resp.state) {\n this.$message({message:resp.message, type:'success'});\n this.selectUsers = [];\n this.$refs.userTable.load();\n }\n })\n },\n selectUser(selection) {\n this.selectUsers = selection;\n }\n }\n};\n",null]}