feat:(1.2.0-beta2): 回调节点新增废弃提
This commit is contained in:
parent
d5bd77325d
commit
babc4fac01
@ -1,4 +1,4 @@
|
||||
import{bo as ee,b3 as x,bZ as te,d as ne,b4 as le,b6 as ae,r as m,b8 as oe,b9 as se,b7 as V,b_ as ie,a as v,b$ as re,ba as ue,bP as de,c0 as F,al as u,c1 as ce,c2 as me,c3 as fe,D as he,c4 as ve,O as ge,c5 as pe,c6 as be,c7 as Se,c8 as Te,c9 as ye,be as f}from"./index-U8_FYD1k.js";function Ce(t){return t.map(A)}function A(t){var i,l;return typeof t=="string"?{label:t,value:t}:t.type==="group"?{type:"group",label:(i=t.label)!==null&&i!==void 0?i:t.name,value:(l=t.value)!==null&&l!==void 0?l:t.name,key:t.key||t.name,children:t.children.map(a=>A(a))}:t}const _e=ee([x("auto-complete",`
|
||||
import{bo as ee,b3 as x,bZ as te,d as ne,b4 as le,b6 as ae,r as m,b8 as oe,b9 as se,b7 as V,b_ as ie,a as v,b$ as re,ba as ue,bP as de,c0 as F,al as u,c1 as ce,c2 as me,c3 as fe,D as he,c4 as ve,O as ge,c5 as pe,c6 as be,c7 as Se,c8 as Te,c9 as ye,be as f}from"./index--PhRNylI.js";function Ce(t){return t.map(A)}function A(t){var i,l;return typeof t=="string"?{label:t,value:t}:t.type==="group"?{type:"group",label:(i=t.label)!==null&&i!==void 0?i:t.name,value:(l=t.value)!==null&&l!==void 0?l:t.name,key:t.key||t.name,children:t.children.map(a=>A(a))}:t}const _e=ee([x("auto-complete",`
|
||||
z-index: auto;
|
||||
position: relative;
|
||||
display: inline-flex;
|
@ -1,4 +1,4 @@
|
||||
import{d as P,al as n,b3 as f,bp as x,bu as o,bo as $,dq as H,bM as O,b4 as D,r as V,a as N,b9 as W,b7 as T,dr as q,bO as K,cF as F,ba as Z,bD as G,be as I,ds as J,b8 as k,c5 as Q,cC as X,dt as Y,dl as ee,bF as re,bE as ae,cj as te,co as z,di as A,du as le,bb as oe,dv as ne}from"./index-U8_FYD1k.js";const se=P({name:"ChevronLeft",render(){return n("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),ie=f("collapse","width: 100%;",[f("collapse-item",`
|
||||
import{d as P,al as n,b3 as f,bp as x,bu as o,bo as $,dq as H,bM as O,b4 as D,r as V,a as N,b9 as W,b7 as T,dr as q,bO as K,cF as F,ba as Z,bD as G,be as I,ds as J,b8 as k,c5 as Q,cC as X,dt as Y,dl as ee,bF as re,bE as ae,cj as te,co as z,di as A,du as le,bb as oe,dv as ne}from"./index--PhRNylI.js";const se=P({name:"ChevronLeft",render(){return n("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),ie=f("collapse","width: 100%;",[f("collapse-item",`
|
||||
font-size: var(--n-font-size);
|
||||
color: var(--n-text-color);
|
||||
transition:
|
@ -1,4 +1,4 @@
|
||||
import{bo as p,b3 as e,bM as F,bp as C,bu as O,dw as G,dx as H,d as E,b4 as K,b7 as L,dy as N,a as j,bv as k,ba as W,bX as X,dz as q,al as n,dA as J,dB as Q}from"./index-U8_FYD1k.js";function D(r,b="default",a=[]){const{children:i}=r;if(i!==null&&typeof i=="object"&&!Array.isArray(i)){const l=i[b];if(typeof l=="function")return l()}return a}const V="DESCRIPTION_ITEM_FLAG";function U(r){return typeof r=="object"&&r&&!Array.isArray(r)?r.type&&r.type[V]:!1}const Y=p([e("descriptions",{fontSize:"var(--n-font-size)"},[e("descriptions-separator",`
|
||||
import{bo as p,b3 as e,bM as F,bp as C,bu as O,dw as G,dx as H,d as E,b4 as K,b7 as L,dy as N,a as j,bv as k,ba as W,bX as X,dz as q,al as n,dA as J,dB as Q}from"./index--PhRNylI.js";function D(r,b="default",a=[]){const{children:i}=r;if(i!==null&&typeof i=="object"&&!Array.isArray(i)){const l=i[b];if(typeof l=="function")return l()}return a}const V="DESCRIPTION_ITEM_FLAG";function U(r){return typeof r=="object"&&r&&!Array.isArray(r)?r.type&&r.type[V]:!1}const Y=p([e("descriptions",{fontSize:"var(--n-font-size)"},[e("descriptions-separator",`
|
||||
display: inline-block;
|
||||
margin: 0 8px 0 2px;
|
||||
`),e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[e("descriptions-table-header",{padding:"var(--n-th-padding)"}),e("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),F("bordered",[e("descriptions-table-wrapper",[e("descriptions-table",[e("descriptions-table-row",[p("&:last-child",[e("descriptions-table-content",{paddingBottom:0})])])])])]),C("left-label-placement",[e("descriptions-table-content",[p("> *",{verticalAlign:"top"})])]),C("left-label-align",[p("th",{textAlign:"left"})]),C("center-label-align",[p("th",{textAlign:"center"})]),C("right-label-align",[p("th",{textAlign:"right"})]),C("bordered",[e("descriptions-table-wrapper",`
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{bo as P,b3 as o,bp as b,d as z,a as x,dR as C,al as r,bb as W,dS as q,dT as O,dU as T,dV as A,b7 as _,b4 as L,dW as M,bv as I,ba as X}from"./index-U8_FYD1k.js";const j=P([o("progress",{display:"inline-block"},[o("progress-icon",`
|
||||
import{bo as P,b3 as o,bp as b,d as z,a as x,dR as C,al as r,bb as W,dS as q,dT as O,dU as T,dV as A,b7 as _,b4 as L,dW as M,bv as I,ba as X}from"./index--PhRNylI.js";const j=P([o("progress",{display:"inline-block"},[o("progress-icon",`
|
||||
color: var(--n-icon-color);
|
||||
transition: color .3s var(--n-bezier);
|
||||
`),b("line",`
|
@ -1 +1 @@
|
||||
import{d as s,i as a,j as o,o as r,b as t,e as n}from"./index-U8_FYD1k.js";const c={class:"h-full"},l=["src"],d=s({name:"iframe-page",__name:"[url]",props:{url:{}},setup(i){return a(()=>{}),o(()=>{}),(e,u)=>(r(),t("div",c,[n("iframe",{id:"iframePage",class:"size-full",src:e.url},null,8,l)]))}});export{d as default};
|
||||
import{d as s,i as a,j as o,o as r,b as t,e as n}from"./index--PhRNylI.js";const c={class:"h-full"},l=["src"],d=s({name:"iframe-page",__name:"[url]",props:{url:{}},setup(i){return a(()=>{}),o(()=>{}),(e,u)=>(r(),t("div",c,[n("iframe",{id:"iframePage",class:"size-full",src:e.url},null,8,l)]))}});export{d as default};
|
@ -1 +1 @@
|
||||
import{y as n}from"./index-U8_FYD1k.js";function o(){const r=n();function u(t){return r.isLogin?typeof t=="string"?r.userInfo.roles.includes(t):t.some(e=>r.userInfo.roles.includes(e)):!1}return{hasAuth:u}}export{o as u};
|
||||
import{y as n}from"./index--PhRNylI.js";function o(){const r=n();function u(t){return r.isLogin?typeof t=="string"?r.userInfo.roles.includes(t):t.some(e=>r.userInfo.roles.includes(e)):!1}return{hasAuth:u}}export{o as u};
|
@ -1,4 +1,4 @@
|
||||
import{d as Nt,al as U,b3 as De,bM as ul,bo as et,bp as wt,bu as Ii,b4 as Sh,cy as Gu,bO as xh,df as Fu,cF as Qh,aZ as Hu,a_ as Ku,a$ as Ju,b0 as ed,dg as td,bD as id,bE as wo,D as xr,dh as nd,r as ei,b8 as Qn,b9 as sd,b7 as wh,a as Be,ba as rd,b5 as od,B as Pi,cq as dl,di as Ol,dj as Us,dk as Ls,dl as ld,bb as vi,bc as pl,dm as ad,be as Is,dn as hd,q as Qr,i as cd,ap as fd,n as ud,M as dd,o as Od,c as pd,h as ml}from"./index-U8_FYD1k.js";import{A as md}from"./Grid-CRdsjMH4.js";const gd=Nt({name:"ArrowUp",render(){return U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},U("g",{fill:"none"},U("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),H="0!important",kh="-1px!important";function Gt(n){return wt(`${n}-type`,[et("& +",[De("button",{},[wt(`${n}-type`,[Ii("border",{borderLeftWidth:H}),Ii("state-border",{left:kh})])])])])}function Ft(n){return wt(`${n}-type`,[et("& +",[De("button",[wt(`${n}-type`,[Ii("border",{borderTopWidth:H}),Ii("state-border",{top:kh})])])])])}const bd=De("button-group",`
|
||||
import{d as Nt,al as U,b3 as De,bM as ul,bo as et,bp as wt,bu as Ii,b4 as Sh,cy as Gu,bO as xh,df as Fu,cF as Qh,aZ as Hu,a_ as Ku,a$ as Ju,b0 as ed,dg as td,bD as id,bE as wo,D as xr,dh as nd,r as ei,b8 as Qn,b9 as sd,b7 as wh,a as Be,ba as rd,b5 as od,B as Pi,cq as dl,di as Ol,dj as Us,dk as Ls,dl as ld,bb as vi,bc as pl,dm as ad,be as Is,dn as hd,q as Qr,i as cd,ap as fd,n as ud,M as dd,o as Od,c as pd,h as ml}from"./index--PhRNylI.js";import{A as md}from"./Grid-C8sbif0M.js";const gd=Nt({name:"ArrowUp",render(){return U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},U("g",{fill:"none"},U("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}}),H="0!important",kh="-1px!important";function Gt(n){return wt(`${n}-type`,[et("& +",[De("button",{},[wt(`${n}-type`,[Ii("border",{borderLeftWidth:H}),Ii("state-border",{left:kh})])])])])}function Ft(n){return wt(`${n}-type`,[et("& +",[De("button",[wt(`${n}-type`,[Ii("border",{borderTopWidth:H}),Ii("state-border",{top:kh})])])])])}const bd=De("button-group",`
|
||||
flex-wrap: nowrap;
|
||||
display: inline-flex;
|
||||
position: relative;
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aP as e}from"./index-U8_FYD1k.js";function o(){return e({url:"/dashboard/task-retry-job",method:"get"})}function a(){return e({url:"/group/all/group-name/list",method:"get"})}function n(t){return e({url:"/dashboard/retry/line",method:"get",params:t})}function u(t){return e({url:"/dashboard/job/line",method:"get",params:t})}function d(t){return e({url:"/dashboard/pods",method:"get",params:t})}export{u as a,a as b,o as c,d,n as f};
|
||||
import{aP as e}from"./index--PhRNylI.js";function o(){return e({url:"/dashboard/task-retry-job",method:"get"})}function a(){return e({url:"/group/all/group-name/list",method:"get"})}function n(t){return e({url:"/dashboard/retry/line",method:"get",params:t})}function u(t){return e({url:"/dashboard/job/line",method:"get",params:t})}function d(t){return e({url:"/dashboard/pods",method:"get",params:t})}export{u as a,a as b,o as c,d,n as f};
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{a_ as O,dX as D,bC as v,dY as b,b3 as x,bu as c,bp as w,dq as q,bo as G,b7 as A,d as E,b4 as K,cF as U,a as S,dZ as X,bv as g,ba as Y,r as Z,al as i,de as J,bG as Q,cq as ee,bb as oe,dT as re,dU as ne,dV as te,dS as se,am as le,cC as ie,k as ae,y as ce,o as de,c as ue,w as ge,e as R,g as $,t as he,ai as fe,l as ve}from"./index-U8_FYD1k.js";function be(n){const{lineHeight:e,borderRadius:a,fontWeightStrong:l,baseColor:t,dividerColor:h,actionColor:I,textColor1:f,textColor2:r,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,infoColor:o,successColor:_,warningColor:z,errorColor:y,fontSize:T}=n;return Object.assign(Object.assign({},D),{fontSize:T,lineHeight:e,titleFontWeight:l,borderRadius:a,border:`1px solid ${h}`,color:I,titleTextColor:f,iconColor:r,contentTextColor:r,closeBorderRadius:a,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,borderInfo:`1px solid ${v(t,b(o,{alpha:.25}))}`,colorInfo:v(t,b(o,{alpha:.08})),titleTextColorInfo:f,iconColorInfo:o,contentTextColorInfo:r,closeColorHoverInfo:d,closeColorPressedInfo:C,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:s,borderSuccess:`1px solid ${v(t,b(_,{alpha:.25}))}`,colorSuccess:v(t,b(_,{alpha:.08})),titleTextColorSuccess:f,iconColorSuccess:_,contentTextColorSuccess:r,closeColorHoverSuccess:d,closeColorPressedSuccess:C,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:s,borderWarning:`1px solid ${v(t,b(z,{alpha:.33}))}`,colorWarning:v(t,b(z,{alpha:.08})),titleTextColorWarning:f,iconColorWarning:z,contentTextColorWarning:r,closeColorHoverWarning:d,closeColorPressedWarning:C,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:s,borderError:`1px solid ${v(t,b(y,{alpha:.25}))}`,colorError:v(t,b(y,{alpha:.08})),titleTextColorError:f,iconColorError:y,contentTextColorError:r,closeColorHoverError:d,closeColorPressedError:C,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:s})}const Ce={name:"Alert",common:O,self:be},pe=x("alert",`
|
||||
import{a_ as O,dX as D,bC as v,dY as b,b3 as x,bu as c,bp as w,dq as q,bo as G,b7 as A,d as E,b4 as K,cF as U,a as S,dZ as X,bv as g,ba as Y,r as Z,al as i,de as J,bG as Q,cq as ee,bb as oe,dT as re,dU as ne,dV as te,dS as se,am as le,cC as ie,k as ae,y as ce,o as de,c as ue,w as ge,e as R,g as $,t as he,ai as fe,l as ve}from"./index--PhRNylI.js";function be(n){const{lineHeight:e,borderRadius:a,fontWeightStrong:l,baseColor:t,dividerColor:h,actionColor:I,textColor1:f,textColor2:r,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,infoColor:o,successColor:_,warningColor:z,errorColor:y,fontSize:T}=n;return Object.assign(Object.assign({},D),{fontSize:T,lineHeight:e,titleFontWeight:l,borderRadius:a,border:`1px solid ${h}`,color:I,titleTextColor:f,iconColor:r,contentTextColor:r,closeBorderRadius:a,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,borderInfo:`1px solid ${v(t,b(o,{alpha:.25}))}`,colorInfo:v(t,b(o,{alpha:.08})),titleTextColorInfo:f,iconColorInfo:o,contentTextColorInfo:r,closeColorHoverInfo:d,closeColorPressedInfo:C,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:s,borderSuccess:`1px solid ${v(t,b(_,{alpha:.25}))}`,colorSuccess:v(t,b(_,{alpha:.08})),titleTextColorSuccess:f,iconColorSuccess:_,contentTextColorSuccess:r,closeColorHoverSuccess:d,closeColorPressedSuccess:C,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:s,borderWarning:`1px solid ${v(t,b(z,{alpha:.33}))}`,colorWarning:v(t,b(z,{alpha:.08})),titleTextColorWarning:f,iconColorWarning:z,contentTextColorWarning:r,closeColorHoverWarning:d,closeColorPressedWarning:C,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:s,borderError:`1px solid ${v(t,b(y,{alpha:.25}))}`,colorError:v(t,b(y,{alpha:.08})),titleTextColorError:f,iconColorError:y,contentTextColorError:r,closeColorHoverError:d,closeColorPressedError:C,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:s})}const Ce={name:"Alert",common:O,self:be},pe=x("alert",`
|
||||
line-height: var(--n-line-height);
|
||||
border-radius: var(--n-border-radius);
|
||||
position: relative;
|
@ -1 +1 @@
|
||||
import{d as b,Z as h,a0 as L,cR as M,L as N,p as W,r as $,a as C,ap as D,n as B,o as d,c as u,w as i,f as E,cS as U,cr as f,g as z,t as A,h as T,b as q,ai as F,d9 as I,da as O,cN as R,cO as Z,l as j}from"./index-U8_FYD1k.js";const G=b({name:"DetailDrawer",__name:"detail-drawer",props:h({title:{},width:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:h(["update:modelValue","update:show","afterLeave"],["update:modelValue"]),setup(p,{emit:v}){const t=p,r=v,m=L(p,"modelValue"),x=M(),_=N(),a=W({width:0}),n=$(!1),y=C(()=>{if(t.width)return n.value?t.width[1]:t.width[0];const e=360,o=600;if(_.isMobile)return a.width*.9>=e?`${e}px`:"90%";let s=a.width*.3>=e?`${e}px`:"30%";s=a.width<=420?"90%":s;let l=a.width*.5>=o?`${o}px`:"50%";return l=a.width<=420?"90%":l,n.value?l:s}),c=()=>{a.width=document.documentElement.clientWidth};D(()=>{c(),window.addEventListener("resize",c)}),B(()=>{window.removeEventListener("resize",c)});const g=e=>{r("update:modelValue",e),r("update:show",e)},k=()=>{r("afterLeave")};return(e,o)=>{const s=I,l=O,S=R,V=Z;return d(),u(V,{show:m.value,"onUpdate:show":[o[1]||(o[1]=w=>m.value=w),g],"display-directive":"if",width:y.value,onAfterLeave:k},{default:i(()=>[E(S,{title:t.title,"native-scrollbar":!1,closable:"","header-class":"operate-dawer-header"},U({header:i(()=>[z(A(t.title)+" ",1),!T(_).isMobile&&(!t.width||t.width&&t.width[0]!==t.width[1])?(d(),q("div",{key:0,quaternary:"",class:"fullscreen text-18px color-#6a6a6a",onClick:o[0]||(o[0]=w=>n.value=!n.value)},[n.value?(d(),u(s,{key:0})):(d(),u(l,{key:1}))])):F("",!0)]),default:i(()=>[f(e.$slots,"default",{},void 0,!0)]),_:2},[x.footer?{name:"footer",fn:i(()=>[f(e.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1032,["title"])]),_:3},8,["show","width"])}}}),J=j(G,[["__scopeId","data-v-ef3922d0"]]);export{J as _};
|
||||
import{d as b,Z as h,a0 as L,cR as M,L as N,p as W,r as $,a as C,ap as D,n as B,o as d,c as u,w as i,f as E,cS as U,cr as f,g as z,t as A,h as T,b as q,ai as F,d9 as I,da as O,cN as R,cO as Z,l as j}from"./index--PhRNylI.js";const G=b({name:"DetailDrawer",__name:"detail-drawer",props:h({title:{},width:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:h(["update:modelValue","update:show","afterLeave"],["update:modelValue"]),setup(p,{emit:v}){const t=p,r=v,m=L(p,"modelValue"),x=M(),_=N(),a=W({width:0}),n=$(!1),y=C(()=>{if(t.width)return n.value?t.width[1]:t.width[0];const e=360,o=600;if(_.isMobile)return a.width*.9>=e?`${e}px`:"90%";let s=a.width*.3>=e?`${e}px`:"30%";s=a.width<=420?"90%":s;let l=a.width*.5>=o?`${o}px`:"50%";return l=a.width<=420?"90%":l,n.value?l:s}),c=()=>{a.width=document.documentElement.clientWidth};D(()=>{c(),window.addEventListener("resize",c)}),B(()=>{window.removeEventListener("resize",c)});const g=e=>{r("update:modelValue",e),r("update:show",e)},k=()=>{r("afterLeave")};return(e,o)=>{const s=I,l=O,S=R,V=Z;return d(),u(V,{show:m.value,"onUpdate:show":[o[1]||(o[1]=w=>m.value=w),g],"display-directive":"if",width:y.value,onAfterLeave:k},{default:i(()=>[E(S,{title:t.title,"native-scrollbar":!1,closable:"","header-class":"operate-dawer-header"},U({header:i(()=>[z(A(t.title)+" ",1),!T(_).isMobile&&(!t.width||t.width&&t.width[0]!==t.width[1])?(d(),q("div",{key:0,quaternary:"",class:"fullscreen text-18px color-#6a6a6a",onClick:o[0]||(o[0]=w=>n.value=!n.value)},[n.value?(d(),u(s,{key:0})):(d(),u(l,{key:1}))])):F("",!0)]),default:i(()=>[f(e.$slots,"default",{},void 0,!0)]),_:2},[x.footer?{name:"footer",fn:i(()=>[f(e.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1032,["title"])]),_:3},8,["show","width"])}}}),J=j(G,[["__scopeId","data-v-ef3922d0"]]);export{J as _};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as l,u as m,a as u,o as _,b as d,e as x,f as o,w as f,g as y,t as B,h as t,$ as h,_ as v,B as g}from"./index-U8_FYD1k.js";const k={class:"size-full min-h-520px flex-col-center gap-24px overflow-hidden"},N={class:"flex text-400px text-primary"},C=l({name:"ExceptionBase",__name:"exception-base",props:{type:{}},setup(n){const s=n,{routerPushByKey:a}=m(),c={403:"no-permission",404:"not-found",500:"service-error"},r=u(()=>c[s.type]);return($,e)=>{const i=v,p=g;return _(),d("div",k,[x("div",N,[o(i,{"local-icon":r.value},null,8,["local-icon"])]),o(p,{type:"primary",onClick:e[0]||(e[0]=b=>t(a)("root"))},{default:f(()=>[y(B(t(h)("common.backToHome")),1)]),_:1})])}}});export{C as _};
|
||||
import{d as l,u as m,a as u,o as _,b as d,e as x,f as o,w as f,g as y,t as B,h as t,$ as h,_ as v,B as g}from"./index--PhRNylI.js";const k={class:"size-full min-h-520px flex-col-center gap-24px overflow-hidden"},N={class:"flex text-400px text-primary"},C=l({name:"ExceptionBase",__name:"exception-base",props:{type:{}},setup(n){const s=n,{routerPushByKey:a}=m(),c={403:"no-permission",404:"not-found",500:"service-error"},r=u(()=>c[s.type]);return($,e)=>{const i=v,p=g;return _(),d("div",k,[x("div",N,[o(i,{"local-icon":r.value},null,8,["local-icon"])]),o(p,{type:"primary",onClick:e[0]||(e[0]=b=>t(a)("root"))},{default:f(()=>[y(B(t(h)("common.backToHome")),1)]),_:1})])}}});export{C as _};
|
@ -1 +1 @@
|
||||
import{aP as r}from"./index-U8_FYD1k.js";function u(t){return r({url:"/group/list",method:"get",params:t})}function o(t){return r({url:"/group/all/group-name/list",method:"get",params:t})}function n(t){return r({url:"/group",method:"post",data:t})}function i(t){return r({url:"/group",method:"put",data:t})}function p(t){return r({url:"/group/status",method:"put",data:t})}function l(){return r({url:"/group/partition-table/list",method:"get"})}function f(t){return r({url:"/group/all/group-config/list",method:"post",data:t})}function s(t){return r({url:`/group/${t}`,method:"delete"})}export{i as a,l as b,u as c,s as d,p as e,n as f,o as g,f as h};
|
||||
import{aP as r}from"./index--PhRNylI.js";function u(t){return r({url:"/group/list",method:"get",params:t})}function o(t){return r({url:"/group/all/group-name/list",method:"get",params:t})}function n(t){return r({url:"/group",method:"post",data:t})}function i(t){return r({url:"/group",method:"put",data:t})}function p(t){return r({url:"/group/status",method:"put",data:t})}function l(){return r({url:"/group/partition-table/list",method:"get"})}function f(t){return r({url:"/group/all/group-config/list",method:"post",data:t})}function s(t){return r({url:`/group/${t}`,method:"delete"})}export{i as a,l as b,u as c,s as d,p as e,n as f,o as g,f as h};
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{a as Oe,N as oe,b as Ce}from"./search-form.vue_vue_type_script_setup_true_lang-3GIWxXJ5.js";import{d as Te,_ as $e,a as Ie}from"./download-BAI9OXre.js";import{_ as Ue}from"./delete-alert-Y07N51Pq.js";import{bo as J,b3 as re,bp as se,d as L,b4 as Ve,b7 as de,bq as ze,a as pe,ba as qe,al as me,Z as G,a0 as W,L as fe,r as Q,q as j,o as C,c as U,h as t,w as n,f as e,$ as a,g,t as N,ai as ge,aI as _e,a9 as be,z as Ke,A as Be,p as Le,aK as Pe,br as ne,b as ye,a1 as je,aJ as ve,a3 as Me,a4 as Se,bs as Ae,e as ue,ab as he,D as Fe,E as Ge,H as Ee,aa as Ne,_ as He,B as F,a8 as Ze,I as Je,ac as te,aL as Qe,aM as xe,bt as ke,Y as ae,ag as We,ah as A,aj as Ye,F as Xe,ak as et}from"./index-U8_FYD1k.js";import{a as tt,b as at,_ as nt,c as lt,d as ot,e as rt,g as st}from"./select-scene.vue_vue_type_script_setup_true_lang-Dhido4fH.js";import{_ as ut,u as it,a as ct}from"./table-Ca9YKwr6.js";import{_ as dt}from"./status-switch.vue_vue_type_script_setup_true_lang-BGGoDKVI.js";import{u as pt}from"./auth-D2whHLm_.js";import{_ as mt}from"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import{_ as we,a as ft}from"./route-key.vue_vue_type_script_setup_true_lang-BZlszhFn.js";import{_ as Re}from"./select-group.vue_vue_type_script_setup_true_lang-BAt3hPVE.js";import{_ as gt}from"./text-Cj_9a8UY.js";import{_ as _t,d as bt,c as yt,a as vt,b as St}from"./Grid-CRdsjMH4.js";import{_ as ht,a as Nt}from"./DescriptionsItem-2g61_6UF.js";import"./Progress-iEiKJil4.js";import"./group-CCJZO849.js";const ie=J("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),ce=[J("&:first-child",`
|
||||
import{a as Oe,N as oe,b as Ce}from"./search-form.vue_vue_type_script_setup_true_lang-D7hHwQXT.js";import{d as Te,_ as $e,a as Ie}from"./download-B8kLvDP_.js";import{_ as Ue}from"./delete-alert-C8iwsugF.js";import{bo as J,b3 as re,bp as se,d as L,b4 as Ve,b7 as de,bq as ze,a as pe,ba as qe,al as me,Z as G,a0 as W,L as fe,r as Q,q as j,o as C,c as U,h as t,w as n,f as e,$ as a,g,t as N,ai as ge,aI as _e,a9 as be,z as Ke,A as Be,p as Le,aK as Pe,br as ne,b as ye,a1 as je,aJ as ve,a3 as Me,a4 as Se,bs as Ae,e as ue,ab as he,D as Fe,E as Ge,H as Ee,aa as Ne,_ as He,B as F,a8 as Ze,I as Je,ac as te,aL as Qe,aM as xe,bt as ke,Y as ae,ag as We,ah as A,aj as Ye,F as Xe,ak as et}from"./index--PhRNylI.js";import{a as tt,b as at,_ as nt,c as lt,d as ot,e as rt,g as st}from"./select-scene.vue_vue_type_script_setup_true_lang-D5b2c2NA.js";import{_ as ut,u as it,a as ct}from"./table-DvozQPKE.js";import{_ as dt}from"./status-switch.vue_vue_type_script_setup_true_lang-DMX4IkJr.js";import{u as pt}from"./auth-CqD89xZX.js";import{_ as mt}from"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import{_ as we,a as ft}from"./route-key.vue_vue_type_script_setup_true_lang-1zj4qELf.js";import{_ as Re}from"./select-group.vue_vue_type_script_setup_true_lang-CNpCk88a.js";import{_ as gt}from"./text-Djjp3mvS.js";import{_ as _t,d as bt,c as yt,a as vt,b as St}from"./Grid-C8sbif0M.js";import{_ as ht,a as Nt}from"./DescriptionsItem-BzmwSMF7.js";import"./Progress-B_nFqYUL.js";import"./group-Rd_jp_gh.js";const ie=J("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),ce=[J("&:first-child",`
|
||||
margin-top: 0;
|
||||
`),J("&:last-child",`
|
||||
margin-bottom: 0;
|
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
import{d as i,bY as l,i as p,r as c,o as u,c as f,h as d,$ as w}from"./index--PhRNylI.js";import{u as k,_}from"./workflow.vue_vue_type_style_index_0_lang-CSNo0yjz.js";import{e as v}from"./workflow-CnYlkeoT.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CiYHLygb.js";import"./table-DvozQPKE.js";import"./Grid-C8sbif0M.js";import"./job-Tsw2tz69.js";import"./detail-drawer-CS6ssopv.js";import"./DescriptionsItem-BzmwSMF7.js";import"./log-drawer-DaEZFcwz.js";import"./CollapseItem-BccPzD5x.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import"./group-Rd_jp_gh.js";const M=i({name:"workflow_form_add",__name:"index",setup(x){const t=k(),r=l();p(()=>{t.clear(),t.setType(0)});const e=c({workflowName:`WF-${new Date().getTime()}`,workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60,wfContext:'{"init":""}'}),s=async()=>{var o;const{error:a}=await v(e.value);a||((o=window.$message)==null||o.info(w("common.addSuccess")),r.push("/workflow/task"))},n=()=>{r.push("/workflow/task")};return(a,o)=>(u(),f(d(_),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=m=>e.value=m),onSave:s,onCancel:n},null,8,["modelValue"]))}});export{M as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a as B,b as I}from"./search-form.vue_vue_type_script_setup_true_lang-3GIWxXJ5.js";import{d as S,Z as W,a0 as $,o as R,c as z,w as k,f as t,h as e,$ as o,L as F,b as M,ah as w,bi as j,Y as y,g as N,a3 as T,G as C,F as D,ak as O}from"./index-U8_FYD1k.js";import{d as U}from"./dashboard-D04YVXEJ.js";import{_ as V,u as G,a as K}from"./table-Ca9YKwr6.js";import{_ as q}from"./select-group.vue_vue_type_script_setup_true_lang-BAt3hPVE.js";import{b as A}from"./Grid-CRdsjMH4.js";import"./group-CCJZO849.js";const E=S({name:"PodsSearch",__name:"pods-search",props:{model:{required:!0},modelModifiers:{}},emits:W(["reset","search"],["update:model"]),setup(d,{emit:b}){const m=b,l=$(d,"model");function h(){m("reset")}function p(){m("search")}return(x,f)=>{const u=V,v=B;return R(),z(v,{model:l.value,onSearch:p,onReset:h},{default:k(()=>[t(u,{span:"24 s:12 m:6",label:e(o)("page.pods.groupName"),path:"groupName",class:"pr-24px"},{default:k(()=>[t(q,{value:l.value.groupName,"onUpdate:value":f[0]||(f[0]=i=>l.value.groupName=i),placeholder:e(o)("page.pods.form.groupName"),clearable:""},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])}}}),H={class:"min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto"};function P(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!O(d)}const te=S({name:"pods",__name:"index",setup(d){const b=F(),{columns:m,columnChecks:l,data:h,getData:p,loading:x,mobilePagination:f,searchParams:u,resetSearchParams:v}=G({apiFn:U,apiParams:{page:1,size:10,groupName:null},columns:()=>[{key:"hostId",title:o("page.pods.hostId"),align:"left",resizable:!0,width:150,minWidth:150,maxWidth:200},{key:"nodeType",title:o("page.pods.nodeType"),align:"center",width:80,render:s=>{if(s.nodeType===null)return null;const a={1:"info",2:"primary"},r=o(j[s.nodeType]);return t(y,{type:a[s.nodeType]},P(r)?r:{default:()=>[r]})}},{key:"groupName",title:o("page.pods.groupName"),align:"left",width:120,resizable:!0,minWidth:120,maxWidth:200},{key:"hostIp",title:o("page.pods.hostIp"),align:"left",width:120},{key:"hostPort",title:o("page.pods.hostPort"),align:"left",width:80},{key:"consumerBuckets",title:o("page.pods.consumerBuckets"),align:"left",width:300,resizable:!0,minWidth:120,maxWidth:400,render:s=>{if(s.nodeType===null)return null;const a=g=>{var n;const c=g?(n=s.consumerBuckets)==null?void 0:n.slice(0,g):s.consumerBuckets;return c==null?void 0:c.map(_=>t(y,{type:"error",key:_,class:"m-1 justify-center"},P(_)?_:{default:()=>[_]}))},r=()=>t(y,{type:"info"},{default:()=>[s.contextPath??"/"]});return s.nodeType===1?t(T,null,[N("Path: "),r()]):t(T,null,[t("span",null,[N("Bucket: ")]),a(10),t(C,{trigger:"hover"},{trigger:()=>t(y,{type:"error"},{default:()=>[N("...")]}),default:()=>t("div",{class:"grid grid-cols-16"},[a()])})])}},{key:"updateDt",title:o("page.pods.updateDt"),align:"left",width:130}]}),{checkedRowKeys:i}=K(h,p);return(s,a)=>{const r=I,g=A,c=D;return R(),M("div",H,[t(E,{model:e(u),"onUpdate:model":a[0]||(a[0]=n=>w(u)?u.value=n:null),onReset:e(v),onSearch:e(p)},null,8,["model","onReset","onSearch"]),t(c,{title:e(o)("page.pods.title"),bordered:!1,size:"small","header-class":"view-card-header",class:"sm:flex-1-hidden card-wrapper"},{"header-extra":k(()=>[t(r,{columns:e(l),"onUpdate:columns":a[1]||(a[1]=n=>w(l)?l.value=n:null),"disabled-delete":e(i).length===0,loading:e(x),"show-add":!1,"show-delete":!1,onRefresh:e(p)},null,8,["columns","disabled-delete","loading","onRefresh"])]),default:k(()=>[t(g,{"checked-row-keys":e(i),"onUpdate:checkedRowKeys":a[2]||(a[2]=n=>w(i)?i.value=n:null),columns:e(m),data:e(h),"flex-height":!e(b).isMobile,"scroll-x":962,loading:e(x),remote:"","row-key":n=>n.hostId,pagination:e(f),class:"sm:h-full"},null,8,["checked-row-keys","columns","data","flex-height","loading","row-key","pagination"])]),_:1},8,["title"])])}}});export{te as default};
|
||||
import{a as B,b as I}from"./search-form.vue_vue_type_script_setup_true_lang-D7hHwQXT.js";import{d as S,Z as W,a0 as $,o as R,c as z,w as k,f as t,h as e,$ as o,L as F,b as M,ah as w,bi as j,Y as y,g as N,a3 as T,G as C,F as D,ak as O}from"./index--PhRNylI.js";import{d as U}from"./dashboard-DxAW8khm.js";import{_ as V,u as G,a as K}from"./table-DvozQPKE.js";import{_ as q}from"./select-group.vue_vue_type_script_setup_true_lang-CNpCk88a.js";import{b as A}from"./Grid-C8sbif0M.js";import"./group-Rd_jp_gh.js";const E=S({name:"PodsSearch",__name:"pods-search",props:{model:{required:!0},modelModifiers:{}},emits:W(["reset","search"],["update:model"]),setup(d,{emit:b}){const m=b,l=$(d,"model");function h(){m("reset")}function p(){m("search")}return(x,f)=>{const u=V,v=B;return R(),z(v,{model:l.value,onSearch:p,onReset:h},{default:k(()=>[t(u,{span:"24 s:12 m:6",label:e(o)("page.pods.groupName"),path:"groupName",class:"pr-24px"},{default:k(()=>[t(q,{value:l.value.groupName,"onUpdate:value":f[0]||(f[0]=i=>l.value.groupName=i),placeholder:e(o)("page.pods.form.groupName"),clearable:""},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])}}}),H={class:"min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto"};function P(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!O(d)}const te=S({name:"pods",__name:"index",setup(d){const b=F(),{columns:m,columnChecks:l,data:h,getData:p,loading:x,mobilePagination:f,searchParams:u,resetSearchParams:v}=G({apiFn:U,apiParams:{page:1,size:10,groupName:null},columns:()=>[{key:"hostId",title:o("page.pods.hostId"),align:"left",resizable:!0,width:150,minWidth:150,maxWidth:200},{key:"nodeType",title:o("page.pods.nodeType"),align:"center",width:80,render:s=>{if(s.nodeType===null)return null;const a={1:"info",2:"primary"},r=o(j[s.nodeType]);return t(y,{type:a[s.nodeType]},P(r)?r:{default:()=>[r]})}},{key:"groupName",title:o("page.pods.groupName"),align:"left",width:120,resizable:!0,minWidth:120,maxWidth:200},{key:"hostIp",title:o("page.pods.hostIp"),align:"left",width:120},{key:"hostPort",title:o("page.pods.hostPort"),align:"left",width:80},{key:"consumerBuckets",title:o("page.pods.consumerBuckets"),align:"left",width:300,resizable:!0,minWidth:120,maxWidth:400,render:s=>{if(s.nodeType===null)return null;const a=g=>{var n;const c=g?(n=s.consumerBuckets)==null?void 0:n.slice(0,g):s.consumerBuckets;return c==null?void 0:c.map(_=>t(y,{type:"error",key:_,class:"m-1 justify-center"},P(_)?_:{default:()=>[_]}))},r=()=>t(y,{type:"info"},{default:()=>[s.contextPath??"/"]});return s.nodeType===1?t(T,null,[N("Path: "),r()]):t(T,null,[t("span",null,[N("Bucket: ")]),a(10),t(C,{trigger:"hover"},{trigger:()=>t(y,{type:"error"},{default:()=>[N("...")]}),default:()=>t("div",{class:"grid grid-cols-16"},[a()])})])}},{key:"updateDt",title:o("page.pods.updateDt"),align:"left",width:130}]}),{checkedRowKeys:i}=K(h,p);return(s,a)=>{const r=I,g=A,c=D;return R(),M("div",H,[t(E,{model:e(u),"onUpdate:model":a[0]||(a[0]=n=>w(u)?u.value=n:null),onReset:e(v),onSearch:e(p)},null,8,["model","onReset","onSearch"]),t(c,{title:e(o)("page.pods.title"),bordered:!1,size:"small","header-class":"view-card-header",class:"sm:flex-1-hidden card-wrapper"},{"header-extra":k(()=>[t(r,{columns:e(l),"onUpdate:columns":a[1]||(a[1]=n=>w(l)?l.value=n:null),"disabled-delete":e(i).length===0,loading:e(x),"show-add":!1,"show-delete":!1,onRefresh:e(p)},null,8,["columns","disabled-delete","loading","onRefresh"])]),default:k(()=>[t(g,{"checked-row-keys":e(i),"onUpdate:checkedRowKeys":a[2]||(a[2]=n=>w(i)?i.value=n:null),columns:e(m),data:e(h),"flex-height":!e(b).isMobile,"scroll-x":962,loading:e(x),remote:"","row-key":n=>n.hostId,pagination:e(f),class:"sm:h-full"},null,8,["checked-row-keys","columns","data","flex-height","loading","row-key","pagination"])]),_:1},8,["title"])])}}});export{te as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{a as R,b as $,c as A}from"./log-drawer-BN4SgRnd.js";import{d as E,k as z,r as a,i as U,bx as W,o as d,c as f,w as o,e as B,f as s,x as q,g as _,t as L,h as M,_ as O,B as j,a8 as F,cx as G,au as H,l as J}from"./index-U8_FYD1k.js";import{u as K,_ as P}from"./workflow.vue_vue_type_style_index_0_lang-CMzs7c_d.js";import{g as Q}from"./workflow-pCRqeEnP.js";import"./CollapseItem-CEeQD4hQ.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-BYIk--kk.js";import"./table-Ca9YKwr6.js";import"./Grid-CRdsjMH4.js";import"./job-TpLsoFVX.js";import"./detail-drawer-OC-sH5Zw.js";import"./DescriptionsItem-2g61_6UF.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-V_4U2z7h.js";import"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import"./group-CCJZO849.js";const X={class:"flex-center"},Y={class:"flex-center gap-8px"},Z=E({name:"workflow_form_batch",__name:"index",setup(ee){const c=K(),S=z(),v=a(!1),g=String(S.query.id),u=a({}),l=a(0),p=a(),x=new AbortController,t=a(!0),k=()=>{t.value=!0,x.abort(),clearTimeout(p.value),p.value=void 0},y=()=>{t.value||x.abort(),k(),u.value={},c.clear()},r=async()=>{v.value=!0;const{data:n,error:e}=await Q(g);e?(e==null?void 0:e.code)!=="ERR_CANCELED"&&y():(u.value=n,t.value=!(n.workflowBatchStatus&&[1,2].includes(n.workflowBatchStatus))||l.value===0,!t.value&&l.value!==0&&(clearTimeout(p.value),p.value=setTimeout(r,l.value*1e3))),v.value=!1},b=async n=>{if(n===-1){t.value&&(t.value=!1,await r());return}if(l.value=n,n===0){k();return}t.value=!1,await r()};U(()=>{c.clear(),c.setType(2),c.setId(g),r()}),W(()=>{y()});const w=a([{label:"Auto(off)",key:0},{label:"1s",key:1},{label:"5s",key:5},{label:"10s",key:10},{label:"30s",key:30},{label:"1m",key:60},{label:"5m",key:300}]);return(n,e)=>{const h=R,N=O,C=j,m=F,T=G,V=$,D=A,I=H;return d(),f(M(P),{modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=i=>u.value=i),spinning:!1,disabled:"",onRefresh:e[2]||(e[2]=i=>r())},{buttons:o(()=>[B("div",X,[s(T,{trigger:"hover",width:"trigger",options:w.value,onSelect:b},{default:o(()=>[s(m,{placement:"left"},{trigger:o(()=>[s(C,{dashed:"",class:q(["w-136px",t.value?"mr-16px":"mr-42px"]),onClick:e[0]||(e[0]=i=>b(-1))},{icon:o(()=>[B("div",Y,[s(h,{class:"text-18px"}),_(" "+L(w.value.filter(i=>i.key===l.value)[0].label)+" ",1),s(N,{icon:"material-symbols:expand-more-rounded"})])]),_:1},8,["class"])]),default:o(()=>[e[3]||(e[3]=_(" 自动刷新频率 "))]),_:1})]),_:1},8,["options"]),t.value?(d(),f(m,{key:0,placement:"top"},{trigger:o(()=>[s(V,{class:"text-26px color-success"})]),default:o(()=>[e[4]||(e[4]=_(" 流程批次加载完成 "))]),_:1})):(d(),f(m,{key:1},{trigger:o(()=>[s(I,{size:"small"},{icon:o(()=>[s(D)]),_:1})]),default:o(()=>[e[5]||(e[5]=_(" 流程批次正在加载 "))]),_:1}))])]),_:1},8,["modelValue"])}}}),fe=J(Z,[["__scopeId","data-v-dfdd102d"]]);export{fe as default};
|
||||
import{a as R,b as $,c as A}from"./log-drawer-DaEZFcwz.js";import{d as E,k as z,r as a,i as U,bx as W,o as d,c as f,w as o,e as B,f as s,x as q,g as _,t as L,h as M,_ as O,B as j,a8 as F,cx as G,au as H,l as J}from"./index--PhRNylI.js";import{u as K,_ as P}from"./workflow.vue_vue_type_style_index_0_lang-CSNo0yjz.js";import{g as Q}from"./workflow-CnYlkeoT.js";import"./CollapseItem-BccPzD5x.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CiYHLygb.js";import"./table-DvozQPKE.js";import"./Grid-C8sbif0M.js";import"./job-Tsw2tz69.js";import"./detail-drawer-CS6ssopv.js";import"./DescriptionsItem-BzmwSMF7.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import"./group-Rd_jp_gh.js";const X={class:"flex-center"},Y={class:"flex-center gap-8px"},Z=E({name:"workflow_form_batch",__name:"index",setup(ee){const c=K(),S=z(),v=a(!1),g=String(S.query.id),u=a({}),l=a(0),p=a(),x=new AbortController,t=a(!0),k=()=>{t.value=!0,x.abort(),clearTimeout(p.value),p.value=void 0},y=()=>{t.value||x.abort(),k(),u.value={},c.clear()},r=async()=>{v.value=!0;const{data:n,error:e}=await Q(g);e?(e==null?void 0:e.code)!=="ERR_CANCELED"&&y():(u.value=n,t.value=!(n.workflowBatchStatus&&[1,2].includes(n.workflowBatchStatus))||l.value===0,!t.value&&l.value!==0&&(clearTimeout(p.value),p.value=setTimeout(r,l.value*1e3))),v.value=!1},b=async n=>{if(n===-1){t.value&&(t.value=!1,await r());return}if(l.value=n,n===0){k();return}t.value=!1,await r()};U(()=>{c.clear(),c.setType(2),c.setId(g),r()}),W(()=>{y()});const w=a([{label:"Auto(off)",key:0},{label:"1s",key:1},{label:"5s",key:5},{label:"10s",key:10},{label:"30s",key:30},{label:"1m",key:60},{label:"5m",key:300}]);return(n,e)=>{const h=R,N=O,C=j,m=F,T=G,V=$,D=A,I=H;return d(),f(M(P),{modelValue:u.value,"onUpdate:modelValue":e[1]||(e[1]=i=>u.value=i),spinning:!1,disabled:"",onRefresh:e[2]||(e[2]=i=>r())},{buttons:o(()=>[B("div",X,[s(T,{trigger:"hover",width:"trigger",options:w.value,onSelect:b},{default:o(()=>[s(m,{placement:"left"},{trigger:o(()=>[s(C,{dashed:"",class:q(["w-136px",t.value?"mr-16px":"mr-42px"]),onClick:e[0]||(e[0]=i=>b(-1))},{icon:o(()=>[B("div",Y,[s(h,{class:"text-18px"}),_(" "+L(w.value.filter(i=>i.key===l.value)[0].label)+" ",1),s(N,{icon:"material-symbols:expand-more-rounded"})])]),_:1},8,["class"])]),default:o(()=>[e[3]||(e[3]=_(" 自动刷新频率 "))]),_:1})]),_:1},8,["options"]),t.value?(d(),f(m,{key:0,placement:"top"},{trigger:o(()=>[s(V,{class:"text-26px color-success"})]),default:o(()=>[e[4]||(e[4]=_(" 流程批次加载完成 "))]),_:1})):(d(),f(m,{key:1},{trigger:o(()=>[s(I,{size:"small"},{icon:o(()=>[s(D)]),_:1})]),default:o(()=>[e[5]||(e[5]=_(" 流程批次正在加载 "))]),_:1}))])]),_:1},8,["modelValue"])}}}),fe=J(Z,[["__scopeId","data-v-dfdd102d"]]);export{fe as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as f,k as d,bY as w,r as i,i as k,o as _,c as v,h as g,$ as h}from"./index-U8_FYD1k.js";import{u as y,_ as S}from"./workflow.vue_vue_type_style_index_0_lang-CMzs7c_d.js";import{h as $,i as x}from"./workflow-pCRqeEnP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-BYIk--kk.js";import"./table-Ca9YKwr6.js";import"./Grid-CRdsjMH4.js";import"./job-TpLsoFVX.js";import"./detail-drawer-OC-sH5Zw.js";import"./DescriptionsItem-2g61_6UF.js";import"./log-drawer-BN4SgRnd.js";import"./CollapseItem-CEeQD4hQ.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-V_4U2z7h.js";import"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import"./group-CCJZO849.js";const A=f({name:"workflow_form_edit",__name:"index",setup(V){const a=y(),u=d(),r=w(),s=i(!1),n=String(u.query.id),e=i({}),p=async()=>{s.value=!0;const{data:t,error:o}=await $(n);o||(e.value=t),s.value=!1};k(()=>{a.clear(),a.setType(0),a.setId(n),p()});const l=async()=>{var o;const{error:t}=await x(e.value);t||((o=window.$message)==null||o.info(h("common.updateSuccess")),r.push({path:"/workflow/task"}))},m=()=>{r.push("/workflow/task")};return(t,o)=>(_(),v(g(S),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=c=>e.value=c),spinning:s.value,onSave:l,onCancel:m},null,8,["modelValue","spinning"]))}});export{A as default};
|
||||
import{d as f,k as d,bY as w,r as i,i as k,o as _,c as v,h as g,$ as h}from"./index--PhRNylI.js";import{u as y,_ as S}from"./workflow.vue_vue_type_style_index_0_lang-CSNo0yjz.js";import{h as $,i as x}from"./workflow-CnYlkeoT.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CiYHLygb.js";import"./table-DvozQPKE.js";import"./Grid-C8sbif0M.js";import"./job-Tsw2tz69.js";import"./detail-drawer-CS6ssopv.js";import"./DescriptionsItem-BzmwSMF7.js";import"./log-drawer-DaEZFcwz.js";import"./CollapseItem-BccPzD5x.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import"./group-Rd_jp_gh.js";const A=f({name:"workflow_form_edit",__name:"index",setup(V){const a=y(),u=d(),r=w(),s=i(!1),n=String(u.query.id),e=i({}),p=async()=>{s.value=!0;const{data:t,error:o}=await $(n);o||(e.value=t),s.value=!1};k(()=>{a.clear(),a.setType(0),a.setId(n),p()});const l=async()=>{var o;const{error:t}=await x(e.value);t||((o=window.$message)==null||o.info(h("common.updateSuccess")),r.push({path:"/workflow/task"}))},m=()=>{r.push("/workflow/task")};return(t,o)=>(_(),v(g(S),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=c=>e.value=c),spinning:s.value,onSave:l,onCancel:m},null,8,["modelValue","spinning"]))}});export{A as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-JG3XQBZY.js";import{d as n,o as t,c as a}from"./index-U8_FYD1k.js";const m=n({name:"403",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"403"})}}});export{m as default};
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-D9Q_nLCM.js";import{d as n,o as t,c as a}from"./index--PhRNylI.js";const m=n({name:"403",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"403"})}}});export{m as default};
|
@ -1 +0,0 @@
|
||||
import{d as i,bY as l,i as p,r as c,o as u,c as f,h as d,$ as w}from"./index-U8_FYD1k.js";import{u as k,_}from"./workflow.vue_vue_type_style_index_0_lang-CMzs7c_d.js";import{e as v}from"./workflow-pCRqeEnP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-BYIk--kk.js";import"./table-Ca9YKwr6.js";import"./Grid-CRdsjMH4.js";import"./job-TpLsoFVX.js";import"./detail-drawer-OC-sH5Zw.js";import"./DescriptionsItem-2g61_6UF.js";import"./log-drawer-BN4SgRnd.js";import"./CollapseItem-CEeQD4hQ.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-V_4U2z7h.js";import"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import"./group-CCJZO849.js";const M=i({name:"workflow_form_add",__name:"index",setup(x){const t=k(),r=l();p(()=>{t.clear(),t.setType(0)});const e=c({workflowName:`WF-${new Date().getTime()}`,workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60,wfContext:'{"init":""}'}),s=async()=>{var o;const{error:a}=await v(e.value);a||((o=window.$message)==null||o.info(w("common.addSuccess")),r.push("/workflow/task"))},n=()=>{r.push("/workflow/task")};return(a,o)=>(u(),f(d(_),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=m=>e.value=m),onSave:s,onCancel:n},null,8,["modelValue"]))}});export{M as default};
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import{d as Jr,al as oo,am as RS,r as Ke,a as Da,an as kS,ao as ES,q as tr,o as Lt,b as er,t as Qe,ap as Mh,aq as OS,M as Ih,ar as NS,as as BS,u as FS,p as zS,n as VS,$ as W,at as GS,c as Ee,w as Mt,f as ut,e as Bt,P as HS,v as WS,h as qe,a1 as ds,a3 as bi,F as Xs,x as jv,g as Jv,ai as US,m as lf,_ as YS,B as XS,G as $S,aj as Im,au as ZS,l as Lh,L as Ph,av as qS,aa as KS,aw as QS,H as jS}from"./index-U8_FYD1k.js";import{f as JS,a as tx,b as ex,c as rx}from"./dashboard-D04YVXEJ.js";import{_ as nx}from"./Progress-iEiKJil4.js";import{r as ax,s as ix,c as Lm,d as Pm,_ as ox,b as sx}from"./Grid-CRdsjMH4.js";import{_ as lx}from"./datetime-range.vue_vue_type_script_setup_true_lang-CBokn1tg.js";const ux=Jr({name:"RadioButton",props:ax,setup:ix,render(){const{mergedClsPrefix:r}=this;return oo("label",{class:[`${r}-radio-button`,this.mergedDisabled&&`${r}-radio-button--disabled`,this.renderSafeChecked&&`${r}-radio-button--checked`,this.focus&&[`${r}-radio-button--focus`]]},oo("input",{ref:"inputRef",type:"radio",class:`${r}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),oo("div",{class:`${r}-radio-button__state-border`}),RS(this.$slots.default,t=>!t&&!this.label?null:oo("div",{ref:"labelRef",class:`${r}-radio__label`},t||this.label)))}}),fx=Jr({name:"CountTo",__name:"count-to",props:{startValue:{default:0},endValue:{default:2021},duration:{default:1500},autoplay:{type:Boolean,default:!0},decimals:{default:0},prefix:{default:""},suffix:{default:""},separator:{default:","},decimal:{default:"."},useEasing:{type:Boolean,default:!0},transition:{default:"linear"}},setup(r){const t=r,e=Ke(t.startValue),n=Da(()=>t.useEasing?kS[t.transition]:void 0),a=ES(e,{disabled:!1,duration:t.duration,transition:n.value}),i=Da(()=>o(a.value));function o(l){const{decimals:u,decimal:f,separator:h,suffix:c,prefix:v}=t;let d=l.toFixed(u);d=String(d);const g=d.split(".");let p=g[0];const m=g.length>1?f+g[1]:"",y=/(\d+)(\d{3})/;if(h)for(;y.test(p);)p=p.replace(y,`$1${h}$2`);return v+p+m+c}async function s(){await Mh(),e.value=t.endValue}return tr([()=>t.startValue,()=>t.endValue],()=>{t.autoplay&&s()},{immediate:!0}),(l,u)=>(Lt(),er("span",null,Qe(i.value),1))}});/*! *****************************************************************************
|
||||
import{d as Jr,al as oo,am as RS,r as Ke,a as Da,an as kS,ao as ES,q as tr,o as Lt,b as er,t as Qe,ap as Mh,aq as OS,M as Ih,ar as NS,as as BS,u as FS,p as zS,n as VS,$ as W,at as GS,c as Ee,w as Mt,f as ut,e as Bt,P as HS,v as WS,h as qe,a1 as ds,a3 as bi,F as Xs,x as jv,g as Jv,ai as US,m as lf,_ as YS,B as XS,G as $S,aj as Im,au as ZS,l as Lh,L as Ph,av as qS,aa as KS,aw as QS,H as jS}from"./index--PhRNylI.js";import{f as JS,a as tx,b as ex,c as rx}from"./dashboard-DxAW8khm.js";import{_ as nx}from"./Progress-B_nFqYUL.js";import{r as ax,s as ix,c as Lm,d as Pm,_ as ox,b as sx}from"./Grid-C8sbif0M.js";import{_ as lx}from"./datetime-range.vue_vue_type_script_setup_true_lang-D8EB1IrL.js";const ux=Jr({name:"RadioButton",props:ax,setup:ix,render(){const{mergedClsPrefix:r}=this;return oo("label",{class:[`${r}-radio-button`,this.mergedDisabled&&`${r}-radio-button--disabled`,this.renderSafeChecked&&`${r}-radio-button--checked`,this.focus&&[`${r}-radio-button--focus`]]},oo("input",{ref:"inputRef",type:"radio",class:`${r}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),oo("div",{class:`${r}-radio-button__state-border`}),RS(this.$slots.default,t=>!t&&!this.label?null:oo("div",{ref:"labelRef",class:`${r}-radio__label`},t||this.label)))}}),fx=Jr({name:"CountTo",__name:"count-to",props:{startValue:{default:0},endValue:{default:2021},duration:{default:1500},autoplay:{type:Boolean,default:!0},decimals:{default:0},prefix:{default:""},suffix:{default:""},separator:{default:","},decimal:{default:"."},useEasing:{type:Boolean,default:!0},transition:{default:"linear"}},setup(r){const t=r,e=Ke(t.startValue),n=Da(()=>t.useEasing?kS[t.transition]:void 0),a=ES(e,{disabled:!1,duration:t.duration,transition:n.value}),i=Da(()=>o(a.value));function o(l){const{decimals:u,decimal:f,separator:h,suffix:c,prefix:v}=t;let d=l.toFixed(u);d=String(d);const g=d.split(".");let p=g[0];const m=g.length>1?f+g[1]:"",y=/(\d+)(\d{3})/;if(h)for(;y.test(p);)p=p.replace(y,`$1${h}$2`);return v+p+m+c}async function s(){await Mh(),e.value=t.endValue}return tr([()=>t.startValue,()=>t.endValue],()=>{t.autoplay&&s()},{immediate:!0}),(l,u)=>(Lt(),er("span",null,Qe(i.value),1))}});/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
@ -1 +1 @@
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-JG3XQBZY.js";import{d as n,o as t,c as a}from"./index-U8_FYD1k.js";const m=n({name:"500",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"500"})}}});export{m as default};
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-D9Q_nLCM.js";import{d as n,o as t,c as a}from"./index--PhRNylI.js";const m=n({name:"500",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"500"})}}});export{m as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-JG3XQBZY.js";import{d as n,o as t,c as a}from"./index-U8_FYD1k.js";const m=n({name:"404",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"404"})}}});export{m as default};
|
||||
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-D9Q_nLCM.js";import{d as n,o as t,c as a}from"./index--PhRNylI.js";const m=n({name:"404",__name:"index",setup(c){return(_,s)=>{const e=o;return t(),a(e,{type:"404"})}}});export{m as default};
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{_}from"./log-drawer-BN4SgRnd.js";import{d as y,k as f,u as g,r as c,a as k,$ as e,o as v,b as $,f as I,l as b}from"./index-U8_FYD1k.js";import"./CollapseItem-CEeQD4hQ.js";const h={class:"h-full"},T=y({name:"log",__name:"index",setup(j){const o=f(),{routerPushByKey:i}=g(),t=c(o.query.type),a=c(),{taskBatchId:s,jobId:r,taskId:n,groupName:u,uniqueId:l}=o.query;function p(){["job","retry"].includes(t.value)||i("404"),t.value==="job"&&(a.value={taskBatchId:s,jobId:r,id:n}),t.value==="retry"&&(a.value={groupName:u,uniqueId:l})}p();const d=k(()=>t.value==="job"?`${e("common.systemTaskType.job")+e("page.log.title")} ------ JobId: ${r}, TaskId: ${n}, TaskBatchId: ${s}`:t.value==="retry"?`${e("common.systemTaskType.retry")+e("page.log.title")} ------ ${e("page.retryLog.groupName")}: ${u}, ${e("page.retryLog.UniqueId")}: ${l}`:e("page.log.title"));return(x,B)=>{const m=_;return v(),$("div",h,[I(m,{drawer:!1,title:d.value,type:t.value,"task-data":a.value},null,8,["title","type","task-data"])])}}}),w=b(T,[["__scopeId","data-v-11a1c841"]]);export{w as default};
|
||||
import{_}from"./log-drawer-DaEZFcwz.js";import{d as y,k as f,u as g,r as c,a as k,$ as e,o as v,b as $,f as I,l as b}from"./index--PhRNylI.js";import"./CollapseItem-BccPzD5x.js";const h={class:"h-full"},T=y({name:"log",__name:"index",setup(j){const o=f(),{routerPushByKey:i}=g(),t=c(o.query.type),a=c(),{taskBatchId:s,jobId:r,taskId:n,groupName:u,uniqueId:l}=o.query;function p(){["job","retry"].includes(t.value)||i("404"),t.value==="job"&&(a.value={taskBatchId:s,jobId:r,id:n}),t.value==="retry"&&(a.value={groupName:u,uniqueId:l})}p();const d=k(()=>t.value==="job"?`${e("common.systemTaskType.job")+e("page.log.title")} ------ JobId: ${r}, TaskId: ${n}, TaskBatchId: ${s}`:t.value==="retry"?`${e("common.systemTaskType.retry")+e("page.log.title")} ------ ${e("page.retryLog.groupName")}: ${u}, ${e("page.retryLog.UniqueId")}: ${l}`:e("page.log.title"));return(x,B)=>{const m=_;return v(),$("div",h,[I(m,{drawer:!1,title:d.value,type:t.value,"task-data":a.value},null,8,["title","type","task-data"])])}}}),w=b(T,[["__scopeId","data-v-11a1c841"]]);export{w as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{d as f,k as d,bY as w,r as n,i as k,o as _,c as v,h as g,$ as y}from"./index-U8_FYD1k.js";import{u as S,_ as h}from"./workflow.vue_vue_type_style_index_0_lang-CMzs7c_d.js";import{h as $,e as x}from"./workflow-pCRqeEnP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-BYIk--kk.js";import"./table-Ca9YKwr6.js";import"./Grid-CRdsjMH4.js";import"./job-TpLsoFVX.js";import"./detail-drawer-OC-sH5Zw.js";import"./DescriptionsItem-2g61_6UF.js";import"./log-drawer-BN4SgRnd.js";import"./CollapseItem-CEeQD4hQ.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-V_4U2z7h.js";import"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import"./group-CCJZO849.js";const j=f({name:"workflow_form_copy",__name:"index",setup(W){const a=S(),i=d(),s=w(),r=n(!1),l=String(i.query.id),e=n({workflowName:`Workflow ${new Date().getTime()}`,workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60}),u=async()=>{r.value=!0;const{data:t,error:o}=await $(l);o||(e.value=t),r.value=!1};k(()=>{a.clear(),a.setType(0),u()});const c=async()=>{var o;const{error:t}=await x(e.value);t||((o=window.$message)==null||o.info(y("common.addSuccess")),s.push("/workflow/task"))},m=()=>{s.push("/workflow/task")};return(t,o)=>(_(),v(g(h),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=p=>e.value=p),spinning:r.value,onSave:c,onCancel:m},null,8,["modelValue","spinning"]))}});export{j as default};
|
||||
import{d as f,k as d,bY as w,r as n,i as k,o as _,c as v,h as g,$ as y}from"./index--PhRNylI.js";import{u as S,_ as h}from"./workflow.vue_vue_type_style_index_0_lang-CSNo0yjz.js";import{h as $,e as x}from"./workflow-CnYlkeoT.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CiYHLygb.js";import"./table-DvozQPKE.js";import"./Grid-C8sbif0M.js";import"./job-Tsw2tz69.js";import"./detail-drawer-CS6ssopv.js";import"./DescriptionsItem-BzmwSMF7.js";import"./log-drawer-DaEZFcwz.js";import"./CollapseItem-BccPzD5x.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import"./group-Rd_jp_gh.js";const j=f({name:"workflow_form_copy",__name:"index",setup(W){const a=S(),i=d(),s=w(),r=n(!1),l=String(i.query.id),e=n({workflowName:`Workflow ${new Date().getTime()}`,workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60}),u=async()=>{r.value=!0;const{data:t,error:o}=await $(l);o||(e.value=t),r.value=!1};k(()=>{a.clear(),a.setType(0),u()});const c=async()=>{var o;const{error:t}=await x(e.value);t||((o=window.$message)==null||o.info(y("common.addSuccess")),s.push("/workflow/task"))},m=()=>{s.push("/workflow/task")};return(t,o)=>(_(),v(g(h),{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=p=>e.value=p),spinning:r.value,onSave:c,onCancel:m},null,8,["modelValue","spinning"]))}});export{j as default};
|
@ -0,0 +1 @@
|
||||
import{d as p,k as u,r as s,i as f,o as d,c,h as _}from"./index--PhRNylI.js";import{u as k,_ as v}from"./workflow.vue_vue_type_style_index_0_lang-CSNo0yjz.js";import{h as g}from"./workflow-CnYlkeoT.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CiYHLygb.js";import"./table-DvozQPKE.js";import"./Grid-C8sbif0M.js";import"./job-Tsw2tz69.js";import"./detail-drawer-CS6ssopv.js";import"./DescriptionsItem-BzmwSMF7.js";import"./log-drawer-DaEZFcwz.js";import"./CollapseItem-BccPzD5x.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import"./cron-input.vue_vue_type_style_index_0_lang-CaeUqGwF.js";import"./group-Rd_jp_gh.js";const T=p({name:"workflow_form_detail",__name:"index",setup(w){const e=k(),i=u(),t=s(!1),a=String(i.query.id),r=s({}),l=async()=>{t.value=!0;const{data:n,error:o}=await g(a);o||(r.value=n),t.value=!1};return f(()=>{e.clear(),e.setType(1),e.setId(a),l()}),(n,o)=>(d(),c(_(v),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=m=>r.value=m),spinning:t.value,disabled:""},null,8,["modelValue","spinning"]))}});export{T as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{d as p,k as u,r as s,i as f,o as d,c,h as _}from"./index-U8_FYD1k.js";import{u as k,_ as v}from"./workflow.vue_vue_type_style_index_0_lang-CMzs7c_d.js";import{h as g}from"./workflow-pCRqeEnP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-BYIk--kk.js";import"./table-Ca9YKwr6.js";import"./Grid-CRdsjMH4.js";import"./job-TpLsoFVX.js";import"./detail-drawer-OC-sH5Zw.js";import"./DescriptionsItem-2g61_6UF.js";import"./log-drawer-BN4SgRnd.js";import"./CollapseItem-CEeQD4hQ.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-V_4U2z7h.js";import"./cron-input.vue_vue_type_style_index_0_lang-BTAii-x1.js";import"./group-CCJZO849.js";const T=p({name:"workflow_form_detail",__name:"index",setup(w){const e=k(),i=u(),t=s(!1),a=String(i.query.id),r=s({}),l=async()=>{t.value=!0;const{data:n,error:o}=await g(a);o||(r.value=n),t.value=!1};return f(()=>{e.clear(),e.setType(1),e.setId(a),l()}),(n,o)=>(d(),c(_(v),{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=m=>r.value=m),spinning:t.value,disabled:""},null,8,["modelValue","spinning"]))}});export{T as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aP as e}from"./index-U8_FYD1k.js";function r(t){return e({url:"/job/page/list",method:"get",params:t})}function u(t){return e({url:"/job/list",method:"get",params:t})}function n(t){return e({url:`/job/${t}`,method:"get"})}function s(t){return e({url:"/job/task/list",method:"get",params:t})}function a(t){return e({url:"/job/task/tree/list",method:"get",params:t})}function i(t){return e({url:"/job",method:"post",data:t})}function b(t){return e({url:"/job",method:"put",data:t})}function c(t){return e({url:"/job/status",method:"put",data:t})}function f(t){return e({url:"/job/ids",method:"delete",data:t})}function h(t){return e({url:`/job/trigger/${t}`,method:"post"})}function l(t){return e({url:"/job/job-name/list",method:"get",params:t})}export{i as a,b,r as c,f as d,h as e,l as f,c as g,u as h,n as i,s as j,a as k};
|
||||
import{aP as e}from"./index--PhRNylI.js";function r(t){return e({url:"/job/page/list",method:"get",params:t})}function u(t){return e({url:"/job/list",method:"get",params:t})}function n(t){return e({url:`/job/${t}`,method:"get"})}function s(t){return e({url:"/job/task/list",method:"get",params:t})}function a(t){return e({url:"/job/task/tree/list",method:"get",params:t})}function i(t){return e({url:"/job",method:"post",data:t})}function b(t){return e({url:"/job",method:"put",data:t})}function c(t){return e({url:"/job/status",method:"put",data:t})}function f(t){return e({url:"/job/ids",method:"delete",data:t})}function h(t){return e({url:`/job/trigger/${t}`,method:"post"})}function l(t){return e({url:"/job/job-name/list",method:"get",params:t})}export{i as a,b,r as c,f as d,h as e,l as f,c as g,u as h,n as i,s as j,a as k};
|
@ -1,4 +1,4 @@
|
||||
import{bE as Mt,d4 as St,a as le,a_ as vt,bo as pe,b3 as Nt,bp as Ie,bu as jt,d as Qe,b4 as Rt,r as _e,i as Ot,q as Me,b8 as De,b7 as et,ba as Ct,al as Le,aP as oe,bj as tt,o as Ee,b as nt,e as st,ci as Tt,$ as L,f as v,B as Q,d5 as Bt,Y as $t,aK as Pe,a3 as He,c as Ue,w as ee,h as W,a4 as At,d6 as It,g as We,ai as Dt,ak as Lt,d7 as ze,aa as Pt,F as Ht,d8 as Ge}from"./index-U8_FYD1k.js";import{u as Ut}from"./table-Ca9YKwr6.js";import{j as Wt,k as zt}from"./job-TpLsoFVX.js";import{b as Gt}from"./Grid-CRdsjMH4.js";function Kt(e,t){const n=Mt(St,null);return le(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Ft(e){const{textColor2:t,fontSize:n,fontWeightStrong:l,textColor3:b}=e;return{textColor:t,fontSize:n,fontWeightStrong:l,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:b}}const Jt={name:"Code",common:vt,self:Ft},qt=pe([Nt("code",`
|
||||
import{bE as Mt,d4 as St,a as le,a_ as vt,bo as pe,b3 as Nt,bp as Ie,bu as jt,d as Qe,b4 as Rt,r as _e,i as Ot,q as Me,b8 as De,b7 as et,ba as Ct,al as Le,aP as oe,bj as tt,o as Ee,b as nt,e as st,ci as Tt,$ as L,f as v,B as Q,d5 as Bt,Y as $t,aK as Pe,a3 as He,c as Ue,w as ee,h as W,a4 as At,d6 as It,g as We,ai as Dt,ak as Lt,d7 as ze,aa as Pt,F as Ht,d8 as Ge}from"./index--PhRNylI.js";import{u as Ut}from"./table-DvozQPKE.js";import{j as Wt,k as zt}from"./job-Tsw2tz69.js";import{b as Gt}from"./Grid-C8sbif0M.js";function Kt(e,t){const n=Mt(St,null);return le(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Ft(e){const{textColor2:t,fontSize:n,fontWeightStrong:l,textColor3:b}=e;return{textColor:t,fontSize:n,fontWeightStrong:l,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:b}}const Jt={name:"Code",common:vt,self:Ft},qt=pe([Nt("code",`
|
||||
font-size: var(--n-font-size);
|
||||
font-family: var(--n-font-family);
|
||||
`,[Ie("show-line-numbers",`
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aP as e}from"./index-U8_FYD1k.js";function o(t){return e({url:"/notify-config/list",method:"get",params:t})}function f(t){return e({url:"/notify-config",method:"post",data:t})}function r(t){return e({url:"/notify-config",method:"put",data:t})}function c(t){return e({url:"/notify-config/ids",method:"delete",data:t})}function u(t,i){return e({url:`/notify-config/${t}/status/${i}`,method:"put"})}function s(t){return e({url:"/notify-recipient/page/list",method:"get",params:t})}function d(){return e({url:"/notify-recipient/list",method:"get"})}function h(t){return e({url:"/notify-recipient",method:"post",data:t})}function y(t){return e({url:"/notify-recipient",method:"put",data:t})}function a(t){return e({url:"/notify-recipient/ids",method:"delete",data:t})}export{f as a,r as b,o as c,c as d,u as e,d as f,h as g,y as h,s as i,a as j};
|
||||
import{aP as e}from"./index--PhRNylI.js";function o(t){return e({url:"/notify-config/list",method:"get",params:t})}function f(t){return e({url:"/notify-config",method:"post",data:t})}function r(t){return e({url:"/notify-config",method:"put",data:t})}function c(t){return e({url:"/notify-config/ids",method:"delete",data:t})}function u(t,i){return e({url:`/notify-config/${t}/status/${i}`,method:"put"})}function s(t){return e({url:"/notify-recipient/page/list",method:"get",params:t})}function d(){return e({url:"/notify-recipient/list",method:"get"})}function h(t){return e({url:"/notify-recipient",method:"post",data:t})}function y(t){return e({url:"/notify-recipient",method:"put",data:t})}function a(t){return e({url:"/notify-recipient/ids",method:"delete",data:t})}export{f as a,r as b,o as c,c as d,u as e,d as f,h as g,y as h,s as i,a as j};
|
@ -1,4 +1,4 @@
|
||||
import{b3 as C,bu as k,d as b,b4 as R,b7 as g,a$ as B,a as i,bv as u,ba as T,al as d,Z as L,a0 as O,a4 as c,bw as p,o as $,c as w,h as K,$ as P,aa as S}from"./index-U8_FYD1k.js";const V=C("input-group-label",`
|
||||
import{b3 as C,bu as k,d as b,b4 as R,b7 as g,a$ as B,a as i,bv as u,ba as T,al as d,Z as L,a0 as O,a4 as c,bw as p,o as $,c as w,h as K,$ as P,aa as S}from"./index--PhRNylI.js";const V=C("input-group-label",`
|
||||
position: relative;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
@ -1,4 +1,4 @@
|
||||
import{bD as In,d as Pe,b5 as Pt,b4 as nn,bE as Bn,a as De,ba as Rn,b8 as Nt,cq as At,al as ee,am as zn,d_ as jn,B as Ve,bb as Fn,dU as Xn,b3 as Mt,bu as lt,bo as It,b7 as on,d$ as $n,r as Et,bO as Vn,e0 as Hn,e1 as Yn,G as rn,e2 as Ln,be as Bt,bj as ye,o as L,b as ae,e as we,e3 as Un,h as k,p as Wn,dL as xt,q as qn,n as Gn,i as an,ap as ln,ah as st,a0 as sn,c as Re,w as T,f as B,g as pe,t as he,$ as fe,a3 as Kn,a1 as Jn,bI as Zn,Z as Rt,cr as Ae,x as Qn,H as cn,ai as zt,k as eo,L as to,e4 as no,z as oo,I as ro,F as io}from"./index-U8_FYD1k.js";import{_ as ao}from"./table-Ca9YKwr6.js";import{c as lo}from"./Grid-CRdsjMH4.js";const un=In("n-popconfirm"),dn={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},jt=jn(dn),so=Pe({name:"NPopconfirmPanel",props:dn,setup(e){const{localeRef:n}=Pt("Popconfirm"),{inlineThemeDisabled:t}=nn(),{mergedClsPrefixRef:o,mergedThemeRef:r,props:i}=Bn(un),a=De(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:u,iconColor:p}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":u,"--n-icon-color":p}}),l=t?Rn("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},Pt("Popconfirm")),{mergedClsPrefix:o,cssVars:t?void 0:a,localizedPositiveText:De(()=>e.positiveText||n.value.positiveText),localizedNegativeText:De(()=>e.negativeText||n.value.negativeText),positiveButtonProps:Nt(i,"positiveButtonProps"),negativeButtonProps:Nt(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:n,showIcon:t,$slots:o}=this,r=At(o.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&ee(Ve,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&ee(Ve,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),ee("div",{class:[`${n}-popconfirm__panel`,this.themeClass],style:this.cssVars},zn(o.default,i=>t||i?ee("div",{class:`${n}-popconfirm__body`},t?ee("div",{class:`${n}-popconfirm__icon`},At(o.icon,()=>[ee(Fn,{clsPrefix:n},{default:()=>ee(Xn,null)})])):null,i):null),r?ee("div",{class:[`${n}-popconfirm__action`]},r):null)}}),co=Mt("popconfirm",[lt("body",`
|
||||
import{bD as In,d as Pe,b5 as Pt,b4 as nn,bE as Bn,a as De,ba as Rn,b8 as Nt,cq as At,al as ee,am as zn,d_ as jn,B as Ve,bb as Fn,dU as Xn,b3 as Mt,bu as lt,bo as It,b7 as on,d$ as $n,r as Et,bO as Vn,e0 as Hn,e1 as Yn,G as rn,e2 as Ln,be as Bt,bj as ye,o as L,b as ae,e as we,e3 as Un,h as k,p as Wn,dL as xt,q as qn,n as Gn,i as an,ap as ln,ah as st,a0 as sn,c as Re,w as T,f as B,g as pe,t as he,$ as fe,a3 as Kn,a1 as Jn,bI as Zn,Z as Rt,cr as Ae,x as Qn,H as cn,ai as zt,k as eo,L as to,e4 as no,z as oo,I as ro,F as io}from"./index--PhRNylI.js";import{_ as ao}from"./table-DvozQPKE.js";import{c as lo}from"./Grid-C8sbif0M.js";const un=In("n-popconfirm"),dn={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},jt=jn(dn),so=Pe({name:"NPopconfirmPanel",props:dn,setup(e){const{localeRef:n}=Pt("Popconfirm"),{inlineThemeDisabled:t}=nn(),{mergedClsPrefixRef:o,mergedThemeRef:r,props:i}=Bn(un),a=De(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:u,iconColor:p}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":u,"--n-icon-color":p}}),l=t?Rn("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},Pt("Popconfirm")),{mergedClsPrefix:o,cssVars:t?void 0:a,localizedPositiveText:De(()=>e.positiveText||n.value.positiveText),localizedNegativeText:De(()=>e.negativeText||n.value.negativeText),positiveButtonProps:Nt(i,"positiveButtonProps"),negativeButtonProps:Nt(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:n,showIcon:t,$slots:o}=this,r=At(o.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&ee(Ve,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&ee(Ve,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),ee("div",{class:[`${n}-popconfirm__panel`,this.themeClass],style:this.cssVars},zn(o.default,i=>t||i?ee("div",{class:`${n}-popconfirm__body`},t?ee("div",{class:`${n}-popconfirm__icon`},At(o.icon,()=>[ee(Fn,{clsPrefix:n},{default:()=>ee(Xn,null)})])):null,i):null),r?ee("div",{class:[`${n}-popconfirm__action`]},r):null)}}),co=Mt("popconfirm",[lt("body",`
|
||||
font-size: var(--n-font-size);
|
||||
display: flex;
|
||||
align-items: center;
|
@ -1 +1 @@
|
||||
import{d as f,Z as n,a0 as b,r as _,o as g,c as v,h as r,$ as N,a7 as V,aa as h}from"./index-U8_FYD1k.js";import{g as y}from"./group-CCJZO849.js";const k=f({name:"SelectGroup",__name:"select-group",props:n({disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:n(["update:modelValue"],["update:modelValue"]),setup(l,{emit:u}){const o=l,t=b(l,"modelValue"),d=u,s=_([]);async function p(){const{data:e,error:a}=await y();a||(s.value=e)}const c=e=>{d("update:modelValue",e)};return p(),(e,a)=>{const m=h;return g(),v(m,{value:t.value,"onUpdate:value":[a[0]||(a[0]=i=>t.value=i),c],placeholder:r(N)("page.retryTask.form.groupName"),options:r(V)(s.value),disabled:o.disabled,clearable:o.clearable,filterable:""},null,8,["value","placeholder","options","disabled","clearable"])}}});export{k as _};
|
||||
import{d as f,Z as n,a0 as b,r as _,o as g,c as v,h as r,$ as N,a7 as V,aa as h}from"./index--PhRNylI.js";import{g as y}from"./group-Rd_jp_gh.js";const k=f({name:"SelectGroup",__name:"select-group",props:n({disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:n(["update:modelValue"],["update:modelValue"]),setup(l,{emit:u}){const o=l,t=b(l,"modelValue"),d=u,s=_([]);async function p(){const{data:e,error:a}=await y();a||(s.value=e)}const c=e=>{d("update:modelValue",e)};return p(),(e,a)=>{const m=h;return g(),v(m,{value:t.value,"onUpdate:value":[a[0]||(a[0]=i=>t.value=i),c],placeholder:r(N)("page.retryTask.form.groupName"),options:r(V)(s.value),disabled:o.disabled,clearable:o.clearable,filterable:""},null,8,["value","placeholder","options","disabled","clearable"])}}});export{k as _};
|
@ -1 +1 @@
|
||||
import{aP as t,d as g,r as l,q as i,o as h,c as v,h as f,$ as S,a7 as _,aa as y}from"./index-U8_FYD1k.js";function b(e){return t({url:"/scene-config/page/list",method:"get",params:e})}function N(e){return t({url:"/scene-config/list",method:"get",params:e})}function B(e){return t({url:"/scene-config",method:"post",data:e})}function L(e){return t({url:"/scene-config",method:"put",data:e})}function $(e,s){return t({url:`/scene-config/${e}/status/${s}`,method:"put"})}function k(e){return t({url:"/scene-config/ids",method:"delete",data:[e]})}function q(e){return t({url:"/scene-config/ids",method:"delete",data:e})}const w=g({name:"SelectScene",__name:"select-scene",props:{groupName:{},clearable:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const p=s,n=e,o=l([]),a=l("");async function m(u){if(n.groupName){const c=await N({groupName:u});o.value=c.data.map(r=>r.sceneName)}else a.value="",o.value=[]}return i(()=>n.groupName,()=>{m(n.groupName)}),i(()=>a.value,()=>{p("update:value",a.value)}),(u,c)=>{const r=y;return h(),v(r,{value:a.value,"onUpdate:value":c[0]||(c[0]=d=>a.value=d),placeholder:f(S)("page.retryTask.form.sceneName"),options:f(_)(o.value),clearable:n.clearable},null,8,["value","placeholder","options","clearable"])}}});export{w as _,B as a,L as b,b as c,k as d,q as e,N as f,$ as g};
|
||||
import{aP as t,d as g,r as l,q as i,o as h,c as v,h as f,$ as S,a7 as _,aa as y}from"./index--PhRNylI.js";function b(e){return t({url:"/scene-config/page/list",method:"get",params:e})}function N(e){return t({url:"/scene-config/list",method:"get",params:e})}function B(e){return t({url:"/scene-config",method:"post",data:e})}function L(e){return t({url:"/scene-config",method:"put",data:e})}function $(e,s){return t({url:`/scene-config/${e}/status/${s}`,method:"put"})}function k(e){return t({url:"/scene-config/ids",method:"delete",data:[e]})}function q(e){return t({url:"/scene-config/ids",method:"delete",data:e})}const w=g({name:"SelectScene",__name:"select-scene",props:{groupName:{},clearable:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const p=s,n=e,o=l([]),a=l("");async function m(u){if(n.groupName){const c=await N({groupName:u});o.value=c.data.map(r=>r.sceneName)}else a.value="",o.value=[]}return i(()=>n.groupName,()=>{m(n.groupName)}),i(()=>a.value,()=>{p("update:value",a.value)}),(u,c)=>{const r=y;return h(),v(r,{value:a.value,"onUpdate:value":c[0]||(c[0]=d=>a.value=d),placeholder:f(S)("page.retryTask.form.sceneName"),options:f(_)(o.value),clearable:n.clearable},null,8,["value","placeholder","options","clearable"])}}});export{w as _,B as a,L as b,b as c,k as d,q as e,N as f,$ as g};
|
@ -1 +1 @@
|
||||
import{d as v,Z as l,a0 as f,ag as b,o as g,c as _,h,$ as k,aL as w,dC as $}from"./index-U8_FYD1k.js";const B=v({name:"StatusSwitch",__name:"status-switch",props:l({disabled:{type:Boolean,default:!1},info:{default:""}},{value:{required:!1,default:0},valueModifiers:{}}),emits:l(["submitted"],["update:value"]),setup(s,{emit:i}){const o=s,t=f(s,"value"),u=i,{bool:d,setTrue:c,setFalse:r}=b(),m=e=>{var a;t.value=e===0?1:0,(a=window.$dialog)==null||a.warning({title:"系统提示",content:`确定要${k(w[e])}${o.info}吗?`,positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{c(),u("submitted",e,n=>{n&&(t.value=e),r()})},onNegativeClick:()=>{}})};return(e,a)=>{const n=$;return g(),_(n,{value:t.value,"onUpdate:value":[a[0]||(a[0]=p=>t.value=p),m],loading:h(d),"rubber-band":!1,"checked-value":1,"unchecked-value":0,disabled:o.disabled},null,8,["value","loading","disabled"])}}});export{B as _};
|
||||
import{d as v,Z as l,a0 as f,ag as b,o as g,c as _,h,$ as k,aL as w,dC as $}from"./index--PhRNylI.js";const B=v({name:"StatusSwitch",__name:"status-switch",props:l({disabled:{type:Boolean,default:!1},info:{default:""}},{value:{required:!1,default:0},valueModifiers:{}}),emits:l(["submitted"],["update:value"]),setup(s,{emit:i}){const o=s,t=f(s,"value"),u=i,{bool:d,setTrue:c,setFalse:r}=b(),m=e=>{var a;t.value=e===0?1:0,(a=window.$dialog)==null||a.warning({title:"系统提示",content:`确定要${k(w[e])}${o.info}吗?`,positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{c(),u("submitted",e,n=>{n&&(t.value=e),r()})},onNegativeClick:()=>{}})};return(e,a)=>{const n=$;return g(),_(n,{value:t.value,"onUpdate:value":[a[0]||(a[0]=p=>t.value=p),m],loading:h(d),"rubber-band":!1,"checked-value":1,"unchecked-value":0,disabled:o.disabled},null,8,["value","loading","disabled"])}}});export{B as _};
|
@ -1 +1 @@
|
||||
import{d as V,j as A,k as N}from"./Grid-CRdsjMH4.js";import{d as q,r as S,al as M,e0 as $,E as H,e5 as U,e6 as W,e7 as Y,ag as B,p as L,e8 as O,a as j,aq as X,L as J,$ as z,q as Q,as as Z}from"./index-U8_FYD1k.js";const ee=Object.assign(Object.assign({},A),U),oe=q({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:ee,setup(){const a=S(null);return{formItemInstRef:a,validate:(...n)=>{const{value:p}=a;if(p)return p.validate(...n)},restoreValidation:()=>{const{value:n}=a;n&&n.restoreValidation()}}},render(){return M(V,$(this.$.vnode.props||{},N),{default:()=>{const a=$(this.$props,W);return M(H,Object.assign({ref:"formItemInstRef"},a),this.$slots)}})}});function ae(a){const{loading:l,startLoading:h,endLoading:n}=Y(),{bool:p,setBool:f}=B(),{apiFn:b,apiParams:d,transformer:v,immediate:g=!0,getColumnChecks:C,getColumns:I}=a,o=L(O({...d})),P=S(a.columns()),w=S([]),k=S(C(a.columns())),y=j(()=>I(P.value,k.value));function E(){P.value=a.columns();const i=new Map(k.value.map(c=>[c.key,c.checked])),m=C(P.value);k.value=m.map(c=>({...c,checked:i.get(c.key)??c.checked}))}async function _(){var e;h();const i=D(o),m=await b(i),c=v(m);w.value=c.data,f(c.data.length===0),await((e=a.onFetched)==null?void 0:e.call(a,c)),n()}function D(i){const m={};return Object.entries(i).forEach(([c,e])=>{e!=null&&(m[c]=e)}),m}function r(i){Object.assign(o,i)}function T(){Object.assign(o,O(d))}return g&&(a.searchParams&&r(a.searchParams),_()),{loading:l,empty:p,data:w,columns:y,columnChecks:k,reloadColumns:E,getData:_,searchParams:o,updateSearchParams:r,resetSearchParams:T}}function re(a){const l=X(),h=J(),n=j(()=>h.isMobile),{apiFn:p,apiParams:f,immediate:b}=a,d=a.showTotal||!0,v="__selection__",g="__expand__",{loading:C,empty:I,data:o,columns:P,columnChecks:w,reloadColumns:k,getData:y,searchParams:E,updateSearchParams:_,resetSearchParams:D}=ae({apiFn:p,apiParams:f,searchParams:a.searchParams,columns:a.columns,transformer:e=>{const{data:u=[],page:t=1,size:x=10,total:s=0}=e.data||{},F=x<=0?10:x;return{data:u.map((G,R)=>({...G,index:(t-1)*F+R+1})),pageNum:t,pageSize:F,total:s}},getColumnChecks:e=>{const u=[];return e.forEach(t=>{K(t)?u.push({key:t.key,title:t.title,checked:!0}):t.type==="selection"?u.push({key:v,title:z("common.check"),checked:!0}):t.type==="expand"&&u.push({key:g,title:z("common.expandColumn"),checked:!0})}),u},getColumns:(e,u)=>{const t=new Map;return e.forEach(s=>{K(s)?t.set(s.key,s):s.type==="selection"?t.set(v,s):s.type==="expand"&&t.set(g,s),n.value&&s.fixed&&(s.fixed=void 0)}),u.filter(s=>s.checked).map(s=>t.get(s.key))},onFetched:async e=>{const{pageNum:u,pageSize:t,total:x}=e;i({page:u,pageSize:t,itemCount:x})},immediate:b}),r=L({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,15,20,25,30],onUpdatePage:async e=>{r.page=e,_({page:e,size:r.pageSize}),y()},onUpdatePageSize:async e=>{r.pageSize=e,r.page=1,_({page:r.page,size:e}),y()},...d?{prefix:e=>z("datatable.itemCount",{total:e.itemCount})}:{}}),T=j(()=>({...r,pageSlot:n.value?3:9,prefix:!n.value&&d?r.prefix:void 0}));function i(e){Object.assign(r,e)}async function m(e=1){i({page:e}),_({page:e,size:r.pageSize}),await y()}return l.run(()=>{Q(()=>h.locale,()=>{k()})}),Z(()=>{l.stop()}),{loading:C,empty:I,data:o,columns:P,columnChecks:w,reloadColumns:k,pagination:r,mobilePagination:T,updatePagination:i,getData:y,getDataByPage:m,searchParams:E,updateSearchParams:_,resetSearchParams:()=>{D(),y()}}}function ce(a,l){const{bool:h,setTrue:n,setFalse:p}=B(),f=S("add");function b(){f.value="add",n()}const d=S(null);function v(o){f.value="edit";const P=a.value.find(w=>w.id===o)||null;d.value=O(P),n()}const g=S([]);async function C(){var o;(o=window.$message)==null||o.success(z("common.deleteSuccess")),g.value=[],await l()}async function I(){var o;(o=window.$message)==null||o.success(z("common.deleteSuccess")),await l()}return{drawerVisible:h,openDrawer:n,closeDrawer:p,operateType:f,handleAdd:b,editingData:d,handleEdit:v,checkedRowKeys:g,onBatchDeleted:C,onDeleted:I}}function K(a){return!!a.key}export{oe as _,ce as a,re as u};
|
||||
import{d as V,j as A,k as N}from"./Grid-C8sbif0M.js";import{d as q,r as S,al as M,e0 as $,E as H,e5 as U,e6 as W,e7 as Y,ag as B,p as L,e8 as O,a as j,aq as X,L as J,$ as z,q as Q,as as Z}from"./index--PhRNylI.js";const ee=Object.assign(Object.assign({},A),U),oe=q({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:ee,setup(){const a=S(null);return{formItemInstRef:a,validate:(...n)=>{const{value:p}=a;if(p)return p.validate(...n)},restoreValidation:()=>{const{value:n}=a;n&&n.restoreValidation()}}},render(){return M(V,$(this.$.vnode.props||{},N),{default:()=>{const a=$(this.$props,W);return M(H,Object.assign({ref:"formItemInstRef"},a),this.$slots)}})}});function ae(a){const{loading:l,startLoading:h,endLoading:n}=Y(),{bool:p,setBool:f}=B(),{apiFn:b,apiParams:d,transformer:v,immediate:g=!0,getColumnChecks:C,getColumns:I}=a,o=L(O({...d})),P=S(a.columns()),w=S([]),k=S(C(a.columns())),y=j(()=>I(P.value,k.value));function E(){P.value=a.columns();const i=new Map(k.value.map(c=>[c.key,c.checked])),m=C(P.value);k.value=m.map(c=>({...c,checked:i.get(c.key)??c.checked}))}async function _(){var e;h();const i=D(o),m=await b(i),c=v(m);w.value=c.data,f(c.data.length===0),await((e=a.onFetched)==null?void 0:e.call(a,c)),n()}function D(i){const m={};return Object.entries(i).forEach(([c,e])=>{e!=null&&(m[c]=e)}),m}function r(i){Object.assign(o,i)}function T(){Object.assign(o,O(d))}return g&&(a.searchParams&&r(a.searchParams),_()),{loading:l,empty:p,data:w,columns:y,columnChecks:k,reloadColumns:E,getData:_,searchParams:o,updateSearchParams:r,resetSearchParams:T}}function re(a){const l=X(),h=J(),n=j(()=>h.isMobile),{apiFn:p,apiParams:f,immediate:b}=a,d=a.showTotal||!0,v="__selection__",g="__expand__",{loading:C,empty:I,data:o,columns:P,columnChecks:w,reloadColumns:k,getData:y,searchParams:E,updateSearchParams:_,resetSearchParams:D}=ae({apiFn:p,apiParams:f,searchParams:a.searchParams,columns:a.columns,transformer:e=>{const{data:u=[],page:t=1,size:x=10,total:s=0}=e.data||{},F=x<=0?10:x;return{data:u.map((G,R)=>({...G,index:(t-1)*F+R+1})),pageNum:t,pageSize:F,total:s}},getColumnChecks:e=>{const u=[];return e.forEach(t=>{K(t)?u.push({key:t.key,title:t.title,checked:!0}):t.type==="selection"?u.push({key:v,title:z("common.check"),checked:!0}):t.type==="expand"&&u.push({key:g,title:z("common.expandColumn"),checked:!0})}),u},getColumns:(e,u)=>{const t=new Map;return e.forEach(s=>{K(s)?t.set(s.key,s):s.type==="selection"?t.set(v,s):s.type==="expand"&&t.set(g,s),n.value&&s.fixed&&(s.fixed=void 0)}),u.filter(s=>s.checked).map(s=>t.get(s.key))},onFetched:async e=>{const{pageNum:u,pageSize:t,total:x}=e;i({page:u,pageSize:t,itemCount:x})},immediate:b}),r=L({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,15,20,25,30],onUpdatePage:async e=>{r.page=e,_({page:e,size:r.pageSize}),y()},onUpdatePageSize:async e=>{r.pageSize=e,r.page=1,_({page:r.page,size:e}),y()},...d?{prefix:e=>z("datatable.itemCount",{total:e.itemCount})}:{}}),T=j(()=>({...r,pageSlot:n.value?3:9,prefix:!n.value&&d?r.prefix:void 0}));function i(e){Object.assign(r,e)}async function m(e=1){i({page:e}),_({page:e,size:r.pageSize}),await y()}return l.run(()=>{Q(()=>h.locale,()=>{k()})}),Z(()=>{l.stop()}),{loading:C,empty:I,data:o,columns:P,columnChecks:w,reloadColumns:k,pagination:r,mobilePagination:T,updatePagination:i,getData:y,getDataByPage:m,searchParams:E,updateSearchParams:_,resetSearchParams:()=>{D(),y()}}}function ce(a,l){const{bool:h,setTrue:n,setFalse:p}=B(),f=S("add");function b(){f.value="add",n()}const d=S(null);function v(o){f.value="edit";const P=a.value.find(w=>w.id===o)||null;d.value=O(P),n()}const g=S([]);async function C(){var o;(o=window.$message)==null||o.success(z("common.deleteSuccess")),g.value=[],await l()}async function I(){var o;(o=window.$message)==null||o.success(z("common.deleteSuccess")),await l()}return{drawerVisible:h,openDrawer:n,closeDrawer:p,operateType:f,handleAdd:b,editingData:d,handleEdit:v,checkedRowKeys:g,onBatchDeleted:C,onDeleted:I}}function K(a){return!!a.key}export{oe as _,ce as a,re as u};
|
@ -1,4 +1,4 @@
|
||||
import{b3 as C,bp as i,d as $,b4 as B,b7 as h,bq as z,a as c,bv as T,ba as _,bX as R,al as l}from"./index-U8_FYD1k.js";const S=C("text",`
|
||||
import{b3 as C,bp as i,d as $,b4 as B,b7 as h,bq as z,a as c,bv as T,ba as _,bX as R,al as l}from"./index--PhRNylI.js";const S=C("text",`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
`,[i("strong",`
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
import{aP as o,d3 as r}from"./index-U8_FYD1k.js";function n(t){return o({url:"/workflow/page/list",method:"get",params:t})}function l(t){return o({url:`/workflow/trigger/${t}`,method:"post"})}function u(t){return o({url:"/workflow/workflow-name/list",method:"get",params:t})}function c(t){return o({url:"/workflow/batch/page/list",method:"get",params:t})}function h(t){return o({url:`/workflow/update/status/${t}`,method:"put"})}function w(t){return o({url:"/workflow/ids",method:"delete",data:t})}function a(t){return o({url:`/workflow/batch/stop/${t}`,method:"post"})}function s(t,e){return o({url:`/workflow/node/retry/${e}/${t}`,method:"post"})}function d(t){return o({url:"/workflow/check-node-expression",method:"post",data:{...t,checkContent:JSON.stringify(r(t.checkContents))}})}function k(t){return o({url:"/workflow",method:"post",data:t})}function i(t){return o({url:"/workflow",method:"put",data:t})}function p(t){return o({url:`/workflow/${t}`,method:"get"})}function m(t){return o({url:`/workflow/batch/${t}`,method:"get"})}function g(t,e){return o({url:`/workflow/node/retry/${t}/${e}`,method:"post"})}function W(t,e){return o({url:`/workflow/node/stop/${t}/${e}`,method:"post"})}function $(t){return o({url:"/workflow/batch/ids",method:"delete",data:[t]})}function B(t){return o({url:"/workflow/batch/ids",method:"delete",data:t})}export{c as a,$ as b,a as c,B as d,k as e,u as f,m as g,p as h,i,s as j,g as k,W as l,d as m,n,w as o,l as p,h as q};
|
||||
import{aP as o,d3 as r}from"./index--PhRNylI.js";function n(t){return o({url:"/workflow/page/list",method:"get",params:t})}function l(t){return o({url:`/workflow/trigger/${t}`,method:"post"})}function u(t){return o({url:"/workflow/workflow-name/list",method:"get",params:t})}function c(t){return o({url:"/workflow/batch/page/list",method:"get",params:t})}function h(t){return o({url:`/workflow/update/status/${t}`,method:"put"})}function w(t){return o({url:"/workflow/ids",method:"delete",data:t})}function a(t){return o({url:`/workflow/batch/stop/${t}`,method:"post"})}function s(t,e){return o({url:`/workflow/node/retry/${e}/${t}`,method:"post"})}function d(t){return o({url:"/workflow/check-node-expression",method:"post",data:{...t,checkContent:JSON.stringify(r(t.checkContents))}})}function k(t){return o({url:"/workflow",method:"post",data:t})}function i(t){return o({url:"/workflow",method:"put",data:t})}function p(t){return o({url:`/workflow/${t}`,method:"get"})}function m(t){return o({url:`/workflow/batch/${t}`,method:"get"})}function g(t,e){return o({url:`/workflow/node/retry/${t}/${e}`,method:"post"})}function W(t,e){return o({url:`/workflow/node/stop/${t}/${e}`,method:"post"})}function $(t){return o({url:"/workflow/batch/ids",method:"delete",data:[t]})}function B(t){return o({url:"/workflow/batch/ids",method:"delete",data:t})}export{c as a,$ as b,a as c,B as d,k as e,u as f,m as g,p as h,i,s as j,g as k,W as l,d as m,n,w as o,l as p,h as q};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,13 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-cmn-Hans">
|
||||
<head>
|
||||
<meta name="buildTime" content="2024-10-24 21:09:12">
|
||||
<meta name="buildTime" content="2024-10-25 10:31:28">
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/snail-job/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<title>Snail Job</title>
|
||||
<script type="module" crossorigin src="/snail-job/assets/index-U8_FYD1k.js"></script>
|
||||
<script type="module" crossorigin src="/snail-job/assets/index--PhRNylI.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/snail-job/assets/index-B7DRNwAY.css">
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user