(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{414:function(e,t,r){},476:function(e,t,r){"use strict";var n=r(414);r.n(n).a},538:function(e,t,r){"use strict";r.r(t);r(30);var n=r(3),o={data:function(){return{activeTabName:"first",pageDev:1,pageCom:1,devChatUsers:"",comChatUsers:""}},mounted:function(){this.getDevChatUsers(),this.getComChatUsers()},methods:{getDevChatUsers:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,data,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.pageDev,2,data={page:r,homePageType:2},t.next=5,e.$post("/api/admin/chat/chatUsers",data);case 5:(n=t.sent)&&1===n.status&&(e.devChatUsers=n.data,console.log(e.devChatUsers));case 7:case"end":return t.stop()}}),t)})))()},getComChatUsers:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,data,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.pageCom,1,data={page:r,homePageType:1},t.next=5,e.$post("/api/admin/chat/chatUsers",data);case 5:(n=t.sent)&&1===n.status&&(e.comChatUsers=n.data,console.log(e.comChatUsers));case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChangeCom:function(e){this.pageCom=e,this.getComChatUsers()},handleCurrentChangeDev:function(e){this.pageDev=e,this.getDevChatUsers()},goCompany:function(e){window.open(this.$store.state.domainConfig.siteUrl+"/company/".concat(e.uid))},goRooterUser:function(){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(row.uid))}}},l=(r(476),r(2)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},[r("el-tab-pane",{attrs:{label:"企业方",name:"first"}},[r("div",[e.comChatUsers&&e.comChatUsers.list?r("div",{staticClass:"content"},[r("el-table",{attrs:{data:e.comChatUsers.list,border:""}},[r("el-table-column",{attrs:{className:"clickable",prop:"username",label:"企业名称",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{on:{click:function(r){return e.goCompany(t.row)}}},[e._v(e._s(t.row.username))])]}}],null,!1,4168530804)}),e._v(" "),r("el-table-column",{attrs:{prop:"lastChatTimeFormat",label:"最近聊天",width:"160"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalChatTime",label:"总计聊天时长",width:"160"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalChatUsers",label:"总计聊天用户数",width:"120"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalSendMessage",label:"总计发送消息数",width:"120"}})],1)],1):e._e(),e._v(" "),r("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:Number(e.comChatUsers.total)},on:{"current-change":e.handleCurrentChangeCom}})],1)]),e._v(" "),r("el-tab-pane",{attrs:{label:"开发者",name:"second"}},[r("div",[e.devChatUsers&&e.devChatUsers.list?r("div",{staticClass:"content"},[r("el-table",{attrs:{data:e.devChatUsers.list,border:""}},[r("el-table-column",{attrs:{className:"clickable",prop:"username",label:"开发者名称",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{on:{click:function(r){return e.goRooterUser(t.row)}}},[e._v(e._s(t.row.username))])]}}],null,!1,385225651)}),e._v(" "),r("el-table-column",{attrs:{prop:"lastChatTimeFormat",label:"最近聊天",width:"160"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalChatTime",label:"总计聊天时长",width:"160"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalChatUsers",label:"总计聊天用户数",width:"120"}}),e._v(" "),r("el-table-column",{attrs:{prop:"totalSendMessage",label:"总计发送消息数",width:"120"}})],1)],1):e._e(),e._v(" "),r("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:Number(e.devChatUsers.total)},on:{"current-change":e.handleCurrentChangeDev}})],1)])],1)}),[],!1,null,"1f12ae96",null);t.default=component.exports}}]);