1 |
- import{aH as a,aI as R,aj as E,aF as F,_ as P,d as b,E as p,b8 as c,x as d,o as D,N as U,K as i,y as _,b as n,u as l}from"./index.1417328f.js";import M from"./update-modal.4d1fcf20.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:N}=R(),o=N+"/admin/",T=e=>a.request("post",`${o}systemadd`,{data:e}),V=e=>a.request("post",`${o}systemlist`,{data:e}),H=e=>a.request("post",`${o}systemedit`,{data:e}),L=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:L,httpAdd:!0,httpUpdate:!0}},q={class:"ml-[60px]"},w=n("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),I={class:"ml-[5px]"},$=["innerHTML"],O=b({__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()}}),y=s=>f(T(s)),C=s=>g(H(s)),x={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:s=>t.value.onDisplay(s)}};return(s,j)=>{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,[w,n("div",I,[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:y,onUpdate:C},null,8,["loading"])]),_:1})}}});var K=P(O,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/system/updates/index.vue"]]);export{K as default};
|