import{aC as a,a2 as R,a3 as E,aE as F,_ as P,d as b,w as p,aF as d,r as c,o as D,G as w,C as i,l as _,u as l,b as s}from"./index.1d5f2f42.js";import M from"./update-modal.13f16de2.js";const{VITE_PROXY_DOMAIN_REAL:G,VITE_PROXY_USER_REAL:T}=R(),o=T+"/admin/",U=e=>a.request("post",`${o}systemadd`,{data:e}),V=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(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:V,httpDelete:N,httpAdd:!0,httpUpdate:!0}},q={class:"ml-[60px]"},H=s("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),$={class:"ml-[5px]"},I=["innerHTML"],O=b({__name:"index",setup(e){const m="updates",t=p(null),u=p(),{run:f,loading:h}=d({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:v,loading:g}=d({success:()=>{u.value.onSearch(),t.value.onHidden()}}),C=n=>f(U(n)),y=n=>v(L(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(),w(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",$,[s("div",{innerHTML:r.system},null,8,I)])])]),_:1},8,["contentConfig","get-content-ref"]),_(M,{ref_key:"updateModalRef",ref:t,loading:l(g)||l(h),onCreate:C,onUpdate:y},null,8,["loading"])]),_:1})}}});var j=P(O,[["__file","D:/work/rep-v3/report-v3/src/views/system/updates/index.vue"]]);export{j as default};
