index.6556fc.js 2.0 KB

123
  1. import{aU as a,ac as B,am as E,aR as U,_ as V,d as D,x as d,bc as p,r as c,o as F,G as P,D as i,l,m as n,h as _,a as b}from"./index.js";import{E as N,U as w}from"./update-modal.cd5ca0.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:S}=B(),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 E(U,{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=_("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),H=D({__name:"index",setup(e){const m="updates",t=d(null),u=d(),{run:f,loading:v}=p({success:()=>{u.value.onSearch(),t.value.onHidden()}}),{run:g,loading:h}=p({success:()=>{u.value.onSearch(),t.value.onHidden()}}),y=s=>f(k(s)),C=s=>g(M(s)),x={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:s=>t.value.onDisplay(s)}};return(s,X)=>{const R=c("PageContainer"),A=c("PageAuth");return F(),P(A,{pageName:m},{default:i(()=>[l(R,{events:x,contentConfig:n($),"get-content-ref":r=>u.value=r},{expand:i(r=>[_("div",I,[L,b(` <div class="ml-[5px]">\r
  2. <div v-html="row.system" />\r
  3. </div> `),l(n(N),{modelValue:r.system,defaultConfig:{readOnly:!0}},null,8,["modelValue"])])]),_:1},8,["contentConfig","get-content-ref"]),l(w,{ref_key:"updateModalRef",ref:t,loading:n(h)||n(v),onCreate:y,onUpdate:C},null,8,["loading"])]),_:1})}}});var G=V(H,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/system/updates/index.vue"]]);export{G as default};