import{o as q,p as L}from"./elementPlus.CXoFsoPv.js";import T from"./DataTable.Cr9IZr0y.js";import{V as B}from"./index.DhA83F-e.js";import{u as E}from"./useTableHeight.DC32WYSL.js";import{d as N,aI as d,r as x,Z as U,ai as r,o as D,c as H,U as t,O as s,G as I,a as o,u as l,S as b,J as R}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.DvzxCBlG.js";import"./EditDrawer.DYirUgdf.js";import"./api.5ACJPXCi.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./NoticeDialog.BWvfidO5.js";import"./api.BKSbPohE.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.DhlPJc56.js";import"./index.BZLnX2OE.js";import"./api.UVvVzady.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.CuuvGkRG.js";import"./EditDrawer.CB2973sv.js";import"./ShowEnumDrawer.1OQBGIol.js";import"./ShowDetailDrawer.vue_vue_type_script_setup_true_lang.BxbOxk-4.js";const S={class:"p-5"},j={class:"flex flex-1"},z={class:"w-full whitespace-nowrap"},F={class:"flex items-center"},G={class:"flex items-center"},J={class:"flex gap-1.5 ml-5"},fe=N({__name:"index",setup(O){const c=d("titleContainer"),u=d("queryContainer"),{tableHeight:C}=E(c,u),f=d("table"),i=x(!1),m=x(!1),a=U({name:"",key:""});I("query-parameter",a);async function g(){var n;i.value=!0,await((n=f.value)==null?void 0:n.fetchList(!0)),i.value=!1}async function V(){var n;for(const e in a)a[e]="";m.value=!0,await((n=f.value)==null?void 0:n.fetchList(!0)),m.value=!1}return(n,e)=>{const _=r("el-input"),v=r("el-col"),h=r("el-row"),y=r("el-button"),k=r("el-divider"),w=r("el-card");return D(),H("div",S,[t(w,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:s(()=>[o("div",{ref_key:"titleContainer",ref:c,class:"text-xl font-semibold pb-5"},"产品属性",512),o("div",{ref_key:"queryContainer",ref:u,class:"flex justify-between"},[o("div",j,[o("div",z,[t(h,{gutter:20,style:{"margin-bottom":"5px"}},{default:s(()=>[t(v,{span:5},{default:s(()=>[o("div",F,[e[2]||(e[2]=o("span",{class:"mr-2"},"属性名称",-1)),t(_,{modelValue:l(a).name,"onUpdate:modelValue":e[0]||(e[0]=p=>l(a).name=p),clearable:"",placeholder:"请输入属性名称"},null,8,["modelValue"])])]),_:1}),t(v,{span:5},{default:s(()=>[o("div",G,[e[3]||(e[3]=o("span",{class:"mr-2"},"属性标识",-1)),t(_,{modelValue:l(a).key,"onUpdate:modelValue":e[1]||(e[1]=p=>l(a).key=p),clearable:"",placeholder:"请输入属性标识"},null,8,["modelValue"])])]),_:1})]),_:1})])]),t(B),o("div",J,[t(y,{icon:l(q),loading:l(i),type:"primary",onClick:g},{default:s(()=>e[4]||(e[4]=[b(" 查 询 ")])),_:1},8,["icon","loading"]),t(y,{icon:l(L),loading:l(m),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:V},{default:s(()=>e[5]||(e[5]=[b(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(k,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),o("div",{style:R({height:l(C)+"px"})},[t(T,{ref:"table"},null,512)],4)]),_:1})])}}});export{fe as default};
