(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ccfa9"],{"4fde":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"开始日期",prop:"startDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择开始日期","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.queryParams.startDate,callback:function(t){e.$set(e.queryParams,"startDate",t)},expression:"queryParams.startDate"}})],1),a("el-form-item",{attrs:{label:"结束日期",prop:"endDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择结束日期","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.queryParams.endDate,callback:function(t){e.$set(e.queryParams,"endDate",t)},expression:"queryParams.endDate"}})],1),a("el-form-item",{attrs:{label:"成员ID",prop:"userid"}},[a("el-input",{attrs:{placeholder:"请输入成员ID",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userid,callback:function(t){e.$set(e.queryParams,"userid",t)},expression:"queryParams.userid"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:customerContact:export"],expression:"['wecom:customerContact:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.dataList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"ID",align:"center",prop:"id",width:"80"}}),a("el-table-column",{attrs:{label:"日期",align:"center",prop:"statDate",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.statDate,"{y}-{m}-{d}")))])]}}])}),a("el-table-column",{attrs:{label:"成员ID",align:"center",prop:"userid",width:"150","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{label:"新增客户数",align:"center",prop:"newContactCnt",width:"120"}}),a("el-table-column",{attrs:{label:"聊天总数",align:"center",prop:"chatCnt",width:"100"}}),a("el-table-column",{attrs:{label:"发送消息数",align:"center",prop:"messageCnt",width:"120"}}),a("el-table-column",{attrs:{label:"已回复聊天占比",align:"center",prop:"replyPercentage",width:"140"}}),a("el-table-column",{attrs:{label:"平均首次回复时长",align:"center",prop:"avgReplyTime",width:"150"}}),a("el-table-column",{attrs:{label:"删除/拉黑客户数",align:"center",prop:"negativeFeedbackCnt",width:"150"}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},n=[],l=a("5530"),i=(a("d81d"),a("d3b7"),a("0643"),a("a573"),a("b775"));function o(e){return Object(i["a"])({url:"/wecom/customerContact/list",method:"get",params:e})}var s={name:"CustomerContact",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,dataList:[],queryParams:{pageNum:1,pageSize:10,startDate:void 0,endDate:void 0,userid:void 0}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,o(this.queryParams).then((function(t){e.dataList=t.rows,e.total=t.total,e.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleExport:function(){this.download("/wecom/customerContact/export",Object(l["a"])({},this.queryParams),"客户联系统计数据_".concat((new Date).getTime(),".xlsx"))}}},c=s,u=a("2877"),d=Object(u["a"])(c,r,n,!1,null,null,null);t["default"]=d.exports}}]);