webpackJsonp([97],{PtDg:function(t,e){},zYBJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("P9l9"),n=a("3E4D"),r=a("Ch4/"),o={props:{},data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[]}},methods:{changeRoute:function(){this.$router.push("/contactsList")},goto:function(){window.open("https://www.yuque.com/docs/share/89a899fe-caae-41b3-86ea-2435a8066418?#")},changeToggle:function(t){t.expand=!t.expand},getData:function(t){var e=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(s.a)("/haoban-manage3-web/admin-list",a).then(function(t){var a=t.data;1==a.errorCode&&(a.result&&a.result.length&&a.result.forEach(function(t){t.expand=!1}),a.result.forEach(function(t){t.roleUser.length&&(e.roleList=e.roleList.concat(t.roleUser))})),r.a.errorMsg(a)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},refresh:function(){var t=this;Object(s.a)("/haoban-manage3-web/sync-qywx",{}).then(function(e){n.a.showmsg("刷新成功","success"),t.getData()})}},watch:{},mounted:function(){this.getData()},components:{}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("1.好办管理后台管理员需在企业微信后台添加，"),a("el-button",{staticStyle:{"font-size":"13px"},attrs:{type:"text"},on:{click:t.goto}},[t._v("详情请见")]),t._v(" "),a("br"),t._v("\n            2.企业微信后台新增管理员后，请点击右侧【刷新】按钮刷新企业成员，否则不会同步到好办管理员列表。\n          ")],1)])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.refreshAdminList)?a("el-button",{attrs:{"limit-code":t.$buttonCode.refreshAdminList,type:"primary"},on:{click:t.refresh}},[t._v("刷新")]):t._e()],1),t._v(" "),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.roleList}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"userPhone",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"departmentName",label:"部门"}})],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(o,i,!1,function(t){a("PtDg")},"data-v-058e05cc",null);e.default=l.exports}});