var b=Object.defineProperty,k=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var a=(t,e,o)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,p=(t,e)=>{for(var o in e||(e={}))y.call(e,o)&&a(t,o,e[o]);if(m)for(var o of m(e))C.call(e,o)&&a(t,o,e[o]);return t},l=(t,e)=>k(t,I(e));import{d as u,a2 as R,ad as S,af as L,k as T,u as i}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{render as c}from"./renderUtils-BgFeePLc.js";import{b3 as v,h as d,u as K}from"./index-CLZzJyTP.js";import{useListPage as M}from"./useListPage-CevWQ3ci.js";import{Q as P}from"./componentMap-DpsJvoqz.js";import B from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-C7yPiS0L.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const F=[{title:"用户账号",align:"center",dataIndex:"username",customRender:({text:t,record:e})=>{let o=v();return e.token===o?t+"（我）":t}},{title:"用户姓名",align:"center",dataIndex:"realname"},{title:"头像",align:"center",width:120,dataIndex:"avatar",customRender:c.renderAvatar},{title:"生日",align:"center",dataIndex:"birthday"},{title:"性别",align:"center",dataIndex:"sex",customRender:({text:t})=>c.renderDict(t,"sex")},{title:"手机号",align:"center",dataIndex:"phone"}],X=[{field:"username",label:"用户账号",component:"Input",colProps:{span:6}}];const A=t=>d.get({url:"/sys/online/list",params:t}),D=t=>d.post({url:"/sys/online/forceLogout",params:t},{isTransformResponse:!1}),E=u({name:"online-user"}),qt=u(l(p({},E),{setup(t){const{prefixCls:e,tableContext:o,onImportXls:H,onExportXls:N}=M({designScope:"online-user",tableProps:{rowKey:"token",title:"在线用户",api:A,columns:F,formConfig:{schemas:X},actionColumn:{width:120},rowSelection:null}}),[f,{reload:g},{rowSelection:x,selectedRowKeys:Q}]=o,s=K();function h(r){return[{label:"强退",popConfirm:{title:"强制退出用户？",confirm:_.bind(null,r)}}]}function _(r){D({token:r.token}).then(n=>{n.success?(g(),s.createMessage.success("强制退出用户”"+r.realname+"“成功！")):s.createMessage.warn(n.message)})}return(r,n)=>(R(),S(i(B),{onRegister:i(f),rowSelection:i(x)},{action:L(({record:w})=>[T(i(P),{actions:h(w)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]))}}));export{qt as default};
