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-LwlFn7Y4.js";import{g as G,d as Q,_ as $}from"./RouteModal-CpIlHMqY.js";import{u as j}from"./index-B_2CoVdl.js";import{a as z}from"./index-CC3OF1BO.js";import{useListPage as H}from"./useListPage-BEtybUiF.js";import{Q as J}from"./componentMap-CzCGDP7x.js";import O from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
