| 1 |
- var V=Object.defineProperty,A=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var b=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,C=(o,t)=>{for(var e in t||(t={}))E.call(t,e)&&b(o,e,t[e]);if(_)for(var e of _(t))K.call(t,e)&&b(o,e,t[e]);return o},w=(o,t)=>A(o,D(t));var s=(o,t,e)=>new Promise((g,l)=>{var a=r=>{try{c(e.next(r))}catch(p){l(p)}},h=r=>{try{c(e.throw(r))}catch(p){l(p)}},c=r=>r.done?g(r.value):Promise.resolve(r.value).then(a,h);c((e=e.apply(o,t)).next())});import{d as P,ag as L,aq as O,ar as M,k as d,aD as f,u as n,aB as q,ah as G,G as x}from"./vue-vendor-Be68asQ6.js";import"./index-D2G57Sln.js";import"./index-CETWS1o0.js";import{k as S,p as Q}from"./tenant.api-BUOMVerp.js";import{p as $,d as z}from"./tenant.data-zFObjxyE.js";import H from"./TenantPackMenuModal-dyKKFg_y.js";import{ad as T,ah as J,u as W}from"./index-BFfnEkVs.js";import{useListPage as X}from"./useListPage-aOfrd-Tw.js";import{M as Y}from"./antd-vue-vendor-DcqS7Wvq.js";import{Q as Z}from"./componentMap-BUTAcOmo.js";import tt from"./BasicTable-CuSLkXEu.js";import"./BasicModal-D4gc2R81.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./renderUtils-DPF_SrxE.js";import"./index-BOEzG86y.js";import"./validator-BLa7ZpAW.js";import"./user.api-BMRcwGEd.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"./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"./injectionKey-DPVn4AgL.js";const et=P({name:"tenant-default-pack"}),pe=P(w(C({},et),{setup(o){const{createMessage:t}=W(),[e,{openModal:g}]=T(),[l,{openModal:a}]=T(),h=J(),{prefixCls:c,tableContext:r}=X({designScope:"tenant-template",tableProps:{api:Q,columns:z,formConfig:{schemas:$},beforeFetch:i=>Object.assign(i,{packType:"default"})}}),[p,{reload:R},{rowSelection:v,selectedRowKeys:m,selectedRows:ot}]=r;function B(i){return[{label:"编辑",onClick:I.bind(null,i)},{label:"删除",popConfirm:{title:"是否确认删除租户套餐包",confirm:j.bind(null,i.id)}}]}function F(){a(!0,{isUpdate:!1,packType:"default",showFooter:!0})}function j(i){return s(this,null,function*(){yield S({ids:i},k)})}function I(i){a(!0,{isUpdate:!0,record:i,packType:"default",showFooter:!0})}function rt(){return s(this,null,function*(){if(n(m).length>1){t.warn("请选择一个");return}a(!0,{tenantId:n(m.value.join(","))})})}function k(){(m.value=[])&&R()}function N(){return s(this,null,function*(){Y.confirm({title:"删除租户套餐包",content:"是否删除租户套餐包",okText:"确认",cancelText:"取消",onOk:()=>s(null,null,function*(){yield S({ids:m.value.join(",")},k)})})})}return(i,u)=>{const y=L("a-button");return M(),O("div",null,[d(n(tt),{onRegister:n(p),rowSelection:n(v)},{tableTitle:f(()=>[d(y,{preIcon:"ant-design:user-add-outlined",type:"primary",onClick:F},{default:f(()=>u[0]||(u[0]=[x("新增")])),_:1}),n(m).length>0?(M(),q(y,{key:0,preIcon:"ant-design:delete-outlined",type:"primary",onClick:N,style:{"margin-right":"5px"}},{default:f(()=>u[1]||(u[1]=[x("批量删除 ")])),_:1})):G("",!0)]),action:f(({record:U})=>[d(n(Z),{actions:B(U)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),d(H,{onRegister:n(l),onSuccess:k},null,8,["onRegister"])])}}}));export{pe as default};
|