import{aQ as a,ac as R,al as E,aO as b,_ as F,d as P,w as p,b2 as c,r as d,o as D,G as U,C as i,l as _,u as l,b as n}from"./index.3f1ca816.js";import M from"./update-modal.5d6d2ad5.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:T}=R(),o=T+"/admin/",V=e=>a.request("post",`${o}systemadd`,{data:e}),w=e=>a.request("post",`${o}systemlist`,{data:e}),L=e=>a.request("post",`${o}systemedit`,{data:e}),N=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(b,{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:w,httpDelete:N,httpAdd:!0,httpUpdate:!0}},q={class:"ml-[60px]"},H=n("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),O={class:"ml-[5px]"},$=["innerHTML"],I=P({__name:"index",setup(e){const m="updates",t=p(null),u=p(),{run:f,loading:h}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:g,loading:v}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),C=s=>f(V(s)),y=s=>g(L(s)),x={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:s=>t.value.onDisplay(s)}};return(s,X)=>{const A=d("PageContainer"),B=d("PageAuth");return D(),U(B,{pageName:m},{default:i(()=>[_(A,{events:x,contentConfig:l(k),"get-content-ref":r=>u.value=r},{expand:i(r=>[n("div",q,[H,n("div",O,[n("div",{innerHTML:r.system},null,8,$)])])]),_:1},8,["contentConfig","get-content-ref"]),_(M,{ref_key:"updateModalRef",ref:t,loading:l(v)||l(h),onCreate:C,onUpdate:y},null,8,["loading"])]),_:1})}}});var G=F(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/system/updates/index.vue"]]);export{G as default};