| 1 |
- import{u as n,Y as i,C as l}from"./index-DBrmD77u.js";import{d as u,u as p,b as c,G as a,Z as d,j as m,o as _,w as f,i as b,q as s,P as g}from"./index-DFW-5xlA.js";import"./index-BEbyJWLV.js";import"./index-DRnl-q4k.js";const B=u({__name:"index",setup(h){const{t:w}=p(),r=c(),{register:o}=n({title:"客服对接记录",api:a.kefuLog,showSelection:!1,showIndex:!1,showAction:!0,immediate:!0,columns:[{prop:"avatar",label:"用户头像",isImage:!0,width:100,align:"center"},{prop:"user_id",label:"用户ID"},{prop:"realname",label:"用户名"},{prop:"cs_name",label:"客服昵称"},{prop:"status",label:"是否结束",tagEnums:i,align:"center"},{prop:"created_at",label:"对接开始时间",width:140},{prop:"updated_at",label:"对接结束时间",width:140}],schema:[{label:"用户昵称/用户名/手机号",prop:"name",type:"input"},{label:"用户ID",prop:"user_id",type:"input"}],actionProps:{btnList:[{label:"转接",click:e=>{d.confirm("确认是否转接?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{a.kefuTransferChat({user_id:e.row.user_id,cs_uid:e.row.cs_uid}).then(t=>{r.push("/ServiceSupervision")})})},disabledFn(e){let t=JSON.parse(localStorage.getItem("zjxc_session_userInfo"));return e.cs_uid===t.id}}]}});return(e,t)=>(_(),m(g,null,{default:f(()=>[b(s(l),{onRegister:s(o)},null,8,["onRegister"])]),_:1}))}});export{B as default};
|