| 1 |
- var J=Object.defineProperty,O=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable;var h=(n,e,t)=>e in n?J(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,I=(n,e)=>{for(var t in e||(e={}))Z.call(e,t)&&h(n,t,e[t]);if(y)for(var t of y(e))oo.call(e,t)&&h(n,t,e[t]);return n},U=(n,e)=>O(n,Y(e));var D=(n,e,t)=>new Promise((_,d)=>{var f=m=>{try{s(t.next(m))}catch(u){d(u)}},w=m=>{try{s(t.throw(m))}catch(u){d(u)}},s=m=>m.done?_(m.value):Promise.resolve(m.value).then(f,w);s((t=t.apply(n,e)).next())});import{d as P,f as eo,ag as p,aq as to,ar as v,k as r,aD as a,u as i,aB as ro,ah as no,G as c,F as io}from"./vue-vendor-Be68asQ6.js";import"./index-D2G57Sln.js";import{a as g}from"./index-swd_UZfO.js";import"./index-CETWS1o0.js";import lo from"./RoleDrawer-DEX7V-Ju.js";import ao from"./RoleDesc-Bv5k8GQl.js";import mo from"./RolePermissionDrawer-6Hh50MSh.js";import po from"./RoleIndexModal-BSqnGyxF.js";import so from"./RoleUserTable-CDBnyYE_.js";import{s as uo,c as co}from"./role.data-BtXVnRbk.js";import{b as fo,g as go,a as _o,p as wo,d as bo}from"./role.api-DvX8x9Fg.js";import{useListPage as Co}from"./useListPage-aOfrd-Tw.js";import{ad as Do}from"./index-BFfnEkVs.js";import{Q as Ro}from"./componentMap-BUTAcOmo.js";import ko from"./BasicTable-CuSLkXEu.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./BasicModal-D4gc2R81.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-D68l__AG.js";import"./BasicForm-Cv-dsB-e.js";import"./useForm-kcRIHoe0.js";import"./JAreaLinkage-BNOKwn5l.js";import"./areaDataUtil-Cik-Rc_P.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JSelectDept-DT6g7V5M.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./JCodeEditor-CSivhUhT.js";import"./useFormItem-CtGMPcLp.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./JAddInput-BBXQvvpq.js";import"./index-BOEzG86y.js";import"./depart.api-CDwTvdwQ.js";import"./JPopup-DKJW27Yk.js";import"./EasyCronInput-wCv2YMHn.js";import"./JEllipsis-C04xKxcI.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"./JUpload-cB_Qj2H2.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./index-B1oVPfS0.js";import"./RoleDataRuleDrawer-Cds2BCkN.js";import"./UserDrawer-5LbYmYuR.js";import"./user.data-B0-ez77n.js";import"./user.api-BMRcwGEd.js";import"./validator-BLa7ZpAW.js";import"./renderUtils-DPF_SrxE.js";import"./useAdaptiveWidth-sJADmil4.js";import"./UseSelectModal-CORVv-l0.js";import"./injectionKey-DPVn4AgL.js";const xo=P({name:"system-role"}),je=P(U(I({},xo),{setup(n){const e=eo(!0),[t,{openDrawer:_}]=g(),[d,{openDrawer:f}]=g(),[w,{openModal:s}]=Do(),[m,{openDrawer:u}]=g(),[S,{openDrawer:F}]=g(),{prefixCls:yo,tableContext:T,onImportXls:A,onExportXls:B}=Co({designScope:"role-template",tableProps:{title:"系统角色列表",api:wo,columns:co,formConfig:{labelWidth:65,rowProps:{gutter:24},schemas:uo},actionColumn:{width:120},rowSelection:null,defSort:{column:"id",order:"desc"}},exportConfig:{name:"角色列表",url:_o},importConfig:{url:go}}),[E,{reload:b},{rowSelection:ho,selectedRowKeys:R}]=T;function M(){e.value=!0,f(!0,{isUpdate:!1})}function N(o){e.value=!0,f(!0,{record:o,isUpdate:!0})}function V(o){e.value=!1,F(!0,{record:o,isUpdate:!0})}function $(o){return D(this,null,function*(){yield bo({id:o.id},b)})}function j(){return D(this,null,function*(){yield fo({ids:R.value},b)})}function K(o){u(!0,{roleId:o.id})}function X(o){s(!0,{roleCode:o})}function q(o){_(!0,o)}function G(o){return[{label:"用户",onClick:q.bind(null,o)},{label:"授权",onClick:K.bind(null,o)}]}function H(o){return[{label:"编辑",onClick:N.bind(null,o)},{label:"详情",onClick:V.bind(null,o)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:$.bind(null,o)}},{label:"首页配置",onClick:X.bind(null,o.roleCode)}]}return(o,l)=>{const C=p("a-button"),L=p("j-upload-button"),k=p("Icon"),Q=p("a-menu-item"),W=p("a-menu"),z=p("a-dropdown");return v(),to(io,null,[r(i(ko),{onRegister:i(E)},{tableTitle:a(()=>[r(C,{type:"primary",preIcon:"ant-design:plus-outlined",onClick:M},{default:a(()=>l[0]||(l[0]=[c(" 新增")])),_:1}),r(C,{type:"primary",preIcon:"ant-design:export-outlined",onClick:i(B)},{default:a(()=>l[1]||(l[1]=[c(" 导出")])),_:1},8,["onClick"]),r(L,{type:"primary",preIcon:"ant-design:import-outlined",onClick:i(A)},{default:a(()=>l[2]||(l[2]=[c("导入")])),_:1},8,["onClick"]),i(R).length>0?(v(),ro(z,{key:0},{overlay:a(()=>[r(W,null,{default:a(()=>[r(Q,{key:"1",onClick:j},{default:a(()=>[r(k,{icon:"ant-design:delete-outlined"}),l[3]||(l[3]=c(" 删除 "))]),_:1})]),_:1})]),default:a(()=>[r(C,null,{default:a(()=>[l[4]||(l[4]=c("批量操作 ")),r(k,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):no("",!0)]),action:a(({record:x})=>[r(i(Ro),{actions:G(x),dropDownActions:H(x)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister"]),r(so,{onRegister:i(t)},null,8,["onRegister"]),r(lo,{onRegister:i(d),onSuccess:i(b),showFooter:e.value},null,8,["onRegister","onSuccess","showFooter"]),r(ao,{onRegister:i(S)},null,8,["onRegister"]),r(mo,{onRegister:i(m)},null,8,["onRegister"]),r(po,{onRegister:i(w)},null,8,["onRegister"])],64)}}}));export{je as default};
|