import{aT as m,ac as g,al as C,a$ as E,_ as F,d as B,w as s,r as l,o as x,G as P,C as b,j as w,l as c}from"./index.js";import{u as A}from"./use-page-search.f7bc460e.js";const{VITE_PROXY_DOMAIN_REAL:L,VITE_PROXY_USER_REAL:D}=g(),S=D+"/admin/",k=e=>m.request("post",`${S}cattlist`,{data:e}),y=[{prop:"id",label:"ID",width:"80px",align:"center"},{prop:"cat_name",label:"\u5206\u7C7B\u540D\u79F0",width:"140px"},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e})=>C(E,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"level",label:"\u5206\u7C7B\u7B49\u7EA7",width:"70px"},{prop:"fund_code",label:"\u8D22\u52A1\u6838\u7B97\u7801",width:"130px"},{prop:"specs",label:"\u5173\u8054\u89C4\u683C",width:"130px"},{prop:"cat_desc",label:"\u552E\u540E\u8BF4\u660E"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"145px"}],R={title:"\u5546\u54C1\u5206\u7C7B\u67E5\u8BE2",columns:y,apis:{httpList:k}},I=[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}],p={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{field:"status",type:"select",options:I,placeholder:"\u72B6\u6001"},{type:"input",field:"cat_name",placeholder:"\u5206\u7C7B\u540D\u79F0"}]},O=B({__name:"index",setup(e){const i="searchSort",d=s(null),o=s(!1),n=s(!1),r=s({}),_={pageSearchHook:()=>A(void 0,void 0,p)},f={content:{create:()=>{o.value=!1,n.value=!0},preview:a=>{const{id:u,order_use:t}=a;r.value={id:u,order_use:t},o.value=!0,n.value=!0},update:a=>{const{id:u,order_use:t}=a;r.value={id:u,order_use:t},o.value=!1,n.value=!0}}};return(a,u)=>{const t=l("PageContainer"),h=l("PageAuth");return x(),P(h,{pageName:i},{default:b(()=>[w(t,{hooks:_,events:f,contentConfig:c(R),"search-config":c(p),"get-content-ref":v=>d.value=v},null,8,["contentConfig","search-config","get-content-ref"])]),_:1})}}});var V=F(O,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/searchSort/index.vue"]]);export{V as default};
