import{aT as t,al as g,a$ as m,_ as h,d as f,w as C,r as o,o as _,G as F,C as b,j as y,l as u}from"./index.js";import{u as x}from"./use-page-search.f7bc460e.js";import{u as B}from"./use-page-modal.5cf2c59f.js";const a="http://project.test241.wanyuhengtong.com/admin/",P=e=>t.request("post",`${a}brandlist`,{data:e}),v=e=>t.request("post",`${a}brandcreate`,{data:e}),A=e=>t.request("post",`${a}branddel`,{data:e}),D=e=>t.request("post",`${a}brandedit`,{data:e}),E=e=>t.request("post",`${a}brandstatus`,{data:e}),k=[{prop:"id",label:"ID"},{prop:"brand_name",label:"\u54C1\u724C\u540D\u79F0"},{prop:"status",label:"\u72B6\u6001",width:"80px",cellRenderer:({row:e})=>g(m,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{prop:"company_name",label:"\u7533\u8BF7\u4EBA\u90E8\u95E8",minWidth:"150px"},{prop:"creater",label:"\u521B\u5EFA\u4EBA"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{prop:"",label:"\u64CD\u4F5C",fixed:"right",slot:"operation"}],q={title:"\u5546\u54C1\u54C1\u724C",columns:k,apis:{httpList:P,httpAdd:v,httpStatus:E,httpDelete:A,httpUpdate:D}},w=[{value:"0",label:"\u7981\u7528",type:"warning"},{value:"1",label:"\u542F\u7528",type:"success"}],n={formItems:[{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4"}},{options:w,type:"select",field:"status",placeholder:"\u72B6\u6001"},{type:"input",field:"brand_name",placeholder:"\u54C1\u724C\u540D\u79F0"}]},O={title:"\u54C1\u724C\u652F\u6301",colLayout:{span:24},itemStyle:{},labelWidth:"120px",formItems:[{field:"brand_name",type:"input",label:"\u54C1\u724C\u540D\u79F0",labelWidth:"120px",placeholder:"\u54C1\u724C\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0"}]},{field:"logo_url",type:"img_upload",label:"LOGO      ",rules:[{required:!0,trigger:"change",message:"\u8BF7\u4E0A\u4F20LOGO"}],otherOptions:{style:"width:100px; height:100px"}}]},S=f({__name:"index",setup(e){const s="brand",l=C(null),p={pageSearchHook:()=>x(void 0,void 0,n),pageModalHook:r=>B({pageContentRef:r})};return(r,$)=>{const i=o("PageContainer"),c=o("PageAuth");return _(),F(c,{pageName:s},{default:b(()=>[y(i,{hooks:p,contentConfig:u(q),"search-config":u(n),"modal-config":u(O),"get-content-ref":d=>l.value=d},null,8,["contentConfig","search-config","modal-config","get-content-ref"])]),_:1})}}});var I=h(S,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/serviceParam/brand/index.vue"]]);export{I as default};
