import{_ as k,P as x}from"./page-content.e0c7af12.js";import{u as S}from"./use-page-search.0f272301.js";import{h as b,a as w,b as y,_ as P}from"./edit-dialog.vue_vue_type_script_setup_true_lang.38b8e2ff.js";import{r as v}from"./column-helper.64ceba17.js";import{S as F}from"./status.2b37e8be.js";import{u as R}from"./usePermission.8064505c.js";import{a as A,r as N,b as u,c,j as f,h as r,f as a,u as e,x as $,l as T}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"./Card.vue_vue_type_script_setup_true_lang.27e443dd.js";import"./remoteSelect.403add72.js";import"./btnList.6c44b4ef.js";const D={formItems:[{field:"company_title",type:"input",placeholder:"\u516C\u53F8"},{field:"card_title",type:"input",placeholder:"\u5361\u7C7B\u578B"}]},d=D,V=[{prop:"company_title","min-width":"200px",label:"\u516C\u53F8\u540D\u79F0"},{prop:"card_title","min-width":"120px",label:"\u5361\u7C7B\u578B"},{prop:"status",label:"\u72B6\u6001","min-width":"80px",...v(F)},{prop:"addtime","min-width":"150px",label:"\u521B\u5EFA\u65F6\u95F4"},{label:"\u64CD\u4F5C",fixed:"right",width:140,slot:"operation"}],E={title:"\u5546\u54C1\u7BA1\u7406",columns:V,apis:{httpList:b,httpStatus:w,httpDelete:y}},I=E,rt=A({__name:"index",setup(O){const s="setComCard",{pageContentRef:p,handleResetClick:C,handleSearchClick:h}=S(void 0,void 0,d),m=N(null),{hasPermissionWithCode:_,permissions:g}=R(s);function n(l,t,i){m.value.show(l,t,i)}return(l,t)=>{const i=u("el-button"),B=u("PageAuth");return c(),f(B,{pageName:s},{default:r(()=>[a(e(k),{"form-config":e(d),onSearchBtnClick:e(h),onResetBtnClick:e(C)},{action:r(()=>[e(_)("002")?(c(),f(i,{key:0,type:"primary",onClick:t[0]||(t[0]=o=>n({},"","create"))},{default:r(()=>[$(" \u65B0\u589E ")]),_:1})):T("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(e(x),{ref_key:"pageContentRef",ref:p,powers:e(g),"content-config":e(I),onPreviewBtnClick:t[1]||(t[1]=o=>n(o,o.id,"view")),onUpdateBtnClick:t[2]||(t[2]=o=>n(o,o.id,"edit"))},null,8,["powers","content-config"]),a(P,{ref_key:"modelRef",ref:m,onReload:t[3]||(t[3]=o=>e(p).onSearch())},null,512)]),_:1})}}});export{rt as default};