LeftUser-dd4b10e2-DnzkwJ3i.js 3.1 KB

1
  1. import{d as f,ag as w,aB as h,ar as g,aD as b,at as S}from"./vue-vendor-Be68asQ6.js";import{co as y,j as T}from"./index-BFfnEkVs.js";import"./index-D2G57Sln.js";import{useListPage as x}from"./useListPage-aOfrd-Tw.js";import C from"./BasicTable-CuSLkXEu.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./componentMap-BUTAcOmo.js";import"./useFormItem-CtGMPcLp.js";import"./index-CETWS1o0.js";import"./BasicModal-D4gc2R81.js";import"./useTimeout-Ca5eqGu-.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JAddInput-BBXQvvpq.js";import"./areaDataUtil-Cik-Rc_P.js";import"./index-BOEzG86y.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./depart.api-CDwTvdwQ.js";import"./JSelectDept-DT6g7V5M.js";import"./JPopup-DKJW27Yk.js";import"./JEllipsis-C04xKxcI.js";import"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./JCodeEditor-CSivhUhT.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./EasyCronInput-wCv2YMHn.js";import"./injectionKey-DPVn4AgL.js";var R=(i,r,o)=>new Promise((a,m)=>{var s=e=>{try{n(o.next(e))}catch(t){m(t)}},p=e=>{try{n(o.throw(e))}catch(t){m(t)}},n=e=>e.done?a(e.value):Promise.resolve(e.value).then(s,p);n((o=o.apply(i,r)).next())});const v=f({name:"LeftUser",components:{BasicTable:C},emits:["select"],setup(i,{emit:r}){const{tableContext:o,createMessage:a}=x({tableProps:{api:n,rowKey:"id",size:"small",bordered:!0,columns:[{title:"账号",dataIndex:"username",width:200},{title:"姓名",dataIndex:"realname",width:200}],rowSelection:{type:"radio",onChange(t){t.length>0&&r("select",t[0])}},formConfig:{schemas:[{label:"账号",field:"username",component:"JInput",componentProps:{placeholder:"输入账号"}},{label:"姓名",field:"realname",component:"JInput",componentProps:{placeholder:"输入姓名"}}]},canResize:!1,clickToRowSelect:!0,showActionColumn:!1,showTableSetting:!1}}),[m,{clearSelectedRowKeys:s},{rowSelection:p}]=o;function n(t){return R(this,null,function*(){let{code:l,success:c,result:u,message:d}=yield T.get({url:"/sys/user/list",params:t},{isTransformResponse:!1});return c?u:(l===510&&a.warning(d),{})})}function e(){s()}return{rowSelection:p,registerTable:m,clearSelected:e}}});function B(i,r,o,a,m,s){const p=w("BasicTable");return g(),h(p,{onRegister:i.registerTable,rowSelection:i.rowSelection},{tableTop:b(()=>r[0]||(r[0]=[S("span",null,null,-1)])),_:1},8,["onRegister","rowSelection"])}const Ce=y(v,[["render",B]]);export{Ce as default};