| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-70b7"],{"2P9r":function(t,e,a){},e6E7:function(t,e,a){"use strict";var i=a("l0n3");a.n(i).a},fPtb:function(t,e,a){"use strict";var i=a("2P9r");a.n(i).a},l0n3:function(t,e,a){},phjf:function(t,e,a){"use strict";a.r(e);var i=a("2gMQ"),n={props:["relation_dialog","group_id"],data:function(){return{keyword:"",table_data:[],total:1,current_page:1}},mounted:function(){},methods:{open:function(){this.getDataList()},bind:function(t,e,a){var i=this,n={wewhat_kf:{open_kfid:t,name:e,avatar:a},group_id:this.group_id};$http.pc_post("plugin/YunChat/bindWhatKf",n,"loading").then(function(t){t.result?(i.refresh(),i.$message.success(t.msg)):i.$message({message:t.msg,type:"error"})})},keywordSearch:function(){this.getDataList()},search:function(t){this.current_page=t,this.getDataList()},close:function(){this.current_page=1,this.$emit("close")},getDataList:function(){var t=this,e={page:this.current_page,keyword:this.keyword,per_page:15};$http.pc_post("plugin/YunChat/getWechatKfAccount",e,"loading").then(function(e){e.result?(t.table_data=e.data.list,t.total=e.data.count,t.current_page=e.data.page):t.$message({message:e.msg,type:"error"})},function(e){t.$message({message:e.msg,type:"error"})})},refresh:function(){this.$emit("refresh")}},computed:{showDialog:{get:function(){return this.relation_dialog},set:function(){}}},components:{}},s=(a("e6E7"),a("KHd+")),o=Object(s.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e},close:t.close,open:t.open}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v("关联企业微信客服")])])]),t._v(" "),a("div",[a("el-input",{staticStyle:{width:"30%"},attrs:{placeholder:"账号名称"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),a("el-button",{staticStyle:{color:"#fff",backgroundColor:"#29ba9c"},on:{click:t.keywordSearch}},[t._v("搜索")])],1),t._v(" "),a("el-table",{attrs:{data:t.table_data}},[a("el-table-column",{attrs:{label:"客户账号",width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},[a("img",{staticStyle:{"margin-right":"15px"},attrs:{src:e.row.avatar,width:"20px",height:"20px",alt:""}}),t._v(" "),a("span",[t._v(t._s(e.row.name))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"关联",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-connection",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(a){t.bind(e.row.open_kfid,e.row.name,e.row.avatar)}}})]}}])})],1),t._v(" "),t.total>0?a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.total,"page-size":15,"current-page":t.current_page},on:{"current-change":t.search}})],1):t._e()],1)],1)},[],!1,null,"42c0466c",null);o.options.__file="Customer_service_dialog.vue";var l=o.exports,r={data:function(){return{list:[],detail_form:{id:0,name:""},detail_show:!1,areaLoading:!1,total:0,saving:!1,relation_dialog:!1,group_id:"",WechatKfStatus:""}},created:function(){},mounted:function(){this.getData(),this.getWechatKfStatus()},components:{yun_service_side:i.a,CustomerServiceDialog:l},methods:{getWechatKfStatus:function(){var t=this;$http.pc_post("plugin/YunChat/getWechatKfSet",{},"loading").then(function(e){e.result?t.WechatKfStatus=e.data.WechatKf_is_open:t.$message.error(e.msg)})},switchChange:function(t){var e=this,a={group_id:t};$http.pc_post("plugin/YunChat/changeWechatKfStatus",a,"loading").then(function(t){t.result?e.$message.success(t.msg):e.$message.error(t.msg),e.getData()})},openRelation:function(t){this.group_id=t,this.relation_dialog=!0},refresh:function(){this.relation_dialog=!1,this.getData()},getData:function(){var t=this;$http.pc_post("plugin/YunChat/groupGetList").then(function(e){e.result?(t.list=e.data,t.total=t.list?t.list.length:0):t.$message({message:e.msg,type:"error"})},function(e){t.$message({message:e.msg,type:"error"})})},deleteItem:function(t){var e=this,a={id:t};this.$confirm("确定删除这条数据?").then(function(){$http.pc_post("plugin/YunChat/groupDelete",a,"loading").then(function(t){t.result?e.$message({type:"success",message:"操作成功!"}):e.$message({type:"error",message:t.msg}),e.getData()},function(t){e.$message({type:"error",message:t.msg})})})},addShow:function(){this.detail_show=!0},editShow:function(t){this.detail_show=!0,this.detail_form=t},save:function(){var t=this;if(!this.saving){var e={name:this.detail_form.name};this.detail_form.name?(this.saving=!0,this.detail_form.id&&(e.id=this.detail_form.id),$http.pc_post("plugin/YunChat/groupSave",e,"loading").then(function(e){e.result?(t.getData(),t.$message({type:"success",message:e.msg})):t.$message({type:"error",message:e.msg}),t.detail_show=!1,t.detail_form={id:0,name:""},setTimeout(function(){t.saving=!1},500)},function(e){t.$message({type:"error",message:e.msg}),t.detail_show=!1,t.detail_form={id:0,name:""},t.saving=!1})):this.$message.error("请输入名称1111")}},copy:function(t){if(""==t)this.$message.error("链接内容为空");else{var e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),document.body.removeChild(e),this.$message.success("复制成功")}}}},c=(a("fPtb"),Object(s.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("yun_service_side",{attrs:{defaultActive:"service"}}),t._v(" "),a("div",{attrs:{id:"app"}},[a("div",{staticClass:"vue-crumbs"},[t._v("\n 在线客服 > 客服组管理\n ")]),t._v(" "),a("div",{staticClass:"vue-head"},[a("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v("客服组管理")]),t._v(" "),a("div",{staticClass:"vue-main-title-button"},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"small"},on:{click:t.addShow}},[t._v("添加客服组")])],1)]),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"vue-main"},[a("div",{staticClass:"vue-main-form"},[a("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content",staticStyle:{flex:"0 0 90px"}},[t._v("\n 客服组列表\n ")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","font-size":"12px",color:"#999"}},[a("span",[t._v("客服组总数:"+t._s(t.total))]),t._v(" \n ")]),t._v(" "),a("div",{staticClass:"vue-main-title-button"})]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"ID",align:"center",prop:"id",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"客服组名称",align:"center",prop:"display_order",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("div",{staticClass:"vue-ellipsis",staticStyle:{"line-height":"32px"}},[t._v("\n "+t._s(e.row.name)+"\n ")])])]}}])}),t._v(" "),t.WechatKfStatus?a("el-table-column",{attrs:{label:"企业微信客服账号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.wechatkf_id?a("div",[a("span",[t._v(t._s(e.row.wechatkf_name))]),t._v(" "),a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer"},on:{click:function(a){t.openRelation(e.row.id)}}},[t._v("更换")])]):a("div",[a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer"},on:{click:function(a){t.openRelation(e.row.id)}}},[t._v("关联")])])]}}])}):t._e(),t._v(" "),t.WechatKfStatus?a("el-table-column",{attrs:{label:"企业客服微信",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){t.switchChange(e.row.id)}},model:{value:e.row.wechatkf_is_open,callback:function(a){t.$set(e.row,"wechatkf_is_open",a)},expression:"scope.row.wechatkf_is_open"}})]}}])}):t._e(),t._v(" "),a("el-table-column",{attrs:{label:"接入链接",align:"center",prop:"display_order"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer"},on:{click:function(a){t.copy(e.row.h5_page_url)}}},[t._v("H5链接")]),t._v(" "),a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer","margin-left":"15px"},on:{click:function(a){t.copy(e.row.mini_url)}}},[t._v("微信小程序链接")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_time",label:"操作",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-dropdown",{attrs:{trigger:"click"}},[a("span",{staticClass:"el-dropdown-link"},[a("el-button",{attrs:{size:"small"}},[t._v("操作")])],1),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(a){t.editShow(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-dropdown-item",{nativeOn:{click:function(a){t.deleteItem(e.row.id)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),a("el-dialog",{attrs:{visible:t.detail_show,width:"750px",title:"客服组信息"},on:{"update:visible":function(e){t.detail_show=e}}},[a("div",{staticStyle:{height:"300px",overflow:"auto"},attrs:{id:"cancel-send"}},[a("el-form",{ref:"add_form",attrs:{model:t.detail_form,"label-width":"15%"}},[a("el-form-item",{attrs:{label:"客服组名称",prop:""}},[a("el-input",{staticStyle:{width:"70%"},model:{value:t.detail_form.name,callback:function(e){t.$set(t.detail_form,"name",e)},expression:"detail_form.name"}})],1)],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.detail_show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:t.saving},on:{click:function(e){t.save()}}},[t._v("保存\n ")])],1)]),t._v(" "),a("CustomerServiceDialog",{attrs:{relation_dialog:t.relation_dialog,group_id:t.group_id},on:{close:function(e){t.relation_dialog=!1},refresh:t.refresh}})],1)])])],1)},[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",[t._v("从客服组页面链接访问的用户分配客服规则:")]),t._v(" "),a("p",[t._v("\n 1、该客服组内之前聊过客服,并且客服是正常状态,分配给之前聊过的客服\n ")]),t._v(" "),a("p",[t._v("2、该客服组内之前聊过客服,客服是禁用状态,随机分配新的客服")]),t._v(" "),a("p",[t._v("3、该客服组内之前没有聊过客服,随机分配新的客服")]),t._v(" "),a("p",[t._v("4、配置企业微信客服并开启后,用户在移动端(公众号、H5、小程序、APP)发起客服咨询,将自动调用企业微信客服;微信小程序端和企业微信未关联的,则跳转系统默认客服咨询页面")])])}],!1,null,"683d0f34",null));c.options.__file="group_list.vue";e.default=c.exports}}]);
|