import{ck as o,X as B,Z as R,cp as E,_ as F,d as P,m as l,cq as c,r as d,o as b,A as D,x as i,h as _,u as p,b as n}from"./index.e80c366d.js";import U from"./update-modal.d00fdf18.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:M}=B(),a=M+"/admin/",T=e=>o.request("post",`${a}systemadd`,{data:e}),V=e=>o.request("post",`${a}systemlist`,{data:e}),k=e=>o.request("post",`${a}systemedit`,{data:e}),q=e=>o.request("post",`${a}menudel`,{data:e}),L=[{type:"expand",slot:"expand"},{label:"\u7248\u672C\u53F7",prop:"version"},{label:"\u7C7B\u578B",prop:"sys_type",cellRenderer({row:e}){return R(E,{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"}],N={title:"\u7248\u672C\u66F4\u65B0",columns:L,isTree:!0,notPreview:!0,apis:{httpList:V,httpDelete:q,httpAdd:!0,httpUpdate:!0}},S={class:"ml-[60px]"},w=n("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),H={class:"ml-[5px]"},$=["innerHTML"],I="updates",O=P({__name:"index",setup(e){const t=l(null),u=l(),{run:m,loading:f}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:h,loading:g}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),v=s=>m(T(s)),y=s=>h(k(s)),C={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:s=>t.value.onDisplay(s)}};return(s,X)=>{const x=d("PageContainer"),A=d("PageAuth");return b(),D(A,{pageName:I},{default:i(()=>[_(x,{events:C,contentConfig:p(N),"get-content-ref":r=>u.value=r},{expand:i(r=>[n("div",S,[w,n("div",H,[n("div",{innerHTML:r.system},null,8,$)])])]),_:1},8,["contentConfig","get-content-ref"]),_(U,{ref_key:"updateModalRef",ref:t,loading:p(g)||p(f),onCreate:v,onUpdate:y},null,8,["loading"])]),_:1})}}});var Z=F(O,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/system/updates/index.vue"]]);export{Z as default};
