index.0dd560.js 1.9 KB

1
  1. import{aT as r,ac as R,al as E,a$ as F,_ as P,d as b,w as p,b0 as c,r as d,o as T,G as U,C as i,j as _,l as u,h as s}from"./index.js";import D from"./update-modal.a4b6c6.js";const{VITE_PROXY_DOMAIN_REAL:Y,VITE_PROXY_USER_REAL:M}=R(),l=M+"/admin/",V=e=>r.request("post",`${l}versionadd`,{data:e}),w=e=>r.request("post",`${l}versionlist`,{data:e}),L=e=>r.request("post",`${l}versionAdd`,{data:e}),N=[{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"}],S={title:"\u7248\u672C\u66F4\u65B0",columns:N,isTree:!0,notPreview:!0,superForceAction:!0,apis:{httpList:w,httpAdd:!0,httpUpdate:!0}},k={class:"ml-[60px]"},H=s("h1",{class:"font-bold"},"\u66F4\u65B0\u5185\u5BB9",-1),$={class:"ml-[5px]"},q=["innerHTML"],I=b({__name:"index",setup(e){const v="updates",t=p(null),o=p(),{run:f,loading:h}=c({success:()=>{o.value.onSearch(),t.value.onHidden()}}),{run:m,loading:g}=c({success:()=>{o.value.onSearch(),t.value.onHidden()}}),C=n=>f(V(n)),y=n=>m(L(n)),A={content:{preview:()=>t.value.onDisplay(),create:()=>t.value.onDisplay(),update:n=>t.value.onDisplay(n)}};return(n,O)=>{const x=d("PageContainer"),B=d("PageAuth");return T(),U(B,{pageName:v},{default:i(()=>[_(x,{events:A,contentConfig:u(S),"get-content-ref":a=>o.value=a},{expand:i(a=>[s("div",k,[H,s("div",$,[s("div",{innerHTML:a.system},null,8,q)])])]),_:1},8,["contentConfig","get-content-ref"]),_(D,{ref_key:"updateModalRef",ref:t,loading:u(g)||u(h),onCreate:C,onUpdate:y},null,8,["loading"])]),_:1})}}});var z=P(I,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/system/updates/index.vue"]]);export{z as default};