index.0416d0c4.js 2.1 KB

1
  1. import{_ as B,P}from"./page-content.e0c7af12.js";import{u as v}from"./use-page-search.0f272301.js";import{h as y,_ as S}from"./edit-dialog.vue_vue_type_script_setup_true_lang.e479469c.js";import{r as b}from"./column-helper.64ceba17.js";import{f as F}from"./status.2b37e8be.js";import{u as R}from"./usePermission.8064505c.js";import{a as x,r as w,b as u,c as f,j as c,h as r,f as s,u as t,x as N,l as $}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 A=[{label:"\u7248\u672C\u53F7",prop:"version",align:"left"},{prop:"sys_type",label:"\u7C7B\u578B",...b(F,"sys_type")},{label:"\u66F4\u65B0\u6A21\u5757",prop:"title",align:"left"},{label:"\u66F4\u65B0\u65F6\u95F4",prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],T={title:"\u7248\u672C\u66F4\u65B0",columns:A,apis:{httpList:y}},V=T,E={isHide:!1,formItems:[]},d=E,te=x({__name:"index",setup(I){const{pageContentRef:a,handleResetClick:C,handleSearchClick:_}=v(void 0,void 0,d),l=w(null),p="updates",{hasPermissionWithCode:g,permissions:h}=R(p);function n(m,e,i){l.value.show(m,e,i)}return(m,e)=>{const i=u("el-button"),k=u("PageAuth");return f(),c(k,{pageName:p},{default:r(()=>[s(t(B),{"form-config":t(d),onSearchBtnClick:t(_),onResetBtnClick:t(C)},{action:r(()=>[t(g)("002")?(f(),c(i,{key:0,type:"primary",onClick:e[0]||(e[0]=o=>n({},"","create"))},{default:r(()=>[N(" \u65B0\u589E ")]),_:1})):$("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),s(t(P),{ref_key:"pageContentRef",ref:a,"content-config":t(V),powers:t(h),onPreviewBtnClick:e[1]||(e[1]=o=>n(o,o.id,"view")),onUpdateBtnClick:e[2]||(e[2]=o=>n(o,o.id,"edit"))},null,8,["content-config","powers"]),s(S,{ref_key:"modelRef",ref:l,onReload:e[3]||(e[3]=o=>t(a).onSearch())},null,512)]),_:1})}}});export{te as default};