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