text: webpackJsonp([27],{"7zkF":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n[data-v-54cae632] .clearfix:after {\n  display: none;\n}\n[data-v-54cae632] .el-input {\n  width: auto;\n}\n.headerTop[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n}\n.headerLeft[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.headerLeft .searchInput[data-v-54cae632] {\n  margin-right: 10px;\n}\n.headerRig .choose[data-v-54cae632] {\n  margin-right: 22px;\n}\n.userManageCont[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.userManageCont .table-left[data-v-54cae632] {\n  min-width: 220px;\n}\n.userManageCont .table-left .consumeType[data-v-54cae632] {\n  margin-right: 14px;\n}\n.userManageCont .table-left .consumeType .typeTop[data-v-54cae632] {\n  background: #05AAFF;\n  padding: 15px 12px;\n  font-size: 14px;\n  color: #fff;\n}\n.userManageCont .table-left .consumeType .typeCont[data-v-54cae632] {\n  border: 1px solid rgba(0, 141, 214, 0.2);\n}\n.userManageCont .table-left .consumeType .typeCont .el-table--fit[data-v-54cae632] {\n  margin-bottom: 0 !important;\n}\n.userManageCont .table-right[data-v-54cae632] {\n  -webkit-box-flex: 1;\n      -ms-flex: 1;\n          flex: 1;\n  overflow: auto;\n}\n[data-v-54cae632] .el-table {\n  border: #d9f2ff 1px solid !important;\n}\n[data-v-54cae632] .el-table th.gutter {\n  display: table-cell !important;\n}\n[data-v-54cae632] .el-table--border th,[data-v-54cae632] .el-table th {\n  background: #2CB1F5 !important;\n  color: #fff;\n  font-weight: 400;\n  border-right: 1px solid rgba(220, 223, 230, 0.21);\n  padding: 7px 0;\n}\n[data-v-54cae632] .el-table__row:nth-child(even) {\n  background: #ebf8ff !important;\n  border: 1px solid rgba(0, 141, 214, 0.26666667);\n}\n[data-v-54cae632] .el-table--border td {\n  border: none;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n[data-v-54cae632] .el-table--border td:first-child {\n  border-right: #d9f2ff 1px solid !important;\n}\n[data-v-54cae632] .el-table--border td:last-child {\n  border-left: #d9f2ff 1px solid !important;\n}\n.spanButton[data-v-54cae632] {\n  color: #05AAFF;\n}\n.shu[data-v-54cae632] {\n  margin: 0 10px;\n  color: #ccc;\n}\n.col_red[data-v-54cae632] {\n  color: #FF6B6B !important;\n}\n.col_red[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n.col_skyblue[data-v-54cae632] {\n  color: #05AAFF !important;\n}\n.col_skyblue[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n.colUpDown[data-v-54cae632] {\n  color: #FD903C !important;\n}\n.colUpDown[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n[data-v-54cae632] .pagination-container {\n  margin-top: 20px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n}\n[data-v-54cae632] .el-pagination__total {\n  -webkit-box-flex: 1;\n      -ms-flex: 1;\n          flex: 1;\n}\n.totalText[data-v-54cae632] {\n  font-size: 14px;\n  font-family: 'PingFang SC';\n  font-weight: 400;\n  line-height: 20px;\n  color: #444444;\n}\n.totalText span[data-v-54cae632] {\n  margin-right: 20px;\n}\n[data-v-54cae632] .el-pagination.is-background .btn-next,[data-v-54cae632] .el-pagination.is-background .btn-prev,[data-v-54cae632] .el-pagination.is-background .el-pager li {\n  background: none;\n  border: #D5D5D5 1px solid;\n  color: #8B8B8B;\n  font-size: 12px;\n  font-weight: normal;\n}\n[data-v-54cae632] .el-pagination.is-background .el-pager li.active {\n  background: #05AAFF;\n  color: #fff;\n  border: #05AAFF 1px solid;\n}\n[data-v-54cae632] .el-card.is-always-shadow,[data-v-54cae632] .el-card.is-hover-shadow:focus,[data-v-54cae632] .el-card.is-hover-shadow:hover {\n  -webkit-box-shadow: 0px 2px 6px rgba(68, 68, 68, 0.1) !important;\n          box-shadow: 0px 2px 6px rgba(68, 68, 68, 0.1) !important;\n}\n[data-v-54cae632] .el-table .sort-caret.ascending {\n  border-bottom-color: #fff;\n}\n[data-v-54cae632] .el-table .sort-caret.descending {\n  border-top-color: #fff;\n}\n[data-v-54cae632] .el-table .ascending .sort-caret.ascending {\n  border-bottom-color: #409EFF !important;\n}\n[data-v-54cae632] .el-table .descending .sort-caret.descending {\n  border-top-color: #409EFF !important;\n}\n.invRadio[data-v-54cae632] {\n  margin-bottom: 10px;\n}\n.invCopy[data-v-54cae632] {\n  text-align: center;\n  padding-top: 10px;\n}\n","",{version:3,sources:["H:/chengguoyun-web/src/views/backend/userManage/index.vue"],names:[],mappings:";AACA;EACE,cAAc;CACf;AACD;EACE,YAAY;CACb;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;CACxC;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;CACf;AACD;EACE,mBAAmB;CACpB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;CACf;AACD;EACE,iBAAiB;CAClB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,oBAAoB;EACpB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;CACb;AACD;EACE,yCAAyC;CAC1C;AACD;EACE,4BAA4B;CAC7B;AACD;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;EAChB,eAAe;CAChB;AACD;EACE,qCAAqC;CACtC;AACD;EACE,+BAA+B;CAChC;AACD;EACE,+BAA+B;EAC/B,YAAY;EACZ,iBAAiB;EACjB,kDAAkD;EAClD,eAAe;CAChB;AACD;EACE,+BAA+B;EAC/B,gDAAgD;CACjD;AACD;EACE,aAAa;EACb,+BAA+B;UACvB,uBAAuB;CAChC;AACD;EACE,2CAA2C;CAC5C;AACD;EACE,0CAA0C;CAC3C;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,YAAY;CACb;AACD;EACE,0BAA0B;CAC3B;AACD;EACE,aAAa;CACd;AACD;EACE,0BAA0B;CAC3B;AACD;EACE,aAAa;CACd;AACD;EACE,0BAA0B;CAC3B;AACD;EACE,aAAa;CACd;AACD;EACE,iBAAiB;EACjB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;CACxC;AACD;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;CACjB;AACD;EACE,gBAAgB;EAChB,2BAA2B;EAC3B,iBAAiB;EACjB,kBAAkB;EAClB,eAAe;CAChB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,iBAAiB;EACjB,0BAA0B;EAC1B,eAAe;EACf,gBAAgB;EAChB,oBAAoB;CACrB;AACD;EACE,oBAAoB;EACpB,YAAY;EACZ,0BAA0B;CAC3B;AACD;EACE,iEAAiE;UACzD,yDAAyD;CAClE;AACD;EACE,0BAA0B;CAC3B;AACD;EACE,uBAAuB;CACxB;AACD;EACE,wCAAwC;CACzC;AACD;EACE,qCAAqC;CACtC;AACD;EACE,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,kBAAkB;CACnB",file:"index.vue",sourcesContent:["\n[data-v-54cae632] .clearfix:after {\n  display: none;\n}\n[data-v-54cae632] .el-input {\n  width: auto;\n}\n.headerTop[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n}\n.headerLeft[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.headerLeft .searchInput[data-v-54cae632] {\n  margin-right: 10px;\n}\n.headerRig .choose[data-v-54cae632] {\n  margin-right: 22px;\n}\n.userManageCont[data-v-54cae632] {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.userManageCont .table-left[data-v-54cae632] {\n  min-width: 220px;\n}\n.userManageCont .table-left .consumeType[data-v-54cae632] {\n  margin-right: 14px;\n}\n.userManageCont .table-left .consumeType .typeTop[data-v-54cae632] {\n  background: #05AAFF;\n  padding: 15px 12px;\n  font-size: 14px;\n  color: #fff;\n}\n.userManageCont .table-left .consumeType .typeCont[data-v-54cae632] {\n  border: 1px solid rgba(0, 141, 214, 0.2);\n}\n.userManageCont .table-left .consumeType .typeCont .el-table--fit[data-v-54cae632] {\n  margin-bottom: 0 !important;\n}\n.userManageCont .table-right[data-v-54cae632] {\n  -webkit-box-flex: 1;\n      -ms-flex: 1;\n          flex: 1;\n  overflow: auto;\n}\n[data-v-54cae632] .el-table {\n  border: #d9f2ff 1px solid !important;\n}\n[data-v-54cae632] .el-table th.gutter {\n  display: table-cell !important;\n}\n[data-v-54cae632] .el-table--border th,[data-v-54cae632] .el-table th {\n  background: #2CB1F5 !important;\n  color: #fff;\n  font-weight: 400;\n  border-right: 1px solid rgba(220, 223, 230, 0.21);\n  padding: 7px 0;\n}\n[data-v-54cae632] .el-table__row:nth-child(even) {\n  background: #ebf8ff !important;\n  border: 1px solid rgba(0, 141, 214, 0.26666667);\n}\n[data-v-54cae632] .el-table--border td {\n  border: none;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n[data-v-54cae632] .el-table--border td:first-child {\n  border-right: #d9f2ff 1px solid !important;\n}\n[data-v-54cae632] .el-table--border td:last-child {\n  border-left: #d9f2ff 1px solid !important;\n}\n.spanButton[data-v-54cae632] {\n  color: #05AAFF;\n}\n.shu[data-v-54cae632] {\n  margin: 0 10px;\n  color: #ccc;\n}\n.col_red[data-v-54cae632] {\n  color: #FF6B6B !important;\n}\n.col_red[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n.col_skyblue[data-v-54cae632] {\n  color: #05AAFF !important;\n}\n.col_skyblue[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n.colUpDown[data-v-54cae632] {\n  color: #FD903C !important;\n}\n.colUpDown[data-v-54cae632]:hover {\n  opacity: 0.5;\n}\n[data-v-54cae632] .pagination-container {\n  margin-top: 20px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n}\n[data-v-54cae632] .el-pagination__total {\n  -webkit-box-flex: 1;\n      -ms-flex: 1;\n          flex: 1;\n}\n.totalText[data-v-54cae632] {\n  font-size: 14px;\n  font-family: 'PingFang SC';\n  font-weight: 400;\n  line-height: 20px;\n  color: #444444;\n}\n.totalText span[data-v-54cae632] {\n  margin-right: 20px;\n}\n[data-v-54cae632] .el-pagination.is-background .btn-next,[data-v-54cae632] .el-pagination.is-background .btn-prev,[data-v-54cae632] .el-pagination.is-background .el-pager li {\n  background: none;\n  border: #D5D5D5 1px solid;\n  color: #8B8B8B;\n  font-size: 12px;\n  font-weight: normal;\n}\n[data-v-54cae632] .el-pagination.is-background .el-pager li.active {\n  background: #05AAFF;\n  color: #fff;\n  border: #05AAFF 1px solid;\n}\n[data-v-54cae632] .el-card.is-always-shadow,[data-v-54cae632] .el-card.is-hover-shadow:focus,[data-v-54cae632] .el-card.is-hover-shadow:hover {\n  -webkit-box-shadow: 0px 2px 6px rgba(68, 68, 68, 0.1) !important;\n          box-shadow: 0px 2px 6px rgba(68, 68, 68, 0.1) !important;\n}\n[data-v-54cae632] .el-table .sort-caret.ascending {\n  border-bottom-color: #fff;\n}\n[data-v-54cae632] .el-table .sort-caret.descending {\n  border-top-color: #fff;\n}\n[data-v-54cae632] .el-table .ascending .sort-caret.ascending {\n  border-bottom-color: #409EFF !important;\n}\n[data-v-54cae632] .el-table .descending .sort-caret.descending {\n  border-top-color: #409EFF !important;\n}\n.invRadio[data-v-54cae632] {\n  margin-bottom: 10px;\n}\n.invCopy[data-v-54cae632] {\n  text-align: center;\n  padding-top: 10px;\n}\n"],sourceRoot:""}])},pUBx:function(e,t,a){var n=a("7zkF");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("71e16e03",n,!0)},x529:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("ms7A"),o=a("5ybE"),i=a("Q5rI"),s={name:"userManage",data:function(){return{host:location.host,findChild:"1",listLoading:!1,keyWork:"",total:1,page:1,pageSize:10,userList:[],companyList:[],companyId:"",sortFieldName:"",sortType:"",userName:"",stateNum:"",selectUserList:[],isSelectUser:null,getRouteType:"",companyDto:!1,showUpDown:!1,defaultProps:{children:"child",label:"deptName"},dialogVisible:!1,companyType:1,inviiteType:1,inviteCode:"",inviteReg:"",allowGetList:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MANAGE:LIST"),allowAdd:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MAAGE:INSERT"),allowUpdate:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MANAGE:UPDATE"),allowDelete:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MANAGE:DELETE"),allowUpDown:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MANAGE:GOORDOWN"),allowDetail:this.authorityControl("SYSTEM:BACKGROUND:MANAGE","SYSTEM:USER_MANAGE:MANAGE","SYSTEM:USER_MANAGE:DETAILS")}},watch:{$route:function(){this.selectUserList=[]}},activated:function(){if(this.getCompanyList(),this.allowGetList.twoAllow&&this.getUserList(),!this.$route.query.isSelect)return this.isSelectUser=!1,!1;this.isSelectUser=!0,void 0!=this.$route.query.isType&&(this.getRouteType=this.$route.query.isType)},methods:{getCompanyList:function(){var e=this;Object(o.f)({}).then(function(t){if(e.companyName=t.data.companyName,e.companyId=t.data.companyId,""==t.data.deptInfoTreeVos){e.companyList=[],e.companyDto=!0;var a={deptName:t.data.companyName,deptId:t.data.companyId};e.companyList.push(a)}else e.companyDto=!1,e.companyList=t.data.deptInfoTreeVos})},treeSubHandle:function(e){this.companyDto||(this.deptId=this.deptId=[e.deptId],this.page=1,this.allowGetList.twoAllow&&this.getUserList(),this.showUpDown=!0)},getUserList:function(){var e=this,t={companyId:this.companyId,deptIds:this.deptId,findChild:this.findChild,page:this.page<=0?1:this.page,pageSize:this.pageSize,sortFieldName:this.sortFieldName,sortType:this.sortType,userName:this.userName,stateNum:this.stateNum};if(this.$route.query.isSelect||1==this.$route.query.isSelect)return Object(n.l)(t).then(function(t){if(200==t.code){e.total=Number(t.data.total);for(var a=0;a<t.data.data.length;a++){var n="",o="";if(t.data.data[a].userRoleViewVos){for(var s=0;s<t.data.data[a].userRoleViewVos.length;s++)o+=t.data.data[a].userRoleViewVos[s].roleName+",";o.length>0&&(o=o.substr(0,o.length-1)),t.data.data[a].userRoleViewVos=o}if(t.data.data[a].userDeptViewVos){for(var r=0;r<t.data.data[a].userDeptViewVos.length;r++)n+=t.data.data[a].userDeptViewVos[r].deptName+",";n.length>0&&(n=n.substr(0,n.length-1)),t.data.data[a].userDeptViewVos=n}}t.data.data.forEach(function(e){e.jobLevel&&""!==e.jobLevel&&Object(i.e)({dictId:e.jobLevel}).then(function(t){e.jobLevelName=t.data})}),t.data.data.forEach(function(e){e.jobPost&&""!==e.jobPost&&Object(i.e)({dictId:e.jobPost}).then(function(t){e.jobPostName=t.data})}),e.userList=t.data.data,e.sortFieldName="",e.sortType=""}else e.$message({type:"error",message:t.message}),e.sortFieldName="",e.sortType=""}),!1;Object(n.i)(t).then(function(t){if(200==t.code){e.total=Number(t.data.total);for(var a=0;a<t.data.data.length;a++){var n="",o="";if(t.data.data[a].userRoleViewVos){for(var s=0;s<t.data.data[a].userRoleViewVos.length;s++)o+=t.data.data[a].userRoleViewVos[s].roleName+",";o.length>0&&(o=o.substr(0,o.length-1)),t.data.data[a].userRoleViewVos=o}if(t.data.data[a].userDeptViewVos){for(var r=0;r<t.data.data[a].userDeptViewVos.length;r++)n+=t.data.data[a].userDeptViewVos[r].deptName+",";n.length>0&&(n=n.substr(0,n.length-1)),t.data.data[a].userDeptViewVos=n}}t.data.data.forEach(function(e){e.jobLevel&&""!==e.jobLevel&&Object(i.e)({dictId:e.jobLevel}).then(function(t){e.jobLevelName=t.data})}),t.data.data.forEach(function(e){e.jobPost&&""!==e.jobPost&&Object(i.e)({dictId:e.jobPost}).then(function(t){e.jobPostName=t.data})}),setTimeout(function(){e.userList=t.data.data},200),e.sortFieldName="",e.sortType=""}else e.$message({type:"error",message:t.message}),e.sortFieldName="",e.sortType=""})},deleteUser:function(e){var t=this,a={companyId:this.companyId,userId:e};Object(n.d)(a).then(function(e){200==e.code?(t.$message({type:"success",message:"删除成功"}),t.getUserList()):t.$message({type:"error",message:e.message})})},dataUpDown:function(e,t){var a=this,o={companyId:this.companyId,deptId:this.deptId,operationType:t,userId:e};Object(n.k)(o).then(function(e){200==e.code?(a.$message({type:"success",message:e.message}),a.getUserList()):a.$message({type:"error",message:e.message})})},findChildChange:function(e){this.findChild=e,this.showUpDown=0==e,this.getUserList()},goAddUser:function(){this.$router.push({path:"/backend/userManage/addUser",query:{companyId:this.companyId}})},editUserInfo:function(e){this.$router.push({path:"/backend/userManage/editUser",query:{userId:e,companyId:this.companyId}})},goUserInfo:function(e){this.allowDetail.twoAllow&&this.$router.push({path:"/backend/userManage/editUser",query:{userId:e,companyId:this.companyId,detail:!0}})},handleSortChange:function(e){this.sortFieldName=e.prop,"ascending"===e.order?this.sortType="ASC":"descending"===e.order?this.sortType="DESC":(this.sortType="",this.sortFieldName=""),this.getUserList()},handleSizeChange:function(e){this.pageSize=e,this.getUserList()},handleCurrentChange:function(e){this.page=e,this.getUserList()},handleSelectionChange:function(e){this.selectUserList=e},goSelectUserData:function(){var e=this;this.selectUserList.length>0?("project_detail"==this.getRouteType?(this.$store.commit("SET_USER_DATA",this.selectUserList),this.$router.push({path:"/project/create",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"project_edit"==this.getRouteType?(this.$store.commit("SET_USER_DATA",this.selectUserList),this.$router.push({path:"/project/edit",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"product_detail"==this.getRouteType?(this.$store.commit("SET_PRODUCTUSER_DATA",this.selectUserList),this.$router.push({path:"/product/create",query:{projectId:this.$route.query.projectId,id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"product_edit"==this.getRouteType&&(this.$store.commit("SET_PRODUCTUSER_DATA",this.selectUserList),this.$router.push({path:"/product/edit",query:{projectId:this.$route.query.projectId,id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null),this.$store.state.tagsView.visitedViews.forEach(function(t,a){if("用户管理"!=t.name)return!1;e.$store.state.tagsView.visitedViews.splice(a,1)})):this.$message({type:"error",message:"请先选择用户"})},goSelectUserCanacel:function(){var e=this;"project_detail"==this.getRouteType?(this.$router.push({path:"/project/create",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"project_edit"==this.getRouteType?(this.$router.push({path:"/project/edit",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"product_detail"==this.getRouteType?(this.$router.push({path:"/product/create",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null):"product_edit"==this.getRouteType&&(this.$router.push({path:"/product/edit",query:{id:this.$route.query.id,userEdit:!0}}),this.isSelectUser=null),this.selectUserList=[],this.$store.state.tagsView.visitedViews.forEach(function(t,a){if("用户管理"!=t.name)return!1;e.$store.state.tagsView.visitedViews.splice(a,1)})},searchUserList:function(){this.deptId=[],this.page=1,this.$refs.tableData.setCurrentKey(null),this.getUserList()},goInvitation:function(){this.dialogVisible=!0,this.getInviteCode()},getInviteCode:function(){var e=this,t={companyType:this.companyType,inviiteType:this.inviiteType,inviteCompanyid:this.$store.getters.companyId,inviteCompanyName:this.$store.getters.companyName};Object(i.i)(t).then(function(t){200==t.code?(e.inviteCode=t.data.inviteCode,"1"==e.inviiteType?e.inviteReg=e.host+"/#/registerJoin?name=user&invite=true&inviteCode="+e.inviteCode:e.inviteReg=e.host+"/#/invitationJoin?inviteCode="+e.inviteCode):e.$message({type:"error",message:t.message})})},onCopy:function(){this.$message.success("链接已复制到剪切板！")},handleClose:function(){this.dialogVisible=!1}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card box-margin"},[a("div",{staticClass:"clearfix headerTop",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"headerLeft"},[a("el-input",{staticClass:"searchInput",attrs:{size:"small",placeholder:"用户名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchUserList(t)}},model:{value:e.userName,callback:function(t){e.userName=t},expression:"userName"}}),e._v(" "),a("el-select",{staticClass:"searchInput",attrs:{size:"small",placeholder:"是否在职",clearable:""},model:{value:e.stateNum,callback:function(t){e.stateNum=t},expression:"stateNum"}},[a("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"否"}})],1),e._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-search"},on:{click:e.searchUserList}},[e._v("搜索")])],1),e._v(" "),a("div",{staticClass:"headerRig"},[a("el-checkbox",{staticClass:"choose",attrs:{"true-label":"1","false-label":"0"},on:{change:e.findChildChange},model:{value:e.findChild,callback:function(t){e.findChild=t},expression:"findChild"}},[e._v("\n            包括子部门用户\n          ")]),e._v(" "),e.isSelectUser?a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.goSelectUserData}},[e._v("确定")]):e._e(),e._v(" "),e.isSelectUser?a("el-button",{attrs:{size:"small",type:"danger"},on:{click:e.goSelectUserCanacel}},[e._v("取消")]):e._e(),e._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.goInvitation}},[e._v("邀请新用户")]),e._v(" "),e.allowAdd.twoAllow?a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.goAddUser}},[e._v("新增用户")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"userManageCont"},[a("div",{staticClass:"table-left"},[a("div",{staticClass:"consumeType"},[a("div",{staticClass:"typeTop"},[e._v("组织架构")]),e._v(" "),a("div",{staticClass:"typeCont"},[a("el-tree",{ref:"tableData",attrs:{data:e.companyList,"node-key":"deptId","check-strictly":"",props:e.defaultProps,"expand-on-click-node":!1,"highlight-current":!0},on:{"node-click":e.treeSubHandle},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node;return t.data,a("span",{staticClass:"span-ellipsis"},[a("span",{attrs:{title:n.label}},[e._v(e._s(n.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"table-right"},[a("div",{staticClass:"materielTable"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"userTable",attrs:{data:e.userList,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[e.isSelectUser?a("el-table-column",{attrs:{type:"selection",width:"35"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"序号",align:"center",type:"index",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"160px",label:"用户名称",sortable:"custom",prop:"userName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.userName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"性别",sortable:"custom",prop:"userSex"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(1==t.row.userSex?"男":"女"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"账号",sortable:"custom",prop:"loginName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.loginName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"电话",sortable:"custom",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.phoneNumber))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否在职",sortable:"custom",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(2==t.row.stateNum?"否":"是"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"级别",sortable:"custom",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.jobLevelName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"岗位",sortable:"custom",prop:"phoneNumber"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.jobPostName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return e.isSelectUser?void 0:[e.allowUpdate.twoAllow?a("span",{staticClass:"spanButton col_skyblue",on:{click:function(a){return e.editUserInfo(t.row.userId)}}},[e._v("编辑")]):e._e(),e._v(" "),e.allowUpdate.twoAllow?a("span",{staticClass:"shu"},[e._v("|")]):e._e(),e._v(" "),e.allowDelete.twoAllow?a("el-popconfirm",{attrs:{confirmButtonText:"好的",cancelButtonText:"取消",icon:"el-icon-info",iconColor:"red",title:"是否确定删除？"},on:{onConfirm:function(a){return e.deleteUser(t.row.userId)}}},[a("span",{staticClass:"spanButton col_red",attrs:{slot:"reference"},slot:"reference"},[e._v("删除")])]):e._e(),e._v(" "),0==e.findChild&&e.allowUpDown.twoAllow?a("span",{staticClass:"shu"},[e._v("|")]):e._e(),e._v(" "),0==e.findChild&&e.allowUpDown.twoAllow&&e.showUpDown?a("span",{staticClass:"spanButton colUpDown",on:{click:function(a){return e.dataUpDown(t.row.userId,1)}}},[e._v("上升")]):e._e(),e._v(" "),0==e.findChild&&e.allowUpDown.twoAllow&&e.showUpDown?a("span",{staticClass:"shu"},[e._v("|")]):e._e(),e._v(" "),0==e.findChild&&e.allowUpDown.twoAllow&&e.showUpDown?a("span",{staticClass:"spanButton colUpDown",on:{click:function(a){return e.dataUpDown(t.row.userId,2)}}},[e._v("下降")]):e._e()]}}],null,!0)})],1),e._v(" "),a("div",{staticClass:"pagination-container"},[a("div",{staticClass:"totalText"},[a("span",[e._v("总数："+e._s(e.total))]),e._v(" "),a("span",[e._v("总页数:"+e._s(Math.ceil(e.total/e.pageSize)||Math.ceil(e.total/10)))]),e._v(" "),a("span",[e._v("当前页："+e._s(e.page||1))])]),e._v(" "),a("el-pagination",{attrs:{background:"","current-page":e.page,"page-sizes":[10,20,30,50],"page-size":e.pageSize,layout:"prev, pager, next, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])])]),e._v(" "),a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:"邀请新用户",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"invitation"},[a("el-radio-group",{staticClass:"invRadio",on:{change:e.getInviteCode},model:{value:e.inviiteType,callback:function(t){e.inviiteType=t},expression:"inviiteType"}},[a("el-radio",{attrs:{label:1}},[e._v("邀请注册")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("邀请加入")])],1),e._v(" "),a("el-input",{attrs:{type:"textarea",disabled:"",rowS:5,resize:"none"},model:{value:e.inviteReg,callback:function(t){e.inviteReg=t},expression:"inviteReg"}}),e._v(" "),a("div",{staticClass:"invCopy"},[a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.inviteReg,expression:"inviteReg",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"}],attrs:{size:"small",type:"info"}},[e._v("复制链接")])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("关闭")])],1)])],1)},staticRenderFns:[]};var l=a("VU/8")(s,r,!1,function(e){a("pUBx")},"data-v-54cae632",null);t.default=l.exports}});
  //# sourceMappingURL=27.b6874df398e02c1383c5.js.map