var T=Object.defineProperty,q=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?T(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,h=(o,e)=>{for(var t in e||(e={}))E.call(e,t)&&C(o,t,e[t]);if(w)for(var t of w(e))L.call(e,t)&&C(o,t,e[t]);return o},k=(o,e)=>q(o,A(e));var R=(o,e,t)=>new Promise((s,l)=>{var _=r=>{try{p(t.next(r))}catch(d){l(d)}},c=r=>{try{p(t.throw(r))}catch(d){l(d)}},p=r=>r.done?s(r.value):Promise.resolve(r.value).then(_,c);p((t=t.apply(o,e)).next())});import{d as U,f as M,U as y,a2 as f,a3 as F,k as u,af as a,u as m,ad as S,G as g,V as D}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{g as G,d as Q,_ as $}from"./RouteModal-C-WvEyMl.js";import{u as j}from"./index-CLZzJyTP.js";import{a as z}from"./index-BjHivc1K.js";import{useListPage as H}from"./useListPage-CevWQ3ci.js";import{Q as J}from"./componentMap-DpsJvoqz.js";import O from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const W=[{title:"路由ID",dataIndex:"routerId",width:200,align:"left"},{title:"路由名称",dataIndex:"name",width:200},{title:"路由URI",dataIndex:"uri",width:200},{title:"状态",dataIndex:"status",slots:{customRender:"status"},width:200}];const X={class:"p-4"},Y=U({name:"monitor-route"}),ne=U(k(h({},Y),{setup(o){const{createMessage:e}=j(),[t,{openDrawer:s}]=z(),l=M([]),{prefixCls:_,tableContext:c}=H({designScope:"router-template",tableProps:{title:"路由列表",api:G,useSearchForm:!1,columns:W}}),[p,{reload:r},{rowSelection:d,selectedRowKeys:Z}]=c,N={dataIndex:"index",width:"15px"};function V(i){return[{label:"编辑",onClick:B.bind(null,i)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:K.bind(null,i)}}]}function tt(i){l.value=i}function v(){s(!0,{isUpdate:!1})}function B(i){s(!0,{record:i,isUpdate:!0})}function K(i){return R(this,null,function*(){yield Q({id:i.id},r)})}return(i,n)=>{const P=y("a-button"),b=y("a-tag");return f(),F("div",X,[u(m(O),{onRegister:m(p),indexColumnProps:N},{tableTitle:a(()=>[u(P,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:v,style:{"margin-right":"5px"}},{default:a(()=>n[0]||(n[0]=[g("新增")])),_:1})]),status:a(({record:I,text:x})=>[x==0?(f(),S(b,{key:0,color:"pink"},{default:a(()=>n[1]||(n[1]=[g("禁用")])),_:1})):D("",!0),x==1?(f(),S(b,{key:1,color:"#87d068"},{default:a(()=>n[2]||(n[2]=[g("正常")])),_:1})):D("",!0)]),action:a(({record:I})=>[u(m(J),{actions:V(I)},null,8,["actions"])]),_:1},8,["onRegister"]),u($,{onRegister:m(t),onSuccess:m(r)},null,8,["onRegister","onSuccess"])])}}}));export{ne as default};
