import{u as g,_ as h}from"./use-page-search.f38b29a1.js";import{u as C,_ as E}from"./use-page-modal.046367d9.js";import{P as F}from"./page-content.6b548a2d.js";import{aL as a,aM as y,ah as i,bf as p,aN as b,_ as D,q as v,o as k,n as R,t as s,v as t}from"./index.10c3f8e5.js";import"./hooks.5f77ce90.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./use-response-handle.23bba72b.js";const r=[{value:"1",label:"\u91C7\u8D2D\u5355\u4ED8\u6B3E"},{value:"2",label:"\u91C7\u8D2D\u5355\u56DE\u7968"},{value:"3",label:"\u9500\u552E\u56DE\u6B3E"},{value:"4",label:"\u9500\u552E\u5F00\u7968"}],x={formItems:[{field:"type",type:"select",placeholder:"\u6807\u7B7E\u7C7B\u578B",options:r},{field:"tag_name",type:"input",placeholder:"\u6807\u9898\u540D\u79F0"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}]}]},{VITE_PROXY_DOMAIN_REAL:K,VITE_PROXY_USER_REAL:P}=y(),l=P+"/admin/",q=e=>a.request("post",`${l}taglist`,{data:e}),A=e=>a.request("post",`${l}tagadd`,{data:e}),w=e=>a.request("post",`${l}tagedit`,{data:e}),I=e=>a.request("post",`${l}tagstatus`,{data:e}),M=e=>a.request("post",`${l}tagdel`,{data:e}),S=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"id",prop:"id"},{label:"\u6807\u7B7E\u7C7B\u578B",prop:"type",cellRenderer:({row:e,props:u})=>i(p,{size:u.size},{default:()=>{var n;return(n=r.find(o=>e.type===o.value))==null?void 0:n.label}})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:u})=>i(p,{size:u.size,type:e.status==="1"?"success":"danger"},{default:()=>e.status==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u6807\u7B7E\u540D\u79F0",prop:"tag_name"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>b(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:150,slot:"operation"}],$={title:"\u6807\u7B7E\u7BA1\u7406",columns:S,powers:["001","002","003","004","005","006","007","008"],apis:{httpList:q,httpAdd:A,httpUpdate:w,httpStatus:I,httpDelete:M}},Y={title:"\u6807\u7B7E",colLayout:{span:24},itemStyle:{},formItems:[{field:"type",type:"select",label:"\u6807\u7B7E\u7C7B\u578B",labelWidth:"120px",placeholder:"\u8BF7\u9009\u62E9\u6807\u7B7E\u7C7B\u578B",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u6807\u7B7E\u7C7B\u578B"}],options:r},{field:"tag_name",type:"input",label:"\u6807\u7B7E\u540D\u79F0",labelWidth:"120px",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"}]}]};const L={class:"main role"},U={name:"invoiceheader"},z=v({...U,setup(e){const{pageContentRef:u,handleResetClick:n,handleSearchClick:o}=g(),{pageModalRef:c,handleUpdateData:d,handleCreateData:f,handlePreviewData:B,handleConfrim:m,defaultInfo:_}=C({pageContentRef:u});return(N,O)=>(k(),R("div",L,[s(t(h),{"form-config":t(x),onSearchBtnClick:t(o),onResetBtnClick:t(n)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(t(F),{ref_key:"pageContentRef",ref:u,"content-config":t($),onCreateBtnClick:t(f),onUpdateBtnClick:t(d),onPreviewBtnClick:t(B)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"]),s(t(E),{ref_key:"pageModalRef",ref:c,"modal-config":t(Y),"default-info":t(_),onConfirmBtnClick:t(m)},null,8,["modal-config","default-info","onConfirmBtnClick"])]))}});var Q=D(z,[["__scopeId","data-v-6f0f5b80"]]);export{Q as default};
