import{aU as a,ac as R,al as E,aS as b,_ as F,d as P,w as p,b3 as c,r as d,o as U,G as D,C as i,l as _,u as l,b as n}from"./index.fd765376.js";import M from"./update-modal.2d98c9c0.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:S}=R(),o=S+"/admin/",T=e=>a.request("post",`${o}systemadd`,{data:e}),V=e=>a.request("post",`${o}systemlist`,{data:e}),w=e=>a.request("post",`${o}systemedit`,{data:e}),L=e=>a.request("post",`${o}menudel`,{data:e}),N=[{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:N,isTree:!0,notPreview:!0,apis:{httpList:V,httpDelete:L,httpAdd:!0,httpUpdate:!0}},q={class:"ml-[60px]"},H=n("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),$={class:"ml-[5px]"},I=["innerHTML"],O=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(T(s)),y=s=>g(w(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 U(),D(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",$,[n("div",{innerHTML:r.system},null,8,I)])])]),_: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(O,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/system/updates/index.vue"]]);export{G as default};