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-BN5Ac_IG.js";import{g as G,d as Q,_ as $}from"./RouteModal-DcrYZRwB.js";import{u as j}from"./index-CYriLmQo.js";import{a as z}from"./index-qSr7C5NQ.js";import{useListPage as H}from"./useListPage-i3Wl0_Fg.js";import{Q as J}from"./componentMap-7D1QIeNI.js";import O from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./index-CF_FJn6P.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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"}),ie=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{ie as default};
