import{o as T,p as B}from"./elementPlus.CXoFsoPv.js";import E from"./DataTable.DCRY4J19.js";import{V as N}from"./index.DhA83F-e.js";import{u as U}from"./useTableHeight.DC32WYSL.js";import{d as D,aI as c,r as b,Z as H,ai as a,o as I,c as R,U as t,O as s,G as S,a as o,u as l,S as x,J as j}from"./vue.1RczIYhx.js";import"./useTableData.YE2EVtgg.js";import"./useResponse.DqThFJSa.js";import"./Columns.D29A1xlB.js";import"./index.vue_vue_type_script_setup_true_lang.DKtMKa0b.js";import"./hasPermission.Dyr7g3RK.js";import"./index.fM6cvGYs.js";import"./DataTableSlot.vue_vue_type_style_index_0_lang.4Y88kU_R.js";import"./MainAttr.d4gsyULH.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./EditDrawer.4K5eRzuB.js";import"./api.D_N-7qEU.js";import"./NoticeDialog.BWvfidO5.js";import"./api.BKSbPohE.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.C57jf6uE.js";import"./AttributeManage.BY0CjTPw.js";import"./useTagColor.B-JXlmrE.js";import"./AttributeManageEdit.DueEZTdY.js";import"./AttributeManageCreate.78UPs4vt.js";const z={class:"p-5"},F={class:"flex flex-1"},G={class:"w-full whitespace-nowrap"},J={class:"flex items-center"},O={class:"flex items-center"},P={class:"flex gap-1.5 ml-5"},_e=D({__name:"index",setup(Q){const d=c("titleContainer"),u=c("queryContainer"),{tableHeight:C}=U(d,u),f=c("table"),i=b(!1),p=b(!1),n=H({name:"",status:""});S("query-parameter",n);async function g(){var r;i.value=!0,await((r=f.value)==null?void 0:r.fetchList(!0)),i.value=!1}async function V(){var r;for(const e in n)n[e]="";p.value=!0,await((r=f.value)==null?void 0:r.fetchList(!0)),p.value=!1}return(r,e)=>{const h=a("el-input"),_=a("el-col"),v=a("el-option"),w=a("el-select"),k=a("el-row"),y=a("el-button"),q=a("el-divider"),L=a("el-card");return I(),R("div",z,[t(L,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:s(()=>[o("div",{ref_key:"titleContainer",ref:d,class:"text-xl font-semibold pb-5"},"产品种类",512),o("div",{ref_key:"queryContainer",ref:u,class:"flex justify-between"},[o("div",F,[o("div",G,[t(k,{gutter:20,style:{"margin-bottom":"5px"}},{default:s(()=>[t(_,{span:6},{default:s(()=>[o("div",J,[e[2]||(e[2]=o("span",{class:"mr-2"},"种类名称",-1)),t(h,{modelValue:l(n).name,"onUpdate:modelValue":e[0]||(e[0]=m=>l(n).name=m),clearable:"",placeholder:"请输入种类名称"},null,8,["modelValue"])])]),_:1}),t(_,{span:4},{default:s(()=>[o("div",O,[e[3]||(e[3]=o("span",{class:"mr-2"},"状 态",-1)),t(w,{modelValue:l(n).status,"onUpdate:modelValue":e[1]||(e[1]=m=>l(n).status=m),clearable:"",placeholder:"请选择"},{default:s(()=>[t(v,{label:"草稿",value:"1"}),t(v,{label:"已发布",value:"3"})]),_:1},8,["modelValue"])])]),_:1})]),_:1})])]),t(N),o("div",P,[t(y,{icon:l(T),loading:l(i),type:"primary",onClick:g},{default:s(()=>e[4]||(e[4]=[x(" 查 询 ")])),_:1},8,["icon","loading"]),t(y,{icon:l(B),loading:l(p),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:V},{default:s(()=>e[5]||(e[5]=[x(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(q,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),o("div",{style:j({height:l(C)+"px"})},[t(E,{ref:"table"},null,512)],4)]),_:1})])}}});export{_e as default};
