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-gyz1IdHU.js";import{render as c}from"./renderUtils-BcsccCoe.js";import{b3 as v,h as d,u as K}from"./index-Cy4uayzW.js";import{useListPage as M}from"./useListPage-TMORxSEa.js";import{Q as P}from"./componentMap-0iK4HQBq.js";import B from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-tDBMxW9-.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
