import{p as q,r as L}from"./elementPlus.CSBdF9Zt.js";import T from"./DataTable.BVjUX6jO.js";import{V as B}from"./index.DhA83F-e.js";import{u as E}from"./useTableHeight.DC32WYSL.js";import{d as N,aI as m,r as _,Z as D,ai as n,o as H,c as I,U as t,O as s,G as R,a as o,u as a,S as v,J as S}from"./vue.1RczIYhx.js";import"./useTableData.BPSaK1qx.js";import"./useResponse.DqThFJSa.js";import"./Columns.D29A1xlB.js";import"./index.vue_vue_type_script_setup_true_lang.Q_8XCONs.js";import"./hasPermission.BaNF3kc2.js";import"./index.K_MFulpu.js";import"./DataTableSlot.vue_vue_type_script_setup_true_lang.D4a45SmB.js";import"./EditDrawer.CaaxDx08.js";import"./api.BCMjIqCN.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./NoticeDialog.C6wixsF1.js";import"./api.Dg5Q_G4P.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.wpuKc4T3.js";const U={class:"p-5"},j={class:"flex flex-1"},z={class:"w-full whitespace-nowrap"},F={class:"flex items-center"},G={class:"flex gap-1.5 ml-5"},se=N({__name:"index",setup(J){const p=m("titleContainer"),d=m("queryContainer"),{tableHeight:y}=E(p,d),u=m("table"),i=_(!1),c=_(!1),r=D({name:""});R("query-parameter",r);async function x(){var l;i.value=!0,await((l=u.value)==null?void 0:l.fetchList(!0)),i.value=!1}async function b(){var l;for(const e in r)r[e]="";c.value=!0,await((l=u.value)==null?void 0:l.fetchList(!0)),c.value=!1}return(l,e)=>{const C=n("el-input"),g=n("el-col"),h=n("el-row"),f=n("el-button"),w=n("el-divider"),V=n("el-card");return H(),I("div",U,[t(V,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:s(()=>[o("div",{ref_key:"titleContainer",ref:p,class:"text-xl font-semibold pb-5"},"产品品牌",512),o("div",{ref_key:"queryContainer",ref:d,class:"flex justify-between"},[o("div",j,[o("div",z,[t(h,{gutter:20,style:{"margin-bottom":"5px"}},{default:s(()=>[t(g,{span:5},{default:s(()=>[o("div",F,[e[1]||(e[1]=o("span",{class:"mr-2"},"品牌名称",-1)),t(C,{modelValue:a(r).name,"onUpdate:modelValue":e[0]||(e[0]=k=>a(r).name=k),clearable:"",placeholder:"请输入品牌名称"},null,8,["modelValue"])])]),_:1})]),_:1})])]),t(B),o("div",G,[t(f,{icon:a(q),loading:a(i),type:"primary",onClick:x},{default:s(()=>e[2]||(e[2]=[v(" 查 询 ")])),_:1},8,["icon","loading"]),t(f,{icon:a(L),loading:a(c),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:b},{default:s(()=>e[3]||(e[3]=[v(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(w,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),o("div",{style:S({height:a(y)+"px"})},[t(T,{ref:"table"},null,512)],4)]),_:1})])}}});export{se as default};
