1 |
- import{_ as k}from"./page-search.vue_vue_type_script_setup_true_lang.e284bf07.js";import{u as b}from"./use-page-search.da34a19a.js";import{aI as h,b9 as C,b as D,p as l,o as E,c as S,j as s,f as t,F as w}from"./index.4d3e3847.js";import{c as d,r as m}from"./column-helper.adef10ea.js";import{h as I,a as _,b as P,c as R,d as y,e as A}from"./addEdit.7bcab90e.js";import{P as x}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 O={formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:d(h)},{field:"level",type:"select",placeholder:"\u89D2\u8272\u7B49\u7EA7",options:d(C)},{field:"title",type:"input",placeholder:"\u5361\u7C7B\u578B"}]},f=O,T=[{type:"selection",width:55,hide:({checkList:o})=>!o.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:o})=>!o.includes("\u5E8F\u53F7\u5217")},{label:"\u89D2\u8272\u540D\u79F0",prop:"name"},{label:"\u72B6\u6001",prop:"status",...m(h)},{label:"\u89D2\u8272\u7B49\u7EA7",prop:"level",...m(C)},{label:"\u521B\u5EFA\u65F6\u95F4",width:160,prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],L={title:"\u89D2\u8272\u7BA1\u7406",columns:T,apis:{httpAdd:I,httpList:_,httpUpdate:P,httpStatus:R,httpDelete:y}},N=L,ee=D({__name:"index",setup(o){const{pageContentRef:u,handleResetClick:B,handleSearchClick:g}=b(void 0,void 0,f),n=l(!1),r=l(""),p=l("add"),v=()=>{n.value=!1,u.value.getPageData()},F=()=>{n.value=!1};function i(c,e){r.value=c,p.value=e,n.value=!0}return(c,e)=>(E(),S(w,null,[s(t(k),{"form-config":t(f),onSearchBtnClick:t(g),onResetBtnClick:t(B)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(t(x),{ref_key:"pageContentRef",ref:u,"content-config":t(N),onCreateBtnClick:e[0]||(e[0]=()=>i("","create")),onPreviewBtnClick:e[1]||(e[1]=a=>i(a.id,"preview")),onUpdateBtnClick:e[2]||(e[2]=a=>i(a.id,"update"))},null,8,["content-config"]),s(A,{itemId:r.value,isDetails:p.value,"show-model":n.value,onRefresh:v,onCancel:F},null,8,["itemId","isDetails","show-model"])],64))}});export{ee as default};
|