index-DSeSnYKR.js 1.4 KB

1
  1. import{u as n,Y as l,C as i}from"./index-Buoe1jy2.js";import{d as u,u as p,b as c,G as a,Z as d,j as _,o as m,w as f,i as b,q as s,P as g}from"./index-DO3_MgXM.js";import"./index-B18JrQLk.js";import"./index-wt86IUuQ.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:l,align:"center"},{prop:"created_at",label:"对接开始时间",width:140},{prop:"updated_at",label:"对接结束时间",width:140}],schema:[{label:"用户昵称/用户ID",prop:"keyword",type:"input"},{label:"客服昵称",prop:"cs_name",type:"input"}],actionProps:{btnList:[{label:"转接",click:e=>{d.confirm("确认是否转接?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{let t=JSON.parse(localStorage.getItem("zjxc_session_userInfo"));a.kefuTransferChat({user_id:e.row.user_id,cs_uid:t.user_id}).then(I=>{r.push("/ServiceSupervision")})})},disabledFn(e){let t=JSON.parse(localStorage.getItem("zjxc_session_userInfo"));return e.cs_uid===t.user_id}}]}});return(e,t)=>(m(),_(g,null,{default:f(()=>[b(s(i),{onRegister:s(o)},null,8,["onRegister"])]),_:1}))}});export{B as default};