import{_ as x,P as b}from"./page-content.e0c7af12.js";import{u as F}from"./use-page-search.0f272301.js";import{c as m,a as P,r as c}from"./column-helper.64ceba17.js";import{S as _,G as h}from"./status.2b37e8be.js";import{a as w,d as R,e as O}from"./good.75e37e88.js";import{u as A}from"./usePermission.8064505c.js";import{_ as N}from"./edit-dialog.vue_vue_type_script_setup_true_lang.9c4c29ac.js";import{a as D,r as T,b as d,c as f,j as C,h as i,f as a,u as o,x as $,l as I}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css                                                              */import"./image.4c97dbe3.js";/* empty css                                                              */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./btnList.6c44b4ef.js";import"./remoteSelect.403add72.js";import"./ladder-modal.vue_vue_type_script_setup_true_lang.94ea5d24.js";import"./ladder-table.vue_vue_type_script_setup_true_lang.3b3f4c07.js";const E={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:m(_)},{field:"good_code",type:"input",placeholder:"\u5546\u54C1\u7F16\u7801"},{field:"good_name",type:"input",placeholder:"\u5546\u54C1\u540D\u79F0"},{field:"type",type:"select",placeholder:"\u5546\u54C1\u7C7B\u578B",options:m(h)}]},g=E,V=[{prop:"good_code",label:"\u5546\u54C1\u7F16\u7801",width:"180px"},{prop:"good_cover_img",label:"\u56FE\u7247",width:"60px",...P("good_cover_img")},{prop:"good_name",label:"\u5546\u54C1\u540D\u79F0",minWidth:"200px"},{prop:"type",label:"\u5546\u54C1\u7C7B\u578B",...c(h,"type")},{prop:"status",label:"\u72B6\u6001",...c(_)},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",width:"145px"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],G={title:"\u5546\u54C1\u7BA1\u7406",columns:V,apis:{httpList:w,httpStatus:R,httpDelete:O}},U=G,le=D({__name:"index",setup(W){const p=T(null),s="good",{hasPermissionWithCode:B,permissions:k}=A(s),{pageContentRef:u,handleResetClick:y,handleSearchClick:S}=F(void 0,void 0,g);function n(l,e,r){p.value.show(l,e,r)}return(l,e)=>{const r=d("el-button"),v=d("PageAuth");return f(),C(v,{pageName:s},{default:i(()=>[a(o(x),{"form-config":o(g),onSearchBtnClick:o(S),onResetBtnClick:o(y)},{action:i(()=>[o(B)("002")?(f(),C(r,{key:0,type:"primary",onClick:e[0]||(e[0]=t=>n({},"","create"))},{default:i(()=>[$(" \u65B0\u589E ")]),_:1})):I("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(o(b),{ref_key:"pageContentRef",ref:u,powers:o(k),"content-config":o(U),onPreviewBtnClick:e[1]||(e[1]=t=>n(t,t.id,"view")),onUpdateBtnClick:e[2]||(e[2]=t=>n(t,t.id,"edit"))},null,8,["powers","content-config"]),a(N,{ref_key:"modelRef",ref:p,onReload:e[3]||(e[3]=t=>o(u).onSearch())},null,512)]),_:1})}}});export{le as default};
