index.6357f55d.js 2.3 KB

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