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-gyz1IdHU.js";import{g as G,d as Q,_ as $}from"./RouteModal-Dxnn2V0C.js";import{u as j}from"./index-Cy4uayzW.js";import{a as z}from"./index-CJ4Xt1FM.js";import{useListPage as H}from"./useListPage-TMORxSEa.js";import{Q as J}from"./componentMap-0iK4HQBq.js";import O from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
