text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["corp"],{"11cc":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=this,e=a.$createElement,i=a._self._c||e;return i("div",[i("a-card",{attrs:{bordered:!1}},[i("div",{staticClass:"table-page-search-wrapper"},[i("a-form",[i("div",{staticClass:"search-btn"},[i("div",{staticClass:"search"},[i("a-form-item",{staticStyle:{width:"200px"}},[i("a-input",{attrs:{placeholder:"搜索企业微信名称"},model:{value:a.searchName,callback:function(t){a.searchName=t},expression:"searchName"}})],1),i("div",{staticClass:"btn"},[i("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"/corp/index@search",expression:"'/corp/index@search'"}],attrs:{type:"primary"},on:{click:function(){t.pagination.current=1,t.getTableData()}}},[a._v("查找")]),i("a-button",{staticStyle:{"margin-left":"8px"},on:{click:function(){t.searchName=""}}},[a._v("清空")])],1)],1),i("span",{directives:[{name:"permission",rawName:"v-permission",value:"/corp/index@addwx",expression:"'/corp/index@addwx'"}],staticClass:"table-page-search-submitButtons"},[i("a-button",{attrs:{type:"primary"},on:{click:function(){t.visible=!0}}},[a._v("+添加企业微信号")])],1)])])],1),i("a-table",{attrs:{rowKey:function(t){return t.corpId},columns:a.columns,"data-source":a.tableData,pagination:a.pagination},on:{change:a.handleTableChange},scopedSlots:a._u([{key:"action",fn:function(t,e){return i("div",{},[[i("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"/corp/index@check",expression:"'/corp/index@check'"}],attrs:{type:"link"},on:{click:function(t){return a.getWechatDetail(e.corpId)}}},[a._v("查看")]),i("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"/corp/index@edit",expression:"'/corp/index@edit'"}],attrs:{type:"link"},on:{click:function(t){return a.editWechat(e.corpId)}}},[a._v("修改")])]],2)}}])}),i("a-modal",{attrs:{width:640,visible:a.visible},on:{cancel:function(){t.visible=!1}}},[i("a-form-model",{ref:"ruleForm",attrs:{model:a.wechatDetail,rules:a.rules,"label-col":{span:7},"wrapper-col":{span:12}}},[i("a-form-model-item",{attrs:{label:"企业名称：",prop:"corpName"}},[i("a-input",{attrs:{placeholder:"输入企业微信企业名称"},model:{value:a.wechatDetail.corpName,callback:function(t){a.$set(a.wechatDetail,"corpName",t)},expression:"wechatDetail.corpName"}})],1),i("a-form-model-item",{attrs:{label:"企业ID：",prop:"wxCorpId"}},[i("a-input",{attrs:{maxLength:18,placeholder:"输入企业微信ID"},model:{value:a.wechatDetail.wxCorpId,callback:function(t){a.$set(a.wechatDetail,"wxCorpId",t)},expression:"wechatDetail.wxCorpId"}})],1),i("a-form-model-item",{attrs:{label:"通讯录管理secret：",prop:"employeeSecret"}},[i("a-input",{attrs:{maxLength:43,placeholder:"输入企业通讯录管理secret"},model:{value:a.wechatDetail.employeeSecret,callback:function(t){a.$set(a.wechatDetail,"employeeSecret",t)},expression:"wechatDetail.employeeSecret"}})],1),i("a-form-model-item",{attrs:{label:"外部联系人管理secret：",prop:"contactSecret"}},[i("a-input",{attrs:{maxLength:43,placeholder:"输入外部联系人管理secret"},model:{value:a.wechatDetail.contactSecret,callback:function(t){a.$set(a.wechatDetail,"contactSecret",t)},expression:"wechatDetail.contactSecret"}})],1)],1),i("template",{slot:"footer"},[i("a-button",{key:"submit",attrs:{loading:a.btnLoading,type:"primary"},on:{click:a.saveConfig}},[a._v(" 保存配置 ")]),i("a-button",{key:"back",on:{click:function(){t.visible=!1}}},[a._v(" 关闭 ")])],1)],2),i("a-modal",{attrs:{width:640,visible:a.editVisble},on:{cancel:function(){t.editVisble=!1}}},[i("a-form-model",{ref:"editForm",attrs:{model:a.editWechatDetail,rules:a.rules,"label-col":{span:7},"wrapper-col":{span:12}}},[i("a-form-model-item",{attrs:{label:"企业名称：",prop:"corpName"}},[i("a-input",{attrs:{disabled:a.getDisble},model:{value:a.editWechatDetail.corpName,callback:function(t){a.$set(a.editWechatDetail,"corpName",t)},expression:"editWechatDetail.corpName"}})],1),i("a-form-model-item",{attrs:{label:"企业ID：",prop:"wxCorpId"}},[i("a-input",{attrs:{disabled:a.getDisble},model:{value:a.editWechatDetail.wxCorpId,callback:function(t){a.$set(a.editWechatDetail,"wxCorpId",t)},expression:"editWechatDetail.wxCorpId"}})],1),i("a-form-model-item",{attrs:{label:"通讯录管理secret：",prop:"employeeSecret"}},[i("a-input",{attrs:{disabled:a.getDisble},model:{value:a.editWechatDetail.employeeSecret,callback:function(t){a.$set(a.editWechatDetail,"employeeSecret",t)},expression:"editWechatDetail.employeeSecret"}})],1),i("a-form-model-item",{attrs:{label:"外部联系人管理secret：",prop:"contactSecret"}},[i("a-input",{attrs:{disabled:a.getDisble},model:{value:a.editWechatDetail.contactSecret,callback:function(t){a.$set(a.editWechatDetail,"contactSecret",t)},expression:"editWechatDetail.contactSecret"}})],1),i("a-form-model-item",{attrs:{label:"通讯录事件服务器URL："}},[i("a-input",{attrs:{disabled:a.getDisble||a.editDisble},model:{value:a.editWechatDetail.eventCallback,callback:function(t){a.$set(a.editWechatDetail,"eventCallback",t)},expression:"editWechatDetail.eventCallback"}})],1),i("a-form-model-item",{attrs:{label:"Token："}},[i("a-input",{attrs:{disabled:a.getDisble||a.editDisble},model:{value:a.editWechatDetail.token,callback:function(t){a.$set(a.editWechatDetail,"token",t)},expression:"editWechatDetail.token"}})],1),i("a-form-model-item",{attrs:{label:"EncodingAESKey："}},[i("a-input",{attrs:{disabled:a.getDisble||a.editDisble},model:{value:a.editWechatDetail.encodingAesKey,callback:function(t){a.$set(a.editWechatDetail,"encodingAesKey",t)},expression:"editWechatDetail.encodingAesKey"}})],1),i("a-form-model-item",{attrs:{label:"外部联系人事件服务器URL"}},[i("a-input",{attrs:{disabled:a.getDisble||a.editDisble},model:{value:a.editWechatDetail.eventCallback,callback:function(t){a.$set(a.editWechatDetail,"eventCallback",t)},expression:"editWechatDetail.eventCallback"}})],1)],1),a.getDisble?i("template",{slot:"footer"},[i("a-button",{key:"back",on:{click:function(){t.getDisble=!1,t.editVisble=!1}}},[a._v(" 关闭 ")])],1):a._e(),a.editDisble?i("template",{slot:"footer"},[i("a-button",{key:"submit",attrs:{type:"primary"},on:{click:a.editConfig}},[a._v(" 保存配置 ")]),i("a-button",{key:"back",on:{click:function(){t.editDisble=!1,t.editVisble=!1}}},[a._v(" 关闭 ")])],1):a._e()],2)],1)],1)},s=[],o=e("b775");function n(t){return Object(o["b"])({url:"/corp/index",method:"get",params:t})}function c(t){return Object(o["b"])({url:"/corp/store",method:"post",data:t})}function l(t){return Object(o["b"])({url:"/corp/update",method:"put",data:t})}function r(t){return Object(o["b"])({url:"/corp/show",method:"get",params:t})}var d={name:"WechatAuthorization",data:function(){return{btnLoading:!1,visible:!1,editVisble:!1,columns:[{title:"企业名称",dataIndex:"corpName",align:"center"},{title:"企业ID",dataIndex:"wxCorpId",align:"center"},{title:"绑定时间",dataIndex:"createdAt",align:"center"},{title:"操作",dataIndex:"action",width:"200px",align:"center",scopedSlots:{customRender:"action"}}],tableData:[],searchName:"",wechatDetail:{},editWechatDetail:{},getDisble:!1,editDisble:!1,pagination:{total:0,current:1,pageSize:10,showSizeChanger:!0},rules:{corpName:[{required:!0,message:"请输入企业微信企业名称",trigger:"blur"}],wxCorpId:[{required:!0,message:"请输入企业ID",trigger:"blur"}],employeeSecret:[{required:!0,message:"请输入通讯录管理secret",trigger:"blur"}],contactSecret:[{required:!0,message:"请输入外部联系人管理secret",trigger:"blur"}]}}},created:function(){this.getTableData()},methods:{getTableData:function(){var t=this,a={corpName:this.searchName,page:this.pagination.current,perPage:this.pagination.pageSize};n(a).then((function(a){t.tableData=a.data.list,t.pagination.total=a.data.page.total}))},saveConfig:function(){var t=this;this.$refs.ruleForm.validate((function(a){if(!a)return!1;t.btnLoading=!0,c(t.wechatDetail).then((function(a){t.wechatDetail={},t.visible=!1,t.getTableData(),t.btnLoading=!1})).catch((function(){t.visible=!0,t.btnLoading=!1}))}))},getWechatDetail:function(t){var a=this;this.editVisble=!0,this.getDisble=!0,r({corpId:t}).then((function(t){a.editWechatDetail=t.data}))},editWechat:function(t){var a=this;this.editVisble=!0,this.editDisble=!0,r({corpId:t}).then((function(t){a.editWechatDetail=t.data}))},editConfig:function(){var t=this;this.$refs.editForm.validate((function(a){if(!a)return!1;var e={corpId:t.editWechatDetail.corpId,corpName:t.editWechatDetail.corpName,wxCorpId:t.editWechatDetail.wxCorpId,employeeSecret:t.editWechatDetail.employeeSecret,contactSecret:t.editWechatDetail.contactSecret};t.btnLoading=!0,l(e).then((function(a){t.btnLoading=!1,t.wechatDetail={},t.editVisble=!1,t.editDisble=!1,t.getTableData()})).catch((function(){t.btnLoading=!1,t.editVisble=!0,t.editDisble=!0}))}))},handleTableChange:function(t){var a=t.current,e=t.pageSize;this.pagination.current=a,this.pagination.pageSize=e,this.getTableData()}}},m=d,u=(e("4c2c"),e("2877")),p=Object(u["a"])(m,i,s,!1,null,"f2fab402",null);a["default"]=p.exports},"19ed":function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAABOUlEQVRYR+2Yv04CQRCHv0GtfAM7OmsfwVJ9BQjQ4xtoYWKswMbKRM6ojyDhKfARJCYUxI7CBhLG7BmMkOPP3lziFrvl3e838+1kppgV3GloFeUSKAOl9NuqoyjCB9Aikbu1Wo+fQk1PELoenr/SZlEwQl37wFFOkDHKIY8yyun/tTmQCbBnCPRCIhWDP7U6EDUGcf5rYOwVR5ghvLNDl3uZFgHilT9D3GfCcQggju02FJDPUEA0FJClqRHa7HLBPtZJWt/AXwhTboDzuXCxIiWqPMizdQy28je0hpJkg8AQobdVIKtIOQUOVoFYw+f2B9qsue9jN8aKLNcwViRWZNNcxR6JPRJ7ZFMFsnrEumD55szSp3uNZeUsAsLFeJsv4a/p1vc/x70vnP0k93mWKA52BgwQrujI0zcgDnlb5FNLtwAAAABJRU5ErkJggg=="},3692:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAB2ElEQVQ4T61VMWgUQRR9b+6sNJADqwMrixAIFiEpLUSsJKgYrzGVxe4ilokGLI6rlETsZ2ptTExUUqtoK7YmRZoUJxYHIRYW3u2TiXfruplbD7wp9//3/n/v/5klAsdaewrAdZLXJM0BqPfT2iQ/SXoN4FUcxz+LcBY/OOduSFoHcD5ULPdtn+RKFEXb+byMsNlsmnq9/pjksqQThULkJCXpSbvdXm21WqnPyYDW2jUAK//oalh4PY7j+xmhlwngZbEzST9IPpL0xhjj21kA8ADA6b9kkgJw08tnfwBfAp6lxpgraZp+BHDLE9Rqtc1OpzNvjHkHwA8uf/YBTHtCn/yiqEXSTpIkC9baHQBXfVzS2yRJLjvnNiQtBvQ36Jx7Jul2ILhmjHkq6WvBism+1w9PrAz53He4C2AqQHgI4ADAhUGM5Psoii4557Yked+LZ88THgGYGGG6vvDFXq83XalUvIeVAOb7qITfut3uPIAz1Wr1A4CzQxo4JhwmOY+5C2ADwGcA50rU7JUNJcORXJI0A2C1zBr2hxJcmxE8DaU0yhY7A0i6Q3IWwL2SQr8X2ycMu3o5cIPknKTj+xrYvz9XbxAc6+PgScf+fA06HdsDm/flf34BvwAl4ueZTKHQggAAAABJRU5ErkJggg=="},3925:function(t,a,e){t.exports=e.p+"img/WechatGroup-icon.b155025c.png"},4029:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAmCAYAAADTGStiAAADWklEQVRYR82XWWxMURjHf990GlvEkorlAQ2xRSJifbM0SiRoH0okWjODxlY8SQgawos3KpaKua3lhYotQW2JRER4s4ak4aGIeLBGw2g/OTOtztzOzL23dyS+1/P9/79zzj33O98R3MRsDTKCuQRYgDAdZTQwoF36CWhCeEgbjYzgFrvlt5OtZE0o0170YRPCJmCYk1l8XHiPUkM+B6iVH5k0mcERLUY5Dgx3Beya1EyANZyQ6+n06cEhrQaqEbLviNOMFAX2Uie77KldjcNaA2x08vQ0LhwmKhuSNangkG5H2OfB9BBt1BGgAGEybZTGD1/62IElf707wWGdBdwG8lyD2xhNvTSl5Id1PnAI4ic/OVqBIiy5mziDJio1n988RRnjGmoSlTPkUUuMJk7K27/akPZHOAvMS/ETXhFkIrUSS4AjuhbliCdoarI5RA8QthKVe/Ghcu1DELO6KTb4OqJyVECFMC+AsT7AHVKznVuwxGw1hHQcwhMgmOT9EkvGCWGdEZ9trsL8QsJSLGlo382TKOU2+5kGvBvo8p/5moepXt8YxTlpIaQlCBdsfnuEiDaiFPsCpRMHKOWEXKRSC4jxMSVFuWFW/BoYmXMw7MGS6vYz9BPIT2K8MWBTyHvlHKycok4qMDdbIV+A3kmMFgM2V5j7ouF+hj8R9qNMBEptslYD/gz0c++Xk8yvBvwMmJATO/cmLwzYlLYy95qcZDYIIa1COJgTO/cmm4VyHU4Q80sF3Ot8ZJrKlkdh4pIIaSPyD4pI+vndxJLiBLhC55DHHR/r8CI1d/KdzkYgohdQSrw4dCP3MpYsMbpOcEiHIDwGBnXD0I3kIzEmcVrep4IT33oawlWgwI2Th5wPBFnEcXnUoenaZa7UUQS4Aoz3YJwt9T6/WMYZaU5OSt83l2k/+nIepcgn/Bj5VJkey+6TuWGv0h58x7wCZncTvhdLdmbSZn8pLNfB9OQ5MNATXLhIVOw3UoqF8xNlla5HbW2q0yxa2UG9mMsnYziDnSDdHP+PwWFdHe8kvISyDUuO+dvqiG5A428h92Ee8lExr04f3ziii1EuuafGL9hEa+sLbB50MUypm+QKbup9kKnpioZz5bITVuhQgtQgLMzSCrcA1xCqiMo7p0n+Acix54mbQPkUAAAAAElFTkSuQmCC"},"4c2c":function(t,a,e){"use strict";e("c892")},"76ea":function(t,a,e){t.exports=e.p+"img/memberGroup-icon.85869262.png"},9241:function(t,a,e){t.exports=e.p+"img/customer-icon.58bbf8c3.png"},a979:function(t,a,e){t.exports=e.p+"img/optBtn-two.6ed3740b.png"},c7d2:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABhklEQVQ4T62VPS9EURCGnyEqJAqVRKUQiSiEUiGikg2CbaiUovSV+AHEil9B45tsbYVWtCg0CqITCoXEyFxn18ndc+/exE55ZuadmXc+jhAQVW0CJoBxYADocGbPwA1wBpyKyFfcXeIPqjoJFICuUDDv7RFYFpET364CqKoNwCawBFQFSgBXYBtYE5Fvs/EBtyxijayS1AURWakAujKPApl9AhvAudPlgFWgOYZsmU5Z+eIacBfgzEoYBa6BGQdwCAwCJcAa54tx2mOAZrwfqKUoIjlVLQJjTn8hIiOqegBMB3zyBrgLzAaUxukO8BKjos1xvR7w2TPAe6A7oHwDnoA+T3cpIsOqegzYeMXlwQDfgdYM3bXAQ8aT47Ax4PORFfDVNaMFuALaExKIAJNK9n0WAGvELdCZUk1UclJTfL85oNc2ogY1UVOSxiYDrVUm0djYgIYG27eeB/qBxZQov4NtBimrV/bPuzMW7WtA/lavrFTV+h0Hl2V9z5eXaX0OrM/Lf76AH4h8k4e0mHucAAAAAElFTkSuQmCC"},c892:function(t,a,e){},d36b:function(t,a,e){t.exports=e.p+"img/enterpriseMembers-icon.1d1bfd97.png"},d3ca:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"wrapper"},[i("div",{staticClass:"left"},[i("a-card",[i("div",{staticClass:"data-box"},[i("p",[t._v("总数据，本月数据，今日数据 每10分钟更新")]),i("div",{staticClass:"data"},[i("div",[i("img",{attrs:{src:e("9241"),alt:""}}),i("div",{staticClass:"content"},[i("span",[t._v(t._s(t.weChatContactNum))]),i("div",[i("span",[t._v("总微信客户数")]),i("img",{attrs:{src:e("3692"),alt:""}})])])]),i("div",[i("img",{attrs:{src:e("3925"),alt:""}}),i("div",{staticClass:"content"},[i("span",[t._v(t._s(t.weChatRoomNum))]),i("div",[i("span",[t._v("总微信群数")]),i("img",{attrs:{src:e("3692"),alt:""}})])])]),i("div",[i("img",{attrs:{src:e("76ea"),alt:""}}),i("div",{staticClass:"content"},[i("span",[t._v(t._s(t.roomMemberNum))]),i("div",[i("span",[t._v("总群成员数")]),i("img",{attrs:{src:e("3692"),alt:""}})])])]),i("div",[i("img",{attrs:{src:e("d36b"),alt:""}}),i("div",{staticClass:"content"},[i("span",[t._v(t._s(t.corpMemberNum))]),i("div",[i("span",[t._v("总企业成员数")]),i("img",{attrs:{src:e("3692"),alt:""}})])])])])]),i("div",{staticClass:"chart-box"},[i("p",[t._v("实施概况"),i("span",[t._v("更新时间："+t._s(t.updateTime))])]),i("div",{staticClass:"chart-data"},[i("div",[i("span",{staticClass:"title"},[t._v("新增客户数")]),i("span",{staticClass:"num"},[t._v(t._s(t.addContactNum))]),i("span",{staticClass:"old"},[t._v("昨日："+t._s(t.lastAddContactNum))])]),i("div",[i("span",{staticClass:"title"},[t._v("新增入群数")]),i("span",{staticClass:"num"},[t._v(t._s(t.addIntoRoomNum))]),i("span",{staticClass:"old"},[t._v("昨日："+t._s(t.lastAddIntoRoomNum))])]),i("div",[i("span",{staticClass:"title"},[t._v("流失客户数")]),i("span",{staticClass:"num"},[t._v(t._s(t.lossContactNum))]),i("span",{staticClass:"old"},[t._v("昨日："+t._s(t.lastLossContactNum))])]),i("div",[i("span",{staticClass:"title"},[t._v("退群人数")]),i("span",{staticClass:"num"},[t._v(t._s(t.quitRoomNum))]),i("span",{staticClass:"old"},[t._v("昨日："+t._s(t.lastQuitRoomNum))])])]),t.statisticsShow?i("div",{staticClass:"chart-content"},[i("v-chart",{ref:"chars",staticStyle:{width:"100%"},attrs:{options:t.options}})],1):t._e(),i("div",{staticClass:"card-box"},[i("div",{staticClass:"card-one card-all"},[i("div",{staticClass:"card-left"},[i("span",{staticClass:"card-title"},[t._v("本月新增好友数"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"card-num"},[t._v(t._s(t.addFriendsNum))]),i("span",{staticClass:"card-add"},[t._v("上月累计新增"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"add-num"},[t._v(t._s(t.lastAddFriendsNum))])]),i("div",{staticClass:"card-right"},[i("div",[i("span",[t._v("新增好友")])])])]),i("div",{staticClass:"card-two card-all"},[i("div",{staticClass:"card-left"},[i("span",{staticClass:"card-title"},[t._v("本月新增社群数"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"card-num"},[t._v(t._s(t.monthAddRoomNum))]),i("span",{staticClass:"card-add"},[t._v("上月累计新增"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"add-num"},[t._v(t._s(t.lastMonthAddRoomNum))])]),i("div",{staticClass:"card-right"},[i("div",[i("span",[t._v("新增社群")])])])]),i("div",{staticClass:"card-three card-all"},[i("div",{staticClass:"card-left"},[i("span",{staticClass:"card-title"},[t._v("本月新增群成员"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"card-num"},[t._v(t._s(t.monthAddRoomMemberNum))]),i("span",{staticClass:"card-add"},[t._v("上月累计新增"),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"add-num"},[t._v(t._s(t.lastMonthAddRoomMemberNum))])]),i("div",{staticClass:"card-right"},[i("div",[i("span",[t._v("新增群成员")])])])]),i("div",{staticClass:"card-four card-all"},[i("div",{staticClass:"card-left"},[i("span",{staticClass:"card-title"},[t._v("本月流失客户数 "),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"card-num"},[t._v(t._s(t.monthLossContactNum))]),i("span",{staticClass:"card-add"},[t._v("上月累计新增 "),i("img",{attrs:{src:e("c7d2"),alt:""}})]),i("span",{staticClass:"add-num"},[t._v(t._s(t.lastMonthLossContactNum))])]),i("div",{staticClass:"card-right"},[i("div",[i("span",[t._v("流失客户")])])])])])])]),i("a-card",{staticStyle:{marginTop:"12px"},attrs:{title:"常用功能"}},[i("div",{staticClass:"opt-box"},[i("div",{staticClass:"opt-content",on:{click:function(a){return t.routerPush("one")}}},[i("img",{attrs:{src:e("fc1d"),alt:""}}),i("div",[i("p",[t._v("客户群发")]),i("span",[t._v("了解和客户群发相关的限制")])])]),i("div",{staticClass:"opt-content",on:{click:function(a){return t.routerPush("two")}}},[i("img",{attrs:{src:e("a979"),alt:""}}),i("div",[i("p",[t._v("渠道活码")]),i("span",[t._v("了解渠道活码的功能和使用")])])]),i("div",{staticClass:"opt-content",on:{click:function(a){return t.routerPush("three")}}},[i("img",{attrs:{src:e("e448"),alt:""}}),i("div",[i("p",[t._v("群管理")]),i("span",[t._v("统一管理企业客户群")])])])])])],1),i("div",{staticClass:"right"},[i("a-card",[i("div",{staticClass:"QR-code"},[i("p",{staticClass:"title"},[t._v("MoChat企业微信开源框架")]),i("div",{staticClass:"edition-box"},[i("span",{staticClass:"msg"},[t._v("版本信息：")]),i("span",{staticClass:"edition"},[t._v(t._s(t.license.licenseType)+"版")])]),i("span",{staticClass:"red"},[t._v(t._s(t.license.licenseNote))]),i("div",{staticClass:"code-img"},[i("img",{attrs:{src:t.licenseContactLink,alt:""}})]),i("span",{staticClass:"code-detail"},[t._v("—扫描上方二维码可购买终身商业授权—")])])]),i("a-card",{staticStyle:{marginTop:"13px"},attrs:{title:"入门指引"}},[i("div",{staticClass:"btn-box"},[i("div",[i("a",{attrs:{href:t.guide.docLink,target:"_blank"}},[i("img",{attrs:{src:e("19ed"),alt:""}}),i("span",[t._v("开发文档")])])]),i("div",[i("a",{attrs:{href:t.guide.faqLink,target:"_blank"}},[i("img",{attrs:{src:e("4029"),alt:""}}),i("span",[t._v("帮助中心")])])])])]),i("a-card",{staticStyle:{marginTop:"13px"},attrs:{title:"更新日志"}},t._l(t.newsList,(function(a){return i("div",{key:a.id,staticClass:"list"},[i("div",[i("span",[t._v(t._s(a.title))]),i("span",[t._v(t._s(a.createdAt))])])])})),0)],1)])},s=[],o=(e("d81d"),e("b0c0"),e("b775"));function n(t){return Object(o["b"])({url:"/corpData/index",method:"get",params:t})}function c(t){return Object(o["b"])({url:"/corpData/lineChat",method:"get",params:t})}function l(t){return Object(o["c"])({url:"/external/tenantIndex",method:"get",params:t})}var r={data:function(){return{weChatContactNum:"",weChatRoomNum:"",roomMemberNum:"",corpMemberNum:"",addContactNum:"",lastAddContactNum:"",addIntoRoomNum:"",lastAddIntoRoomNum:"",lossContactNum:"",lastLossContactNum:"",quitRoomNum:"",lastQuitRoomNum:"",addFriendsNum:"",lastAddFriendsNum:"",monthAddRoomNum:"",lastMonthAddRoomNum:"",monthLossContactNum:"",lastMonthLossContactNum:"",monthAddRoomMemberNum:"",lastMonthAddRoomMemberNum:"",updateTime:"",statisticsShow:!0,options:{dataZoom:{type:"inside",show:!0,start:0,end:100},tooltip:{trigger:"axis"},legend:{top:15,data:["新增客户数","新增入群数","流失客户","退群人数"]},grid:{left:"10%",right:"10%",bottom:"20%",width:"80%"},xAxis:{type:"category",boundaryGap:!1,data:[],axisLabel:{interval:2,rotate:0,color:"blue",margin:20}},yAxis:{type:"value"},series:[{name:"新增客户数",type:"line",data:[],itemStyle:{normal:{color:"#094FFF",lineStyle:{color:"#094FFF"}}}},{name:"新增入群数",type:"line",data:[],itemStyle:{normal:{color:"#FF7777",lineStyle:{color:"#FF7777"}}}},{name:"流失客户",type:"line",data:[],itemStyle:{normal:{color:"#50C520",lineStyle:{color:"#50C520"}}}},{name:"退群人数",type:"line",data:[],itemStyle:{normal:{color:"#FFAC02",lineStyle:{color:"#FFAC02"}}}}]},license:{},licenseContactLink:"",newsList:[],guide:{}}},created:function(){this.getData(),this.getLineChat(),this.getRightData()},methods:{getData:function(){var t=this;n().then((function(a){var e=a.data,i=e.addContactNum,s=e.addFriendsNum,o=e.addIntoRoomNum,n=e.corpMemberNum,c=e.lastAddContactNum,l=e.lastAddFriendsNum,r=e.lastAddIntoRoomNum,d=e.lastLossContactNum,m=e.lastMonthAddRoomMemberNum,u=e.lastMonthAddRoomNum,p=e.lastMonthLossContactNum,h=e.lastQuitRoomNum,v=e.lossContactNum,b=e.monthAddRoomMemberNum,g=e.monthAddRoomNum,C=e.monthLossContactNum,A=e.quitRoomNum,f=e.roomMemberNum,N=e.weChatContactNum,D=e.weChatRoomNum,w=e.updateTime;t.addContactNum=i||0,t.addFriendsNum=s||0,t.addIntoRoomNum=o||0,t.corpMemberNum=n||0,t.lastAddContactNum=c||0,t.lastAddFriendsNum=l||0,t.lastAddIntoRoomNum=r||0,t.lastLossContactNum=d||0,t.lastMonthAddRoomMemberNum=m||0,t.lastMonthAddRoomNum=u||0,t.lastMonthLossContactNum=p||0,t.lastQuitRoomNum=h||0,t.lossContactNum=v||0,t.monthAddRoomMemberNum=b||0,t.monthAddRoomNum=g||0,t.monthLossContactNum=C||0,t.quitRoomNum=A||0,t.roomMemberNum=f||0,t.weChatContactNum=N||0,t.weChatRoomNum=D||0,t.updateTime=w}))},routerPush:function(t){"two"==t?this.$router.push("/channelCode/index"):"three"==t&&this.$router.push("/workRoom/index")},getLineChat:function(){var t=this,a=[];c().then((function(e){a=e.data;var i=[],s=[],o=[],n=[],c=[];return a.map((function(t){c.push(t.date.substr(5,5)),i.push(t.addContactNum),s.push(t.addIntoRoomNum),o.push(t.lossContactNum),n.push(t.quitRoomNum)})),t.options.xAxis.data=c,t.options.series=t.options.series.map((function(t){return"新增客户数"==t.name?t.data=i:"新增入群数"==t.name?t.data=s:"流失客户"==t.name?t.data=o:"退群人数"==t.name&&(t.data=n),t})),!0}))},getRightData:function(){var t=this;l({domain:"mo.chat"}).then((function(a){var e=a.data,i=e.license,s=e.licenseContactLink,o=e.news,n=e.guide;t.newsList=o,t.license=i,t.licenseContactLink=s,t.guide=n}))}}},d=r,m=(e("e7c8"),e("2877")),u=Object(m["a"])(d,i,s,!1,null,"4a46fb8c",null);a["default"]=u.exports},e448:function(t,a,e){t.exports=e.p+"img/optBtn-three.1f81a3e8.png"},e7c8:function(t,a,e){"use strict";e("ee10")},ee10:function(t,a,e){},fc1d:function(t,a,e){t.exports=e.p+"img/optBtn-one.bff2a0cc.png"}}]);