1 |
- import{ck as o,X as B,Z as R,cr as E,_ as F,d as P,m as p,cv as c,r as d,o as b,A as D,x as i,h as _,u as l,b as n}from"./index.56449854.js";import U from"./update-modal.7f38731f.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}),L=e=>o.request("post",`${a}menudel`,{data:e}),N=[{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"}],S={title:"\u7248\u672C\u66F4\u65B0",columns:N,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),H={class:"ml-[5px]"},$=["innerHTML"],I="updates",O=P({__name:"index",setup(e){const t=p(null),u=p(),{run:m,loading:f}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:h,loading:v}=c({success:()=>{u.value.onSearch(),t.value.onHidden()}}),g=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:l(S),"get-content-ref":r=>u.value=r},{expand:i(r=>[n("div",q,[w,n("div",H,[n("div",{innerHTML:r.system},null,8,$)])])]),_:1},8,["contentConfig","get-content-ref"]),_(U,{ref_key:"updateModalRef",ref:t,loading:l(v)||l(f),onCreate:g,onUpdate:y},null,8,["loading"])]),_:1})}}});var Z=F(O,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/system/updates/index.vue"]]);export{Z as default};
|