mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-04 04:08:13 +00:00
2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
import{d as N,r as _,X as D,h as r,m as g,w as o,e as d,J as K,c as f,a,F as U,T as $,t as x,B as V,u as A,k as H,aJ as J,Z as q,_ as X,$ as Y,a0 as Z,a1 as j,L as z,S as G,M as O,p as P,g as Q,Y as R}from"./index-f99f26c5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{c as W,a as ee}from"./module-f77f0a65.js";/* empty css */import{_ as te}from"./_plugin-vue_export-helper-c27b6911.js";const k=i=>(P("data-v-30166f4d"),i=i(),Q(),i),oe=k(()=>a("div",{class:"text-page-title mb-[20px]"},"历史版本",-1)),ae={class:"time-dialog h-[500px]",style:{overflow:"auto"}},se={class:"relative"},le={class:"text-[#333333] text-[14px] absolute"},ne=k(()=>a("br",null,null,-1)),re={class:"text-[#999999] text-[14px] w-[78px] block mt-[10px] absolute text-right"},ie={class:"text-[#333] text-[14px]"},pe={key:0,class:"px-[20px] py-[20px] bg-overlay timeline-log-wrap whitespace-pre-wrap rounded-[4px]",style:{background:"rgba(25, 103, 249, 0.03)"}},ce=["innerHTML"],_e=N({__name:"index",props:{upgradeKey:{type:String,required:!0}},setup(i,{expose:b}){const h=i,n=_([]);D(()=>n.value.length?n.value[0]:null);const E=()=>{W({app_key:h.upgradeKey}).then(({data:t})=>{if(p.value=!1,t.forEach((e,s)=>{s==0?e.important=1:e.important=0}),n.value=t,n.value.length==0){R.warning("暂无版本更新信息");return}else c.value=!0})},L=()=>{ee().then(({data:t})=>{p.value=!1,t.forEach((e,s)=>{s==0?e.important=1:e.important=0}),n.value=t,c.value=!0})},u=_(0),p=_(!0),c=_(!1),S=async()=>{J(()=>{u.value=0,h.upgradeKey?E():L()})},y=t=>{const[e,s]=t.split(" "),[m,v]=s.split(":");return[e,`${m}:${v}`]};return b({open:S}),(t,e)=>{const s=q,m=X,v=Y,C=Z,F=j,I=z,T=G,B=O;return r(),g(T,{modelValue:c.value,"onUpdate:modelValue":e[1]||(e[1]=l=>c.value=l),title:A(H)("gxx"),width:"850","destroy-on-close":!0},{default:o(()=>[d(I,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[K((r(),f("div",null,[oe,a("div",ae,[d(F,null,{default:o(()=>[p.value?V("",!0):(r(),g(C,{key:0,style:{width:"100%"}},{default:o(()=>[(r(!0),f(U,null,$(n.value,(l,w)=>(r(),g(v,{key:w,placement:"left",color:t.color},{default:o(()=>[a("div",se,[a("span",le,x(y(l.release_time)[0]),1),ne,a("span",re,x(y(l.release_time)[1]),1)]),d(m,{modelValue:u.value,"onUpdate:modelValue":e[0]||(e[0]=M=>u.value=M),accordion:""},{default:o(()=>[d(s,{name:w},{title:o(()=>[a("span",ie," v"+x(l.version_no),1)]),default:o(()=>[l.upgrade_log?(r(),f("div",pe,[a("div",{innerHTML:l.upgrade_log},null,8,ce)])):V("",!0)]),_:2},1032,["name"])]),_:2},1032,["modelValue"])]),_:2},1032,["color"]))),128))]),_:1}))]),_:1})])])),[[B,p.value]])]),_:1})]),_:1},8,["modelValue","title"])}}});const ke=te(_e,[["__scopeId","data-v-30166f4d"]]);export{ke as default};
|