2 lines
3.3 KiB
Java
2 lines
3.3 KiB
Java
import{d as f,ah as h,aC as w,as as g,aF as b,au as S}from"./vue-vendor-C7Zq48Yl.js";import{f as y}from"./index-BI6CMai0.js";import"./index-BgJbdjPf.js";import{useListPage as C}from"./useListPage-BWia52we.js";import{h as T}from"./main.index-Cs5ETdXF.js";import x from"./BasicTable-DfLkrEeh.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./vxe-table-vendor-B88kchpX.js";import"./componentMap-BBZeqR-K.js";import"./useFormItem-BdW6EoZe.js";import"./index-Du0A3ksf.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JAddInput-D6qcyZjQ.js";import"./areaDataUtil-CbYCy3Ig.js";import"./index-CNkz_PUv.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./depart.api-DeMNV8zW.js";import"./TreeIcon-DE4jdeZV.js";import"./JSelectDept-DRDVeruW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./useMethods-DVip17X8.js";import"./index-Dg4HCEvo.js";import"./JEllipsis-DqRFTSm0.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./JCodeEditor-CLVZA7Uj.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./EasyCronInput-7xfJ3nBh.js";import"./injectionKey-DPVn4AgL.js";var R=(i,r,o)=>new Promise((a,m)=>{var s=t=>{try{n(o.next(t))}catch(e){m(e)}},p=t=>{try{n(o.throw(t))}catch(e){m(e)}},n=t=>t.done?a(t.value):Promise.resolve(t.value).then(s,p);n((o=o.apply(i,r)).next())});const v=f({name:"LeftUser",components:{BasicTable:x},emits:["select"],setup(i,{emit:r}){const{tableContext:o,createMessage:a}=C({tableProps:{api:n,rowKey:"id",size:"small",bordered:!0,columns:[{title:"账号",dataIndex:"username",width:200},{title:"姓名",dataIndex:"realname",width:200}],rowSelection:{type:"radio",onChange(e){e.length>0&&r("select",e[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(e){return R(this,null,function*(){let{code:l,success:c,result:u,message:d}=yield y.get({url:"/sys/user/list",params:e},{isTransformResponse:!1});return c?u:(l===510&&a.warning(d),{})})}function t(){s()}return{rowSelection:p,registerTable:m,clearSelected:t}}});function P(i,r,o,a,m,s){const p=h("BasicTable");return g(),w(p,{onRegister:i.registerTable,rowSelection:i.rowSelection},{tableTop:b(()=>[...r[0]||(r[0]=[S("span",null,null,-1)])]),_:1},8,["onRegister","rowSelection"])}const zt=T(v,[["render",P]]);export{zt as default};
|