index.7fdb7aa7.js 2.5 KB

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