webpackJsonp([51],{tIHq:function(t,e){},zYBJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),s=a("3E4D"),o=a("Ch4/"),r={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.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(n.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))})),o.a.errorMsg(a)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},refresh:function(){var t=this;Object(n.a)("/haoban-manage3-web/sync-qywx",{}).then(function(e){s.a.showmsg("刷新成功","success"),t.getData()})}},watch:{},mounted:function(){this.$emit("showTab",2),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},l={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(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.refresh}},[t._v("刷新")])],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 c=a("VU/8")(r,l,!1,function(t){a("tIHq")},"data-v-c94a8626",null);e.default=c.exports}});