import{aN as a,aO as R,aj as E,aL as F,_ as P,d as b,E as d,aZ as p,x as c,o as D,N,K as i,y as _,b as s,u as l}from"./index.743f0c80.js";import L from"./update-modal.ad950eaf.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:M}=R(),o=M+"/admin/",T=e=>a.request("post",`${o}systemadd`,{data:e}),U=e=>a.request("post",`${o}systemlist`,{data:e}),V=e=>a.request("post",`${o}systemedit`,{data:e}),w=e=>a.request("post",`${o}menudel`,{data:e}),S=[{type:"expand",slot:"expand"},{label:"\u7248\u672C\u53F7",prop:"version"},{label:"\u7C7B\u578B",prop:"sys_type",cellRenderer({row:e}){return E(F,{type:String(e.sys_type)==="VER"?"":"success",size:"small"},{default:()=>String(e.sys_type)==="VER"?"\u7248\u672C":"\u516C\u544A"})}},{label:"\u66F4\u65B0\u6A21\u5757",prop:"module"},{label:"\u66F4\u65B0\u65F6\u95F4",prop:"addtime"},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation"}],k={title:"\u7248\u672C\u66F4\u65B0",columns:S,isTree:!0,notPreview:!0,apis:{httpList:U,httpDelete:w,httpAdd:!0,httpUpdate:!0}},q={class:"ml-[60px]"},H=s("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),O={class:"ml-[5px]"},$=["innerHTML"],I=b({__name:"index",setup(e){const m="updates",t=d(null),u=d(),{run:f,loading:h}=p({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:g,loading:v}=p({success:()=>{u.value.onSearch(),t.value.onHidden()}}),y=n=>f(T(n)),C=n=>g(V(n)),x={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:n=>t.value.onDisplay(n)}};return(n,X)=>{const A=c("PageContainer"),B=c("PageAuth");return D(),N(B,{pageName:m},{default:i(()=>[_(A,{events:x,contentConfig:l(k),"get-content-ref":r=>u.value=r},{expand:i(r=>[s("div",q,[H,s("div",O,[s("div",{innerHTML:r.system},null,8,$)])])]),_:1},8,["contentConfig","get-content-ref"]),_(L,{ref_key:"updateModalRef",ref:t,loading:l(v)||l(h),onCreate:y,onUpdate:C},null,8,["loading"])]),_:1})}}});var K=P(I,[["__file","D:/work/accout-vue3-ui/src/views/system/updates/index.vue"]]);export{K as default};