import{_ as B}from"./page-search.vue_vue_type_script_setup_true_lang.e284bf07.js";import{u as g}from"./use-page-search.da34a19a.js";import{aI as l,b as h,o as k,c as _,j as n,f as t,F as b}from"./index.4d3e3847.js";import{c as F,r as S}from"./column-helper.adef10ea.js";import{a as y,h as P,b as R,c as x,d as A}from"./card.8fd03846.js";import{u as D,_ as I}from"./use-page-modal.88aec721.js";import{P as v}from"./page-content.1fdb6363.js";import"./basic-form.114da3ff.js";import"./validate.93ab4ac7.js";import"./basic-form.vue_vue_type_style_index_0_scoped_d6f0d2ed_lang.3165143d.js";import"./useAsync.24db85a6.js";import"./useNav.afbe69e0.js";import"./image.7849d972.js";import"./hooks.428ba1c3.js";import"./index.a5d44002.js";import"./responseHandle.db1518c7.js";import"./xlsx.ed122d16.js";const w={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:F(l)},{field:"title",type:"input",placeholder:"\u5361\u7C7B\u578B"}]},r=w,E=[{type:"selection",width:55,hide:({checkList:a})=>!a.includes("\u52FE\u9009\u5217")},{prop:"id",label:"ID"},{prop:"title",label:"\u5361\u7C7B\u578B"},{prop:"status",label:"\u72B6\u6001",...S(l)},{prop:"creater",label:"\u521B\u5EFA\u4EBA"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],U={title:"\u5361\u7C7B\u578B\u7BA1\u7406",columns:E,apis:{httpAdd:y,httpList:P,httpUpdate:R,httpStatus:x,httpDelete:A}},$=U,M={title:"\u5361\u7C7B\u578B",width:"500px",colLayout:{span:24},itemStyle:{},contact:"card",labelWidth:"100px",formItems:[{field:"title",type:"input",label:"\u5361\u7C7B\u578B",placeholder:"\u5361\u7C7B\u578B",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u5361\u7C7B\u578B"}]}]},O=M,ot=h({__name:"index",setup(a){const{pageContentRef:i,handleResetClick:u,handleSearchClick:s}=g(void 0,void 0,r),{pageModalRef:p,handleUpdateData:c,handleCreateData:f,handlePreviewData:m,handleConfrim:d,defaultInfo:C}=D({pageContentRef:i});return(T,e)=>(k(),_(b,null,[n(t(B),{"form-config":t(r),onSearchBtnClick:t(s),onResetBtnClick:t(u)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(t(v),{ref_key:"pageContentRef",ref:i,"content-config":t($),onCreateBtnClick:t(f),onPreviewBtnClick:e[0]||(e[0]=o=>t(m)(o)),onUpdateBtnClick:e[1]||(e[1]=o=>t(c)(o))},null,8,["content-config","onCreateBtnClick"]),n(t(I),{ref_key:"pageModalRef",ref:p,"modal-config":t(O),"default-info":t(C),onConfirmBtnClick:t(d)},null,8,["modal-config","default-info","onConfirmBtnClick"])],64))}});export{ot as default};
