feat:(1.2.0-beta1.1): 1. 修复并行度大于1时,map任务执行失败问题2. 修复前端回显问题

This commit is contained in:
opensnail 2024-09-09 21:14:42 +08:00
parent 1ec1f98f3e
commit 7da2aa3aa3
65 changed files with 90 additions and 90 deletions

View File

@ -21,7 +21,7 @@
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<revision>1.2.0-beta1</revision>
<revision>1.2.0-beta1.1</revision>
<netty-all.version>4.1.94.Final</netty-all.version>
<hutool-all.version>5.8.25</hutool-all.version>
<mybatis-plus.version>3.5.7</mybatis-plus.version>

View File

@ -38,7 +38,7 @@ public class ThreadPoolCache {
Supplier<ThreadPoolExecutor> supplier = () -> {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(
// 默认情况先只设置一个线程, 只有分片任务(静态分片MAPMapReduce)才会需要多线程支持
1, parallelNum, 10, TimeUnit.SECONDS, new LinkedBlockingQueue<>(),
1, parallelNum, 10, TimeUnit.SECONDS, new LinkedBlockingQueue<>(10000),
new CustomizableThreadFactory(MessageFormat.format("snail-job-job-{0}-", taskBatchId)));
threadPoolExecutor.allowCoreThreadTimeOut(true);
return threadPoolExecutor;

View File

@ -1,4 +1,4 @@
import{bp as ee,b5 as x,b_ as te,d as ne,b6 as ae,b8 as le,r as m,ba as oe,bb as se,b9 as V,b$ as ie,a as v,c0 as re,bc as ue,bQ as de,c1 as F,al as u,c2 as ce,c3 as me,c4 as fe,D as he,c5 as ve,O as ge,c6 as pe,c7 as be,c8 as Se,c9 as Te,ca as ye,bg as f}from"./index-FUIa4-vU.js";function Ce(t){return t.map(A)}function A(t){var i,a;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:(a=t.value)!==null&&a!==void 0?a:t.name,key:t.key||t.name,children:t.children.map(l=>A(l))}:t}const _e=ee([x("auto-complete",`
import{bp as ee,b5 as x,b_ as te,d as ne,b6 as ae,b8 as le,r as m,ba as oe,bb as se,b9 as V,b$ as ie,a as v,c0 as re,bc as ue,bQ as de,c1 as F,al as u,c2 as ce,c3 as me,c4 as fe,D as he,c5 as ve,O as ge,c6 as pe,c7 as be,c8 as Se,c9 as Te,ca as ye,bg as f}from"./index-Dw6v9XEN.js";function Ce(t){return t.map(A)}function A(t){var i,a;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:(a=t.value)!==null&&a!==void 0?a:t.name,key:t.key||t.name,children:t.children.map(l=>A(l))}:t}const _e=ee([x("auto-complete",`
z-index: auto;
position: relative;
display: inline-flex;

View File

@ -1,4 +1,4 @@
import{d as P,al as n,b5 as f,bq as x,bv as o,bp as $,dp as H,bN as q,b6 as D,r as V,a as N,bb as W,b9 as T,dq as O,bP as K,cF as k,bc as G,bE as Z,bg as I,dr as J,ba as F,c6 as Q,cC as X,ds as Y,dk as ee,bG as re,bF as ae,ck as te,cp as z,dh as A,dt as le,bd as oe,du as ne}from"./index-FUIa4-vU.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,b5 as f,bq as x,bv as o,bp as $,dp as H,bN as q,b6 as D,r as V,a as N,bb as W,b9 as T,dq as O,bP as K,cF as k,bc as G,bE as Z,bg as I,dr as J,ba as F,c6 as Q,cC as X,ds as Y,dk as ee,bG as re,bF as ae,ck as te,cp as z,dh as A,dt as le,bd as oe,du as ne}from"./index-Dw6v9XEN.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:

View File

@ -1,4 +1,4 @@
import{bp as p,b5 as e,bN as F,bq as C,bv as B,dv as G,dw as H,d as E,b6 as N,b9 as L,dx as q,a as M,bw as k,bc as K,bY as W,dy as Y,al as n,dz as J,dA as Q}from"./index-FUIa4-vU.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 X=p([e("descriptions",{fontSize:"var(--n-font-size)"},[e("descriptions-separator",`
import{bp as p,b5 as e,bN as F,bq as C,bv as B,dv as G,dw as H,d as E,b6 as N,b9 as L,dx as q,a as M,bw as k,bc as K,bY as W,dy as Y,al as n,dz as J,dA as Q}from"./index-Dw6v9XEN.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 X=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",`

View File

@ -1,4 +1,4 @@
import{bp as P,b5 as o,bq as b,d as z,a as x,dQ as C,al as r,bd as W,dR as q,dS as O,dT as T,dU as A,b6 as L,b9 as _,dV as M,bw as I,bc as X}from"./index-FUIa4-vU.js";const j=P([o("progress",{display:"inline-block"},[o("progress-icon",`
import{bp as P,b5 as o,bq as b,d as z,a as x,dQ as C,al as r,bd as W,dR as q,dS as O,dT as T,dU as A,b6 as L,b9 as _,dV as M,bw as I,bc as X}from"./index-Dw6v9XEN.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",`

View File

@ -1 +1 @@
import{d as s,i as a,j as o,o as r,b as t,e as n}from"./index-FUIa4-vU.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-Dw6v9XEN.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};

View File

@ -1 +1 @@
import{y as n}from"./index-FUIa4-vU.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-Dw6v9XEN.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};

View File

@ -1,4 +1,4 @@
import{d as Nt,al as j,b5 as De,bN as al,bp as Je,bq as wt,bv as Ii,b6 as mh,cy as Lu,bP as gh,de as Iu,cF as bh,a$ as Nu,b0 as _u,b1 as Gu,b2 as Fu,df as Hu,bE as Ku,bF as So,D as xr,dg as Ju,r as ei,ba as Sn,bb as ed,b9 as yh,a as Ue,bc as td,b7 as id,B as Pi,cr as hl,dh as cl,di as Bs,dj as js,dk as nd,bd as $i,be as fl,dl as sd,bg as Ls,dm as rd,q as Sr,i as od,ap as ld,n as ad,M as hd,o as cd,c as fd,h as ul}from"./index-FUIa4-vU.js";import{A as ud}from"./Grid-C3gcBClN.js";const dd=Nt({name:"ArrowUp",render(){return j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},j("g",{fill:"none"},j("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",xh="-1px!important";function Gt(n){return wt(`${n}-type`,[Je("& +",[De("button",{},[wt(`${n}-type`,[Ii("border",{borderLeftWidth:H}),Ii("state-border",{left:xh})])])])])}function Ft(n){return wt(`${n}-type`,[Je("& +",[De("button",[wt(`${n}-type`,[Ii("border",{borderTopWidth:H}),Ii("state-border",{top:xh})])])])])}const Od=De("button-group",`
import{d as Nt,al as j,b5 as De,bN as al,bp as Je,bq as wt,bv as Ii,b6 as mh,cy as Lu,bP as gh,de as Iu,cF as bh,a$ as Nu,b0 as _u,b1 as Gu,b2 as Fu,df as Hu,bE as Ku,bF as So,D as xr,dg as Ju,r as ei,ba as Sn,bb as ed,b9 as yh,a as Ue,bc as td,b7 as id,B as Pi,cr as hl,dh as cl,di as Bs,dj as js,dk as nd,bd as $i,be as fl,dl as sd,bg as Ls,dm as rd,q as Sr,i as od,ap as ld,n as ad,M as hd,o as cd,c as fd,h as ul}from"./index-Dw6v9XEN.js";import{A as ud}from"./Grid-oISpgLl0.js";const dd=Nt({name:"ArrowUp",render(){return j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},j("g",{fill:"none"},j("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",xh="-1px!important";function Gt(n){return wt(`${n}-type`,[Je("& +",[De("button",{},[wt(`${n}-type`,[Ii("border",{borderLeftWidth:H}),Ii("state-border",{left:xh})])])])])}function Ft(n){return wt(`${n}-type`,[Je("& +",[De("button",[wt(`${n}-type`,[Ii("border",{borderTopWidth:H}),Ii("state-border",{top:xh})])])])])}const Od=De("button-group",`
flex-wrap: nowrap;
display: inline-flex;
position: relative;

View File

@ -1 +1 @@
import{aR as e}from"./index-FUIa4-vU.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{aR as e}from"./index-Dw6v9XEN.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};

View File

@ -1,4 +1,4 @@
import{b0 as O,dW as D,bD as v,dX as b,b5 as I,bv as c,bq as T,dp as K,bp as q,d as H,b6 as U,b9 as $,cF as X,a as y,dY as Y,bw as h,bc as G,r as J,al as a,dd as Q,bH as Z,cr as ee,bd as oe,dS as re,dT as ne,dU as te,dR as se,am as le,cC as ae,k as ie,y as ce,o as de,c as ue,w as he,e as A,g as R,t as ge,ai as fe,aK as ve,aL as be,l as Ce}from"./index-FUIa4-vU.js";function pe(r){const{lineHeight:e,borderRadius:i,fontWeightStrong:l,baseColor:n,dividerColor:g,actionColor:_,textColor1:f,textColor2:t,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,infoColor:o,successColor:x,warningColor:z,errorColor:S,fontSize:w}=r;return Object.assign(Object.assign({},D),{fontSize:w,lineHeight:e,titleFontWeight:l,borderRadius:i,border:`1px solid ${g}`,color:_,titleTextColor:f,iconColor:t,contentTextColor:t,closeBorderRadius:i,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,borderInfo:`1px solid ${v(n,b(o,{alpha:.25}))}`,colorInfo:v(n,b(o,{alpha:.08})),titleTextColorInfo:f,iconColorInfo:o,contentTextColorInfo:t,closeColorHoverInfo:d,closeColorPressedInfo:C,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:s,borderSuccess:`1px solid ${v(n,b(x,{alpha:.25}))}`,colorSuccess:v(n,b(x,{alpha:.08})),titleTextColorSuccess:f,iconColorSuccess:x,contentTextColorSuccess:t,closeColorHoverSuccess:d,closeColorPressedSuccess:C,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:s,borderWarning:`1px solid ${v(n,b(z,{alpha:.33}))}`,colorWarning:v(n,b(z,{alpha:.08})),titleTextColorWarning:f,iconColorWarning:z,contentTextColorWarning:t,closeColorHoverWarning:d,closeColorPressedWarning:C,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:s,borderError:`1px solid ${v(n,b(S,{alpha:.25}))}`,colorError:v(n,b(S,{alpha:.08})),titleTextColorError:f,iconColorError:S,contentTextColorError:t,closeColorHoverError:d,closeColorPressedError:C,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:s})}const me={name:"Alert",common:O,self:pe},Ie=I("alert",`
import{b0 as O,dW as D,bD as v,dX as b,b5 as I,bv as c,bq as T,dp as K,bp as q,d as H,b6 as U,b9 as $,cF as X,a as y,dY as Y,bw as h,bc as G,r as J,al as a,dd as Q,bH as Z,cr as ee,bd as oe,dS as re,dT as ne,dU as te,dR as se,am as le,cC as ae,k as ie,y as ce,o as de,c as ue,w as he,e as A,g as R,t as ge,ai as fe,aK as ve,aL as be,l as Ce}from"./index-Dw6v9XEN.js";function pe(r){const{lineHeight:e,borderRadius:i,fontWeightStrong:l,baseColor:n,dividerColor:g,actionColor:_,textColor1:f,textColor2:t,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,infoColor:o,successColor:x,warningColor:z,errorColor:S,fontSize:w}=r;return Object.assign(Object.assign({},D),{fontSize:w,lineHeight:e,titleFontWeight:l,borderRadius:i,border:`1px solid ${g}`,color:_,titleTextColor:f,iconColor:t,contentTextColor:t,closeBorderRadius:i,closeColorHover:d,closeColorPressed:C,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:s,borderInfo:`1px solid ${v(n,b(o,{alpha:.25}))}`,colorInfo:v(n,b(o,{alpha:.08})),titleTextColorInfo:f,iconColorInfo:o,contentTextColorInfo:t,closeColorHoverInfo:d,closeColorPressedInfo:C,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:s,borderSuccess:`1px solid ${v(n,b(x,{alpha:.25}))}`,colorSuccess:v(n,b(x,{alpha:.08})),titleTextColorSuccess:f,iconColorSuccess:x,contentTextColorSuccess:t,closeColorHoverSuccess:d,closeColorPressedSuccess:C,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:s,borderWarning:`1px solid ${v(n,b(z,{alpha:.33}))}`,colorWarning:v(n,b(z,{alpha:.08})),titleTextColorWarning:f,iconColorWarning:z,contentTextColorWarning:t,closeColorHoverWarning:d,closeColorPressedWarning:C,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:s,borderError:`1px solid ${v(n,b(S,{alpha:.25}))}`,colorError:v(n,b(S,{alpha:.08})),titleTextColorError:f,iconColorError:S,contentTextColorError:t,closeColorHoverError:d,closeColorPressedError:C,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:s})}const me={name:"Alert",common:O,self:pe},Ie=I("alert",`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;

View File

@ -1 +1 @@
import{d as V,Z as h,a0 as b,cQ as L,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,cR as U,cs as f,g as z,t as A,h as T,b as q,ai as F,d8 as I,d9 as Q,cM as R,cN as Z,l as j}from"./index-FUIa4-vU.js";const G=V({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=b(p,"modelValue"),x=L(),_=N(),a=W({width:0}),s=$(!1),y=C(()=>{if(t.width)return s.value?t.width[1]:t.width[0];const e=360,o=600;if(_.isMobile)return a.width*.9>=e?`${e}px`:"90%";let n=a.width*.3>=e?`${e}px`:"30%";n=a.width<=420?"90%":n;let l=a.width*.5>=o?`${o}px`:"50%";return l=a.width<=420?"90%":l,s.value?l:n}),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 n=I,l=Q,M=R,S=Z;return d(),u(S,{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(M,{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=>s.value=!s.value)},[s.value?(d(),u(n,{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 V,Z as h,a0 as b,cQ as L,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,cR as U,cs as f,g as z,t as A,h as T,b as q,ai as F,d8 as I,d9 as Q,cM as R,cN as Z,l as j}from"./index-Dw6v9XEN.js";const G=V({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=b(p,"modelValue"),x=L(),_=N(),a=W({width:0}),s=$(!1),y=C(()=>{if(t.width)return s.value?t.width[1]:t.width[0];const e=360,o=600;if(_.isMobile)return a.width*.9>=e?`${e}px`:"90%";let n=a.width*.3>=e?`${e}px`:"30%";n=a.width<=420?"90%":n;let l=a.width*.5>=o?`${o}px`:"50%";return l=a.width<=420?"90%":l,s.value?l:n}),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 n=I,l=Q,M=R,S=Z;return d(),u(S,{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(M,{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=>s.value=!s.value)},[s.value?(d(),u(n,{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 _};

View File

@ -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-FUIa4-vU.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-Dw6v9XEN.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 _};

View File

@ -1 +1 @@
import{aR as r}from"./index-FUIa4-vU.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{aR as r}from"./index-Dw6v9XEN.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

View File

@ -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-FUIa4-vU.js";import{f as JS,a as tx,b as ex,c as rx}from"./dashboard-Bg1tt1fG.js";import{_ as nx}from"./Progress-BRWGVjx3.js";import{r as ax,s as ix,c as Lm,d as Pm,_ as ox,b as sx}from"./Grid-C3gcBClN.js";import{_ as lx}from"./datetime-range.vue_vue_type_script_setup_true_lang-DeHqOogJ.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-Dw6v9XEN.js";import{f as JS,a as tx,b as ex,c as rx}from"./dashboard-BBDR8FhH.js";import{_ as nx}from"./Progress-Qnd2DYUf.js";import{r as ax,s as ix,c as Lm,d as Pm,_ as ox,b as sx}from"./Grid-oISpgLl0.js";import{_ as lx}from"./datetime-range.vue_vue_type_script_setup_true_lang-CPeFGIuC.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

View File

@ -1 +1 @@
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-Wo6sqWoq.js";import{d as n,o as t,c as a}from"./index-FUIa4-vU.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-CCiqE9qN.js";import{d as n,o as t,c as a}from"./index-Dw6v9XEN.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};

View File

@ -1 +1 @@
import{a as R,b as $,c as A}from"./log-drawer-DBbAafJ2.js";import{d as E,k as z,r as s,i as U,by as W,o as d,c as f,w as o,e as h,f as a,x as q,g as p,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-FUIa4-vU.js";import{u as K,_ as P}from"./workflow.vue_vue_type_style_index_0_lang-CF26VK47.js";import{g as Q}from"./workflow-C9G6jvXp.js";import"./CollapseItem-BMMOxk7k.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-DIIvOixm.js";import"./table-DGi3nvCm.js";import"./Grid-C3gcBClN.js";import"./job-CSfapI8R.js";import"./detail-drawer-bwrDwggh.js";import"./DescriptionsItem-C7R9mygj.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BdCwZFpp.js";import"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import"./group-BxDj9-KV.js";const X={class:"flex-center"},Y={class:"flex-center gap-8px"},Z=E({name:"workflow_form_batch",__name:"index",setup(ee){const i=K(),B=z(),v=s(!1),g=String(B.query.id),u=s({}),l=s(0),_=s(),y=new AbortController,t=s(!0),k=()=>{t.value=!0,y.abort(),clearTimeout(_.value),_.value=void 0},x=()=>{t.value||y.abort(),k(),u.value={},i.clear()},c=async()=>{v.value=!0;const{data:n,error:e}=await Q(g);e?(e==null?void 0:e.code)!=="ERR_CANCELED"&&x():(u.value=n,t.value=!(n.workflowBatchStatus&&[1,2].includes(n.workflowBatchStatus))||l.value===0,!t.value&&l.value!==0&&(clearTimeout(_.value),_.value=setTimeout(c,l.value*1e3))),v.value=!1},b=async n=>{if(n===-1){t.value&&(t.value=!1,await c());return}if(l.value=n,n===0){k();return}t.value=!1,await c()};U(()=>{i.clear(),i.setType(2),i.setId(g),c()}),W(()=>{x()});const w=s([{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 S=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]=r=>u.value=r),spinning:!1,disabled:"",onRefresh:e[2]||(e[2]=r=>c())},{buttons:o(()=>[h("div",X,[a(T,{trigger:"hover",width:"trigger",options:w.value,onSelect:b},{default:o(()=>[a(m,{placement:"left"},{trigger:o(()=>[a(C,{dashed:"",class:q(["w-136px",t.value?"mr-16px":"mr-42px"]),onClick:e[0]||(e[0]=r=>b(-1))},{icon:o(()=>[h("div",Y,[a(S,{class:"text-18px"}),p(" "+L(w.value.filter(r=>r.key===l.value)[0].label)+" ",1),a(N,{icon:"material-symbols:expand-more-rounded"})])]),_:1},8,["class"])]),default:o(()=>[p(" 自动刷新频率 ")]),_:1})]),_:1},8,["options"]),t.value?(d(),f(m,{key:0,placement:"top"},{trigger:o(()=>[a(V,{class:"text-26px color-success"})]),default:o(()=>[p(" 流程批次加载完成 ")]),_:1})):(d(),f(m,{key:1},{trigger:o(()=>[a(I,{size:"small"},{icon:o(()=>[a(D)]),_:1})]),default:o(()=>[p(" 流程批次正在加载 ")]),_: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-Dhs3Srds.js";import{d as E,k as z,r as s,i as U,by as W,o as d,c as f,w as o,e as h,f as a,x as q,g as p,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-Dw6v9XEN.js";import{u as K,_ as P}from"./workflow.vue_vue_type_style_index_0_lang-Dxag8GGn.js";import{g as Q}from"./workflow-B78olBGP.js";import"./CollapseItem-EF7vJxT6.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CFpBU8Xy.js";import"./table-h4IGR_Mx.js";import"./Grid-oISpgLl0.js";import"./job-CpyNzvSg.js";import"./detail-drawer-CxJYaLsx.js";import"./DescriptionsItem-Fk5NYKQV.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-DJC-w-iG.js";import"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import"./group-CoHVo80F.js";const X={class:"flex-center"},Y={class:"flex-center gap-8px"},Z=E({name:"workflow_form_batch",__name:"index",setup(ee){const i=K(),B=z(),v=s(!1),g=String(B.query.id),u=s({}),l=s(0),_=s(),y=new AbortController,t=s(!0),k=()=>{t.value=!0,y.abort(),clearTimeout(_.value),_.value=void 0},x=()=>{t.value||y.abort(),k(),u.value={},i.clear()},c=async()=>{v.value=!0;const{data:n,error:e}=await Q(g);e?(e==null?void 0:e.code)!=="ERR_CANCELED"&&x():(u.value=n,t.value=!(n.workflowBatchStatus&&[1,2].includes(n.workflowBatchStatus))||l.value===0,!t.value&&l.value!==0&&(clearTimeout(_.value),_.value=setTimeout(c,l.value*1e3))),v.value=!1},b=async n=>{if(n===-1){t.value&&(t.value=!1,await c());return}if(l.value=n,n===0){k();return}t.value=!1,await c()};U(()=>{i.clear(),i.setType(2),i.setId(g),c()}),W(()=>{x()});const w=s([{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 S=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]=r=>u.value=r),spinning:!1,disabled:"",onRefresh:e[2]||(e[2]=r=>c())},{buttons:o(()=>[h("div",X,[a(T,{trigger:"hover",width:"trigger",options:w.value,onSelect:b},{default:o(()=>[a(m,{placement:"left"},{trigger:o(()=>[a(C,{dashed:"",class:q(["w-136px",t.value?"mr-16px":"mr-42px"]),onClick:e[0]||(e[0]=r=>b(-1))},{icon:o(()=>[h("div",Y,[a(S,{class:"text-18px"}),p(" "+L(w.value.filter(r=>r.key===l.value)[0].label)+" ",1),a(N,{icon:"material-symbols:expand-more-rounded"})])]),_:1},8,["class"])]),default:o(()=>[p(" 自动刷新频率 ")]),_:1})]),_:1},8,["options"]),t.value?(d(),f(m,{key:0,placement:"top"},{trigger:o(()=>[a(V,{class:"text-26px color-success"})]),default:o(()=>[p(" 流程批次加载完成 ")]),_:1})):(d(),f(m,{key:1},{trigger:o(()=>[a(I,{size:"small"},{icon:o(()=>[a(D)]),_:1})]),default:o(()=>[p(" 流程批次正在加载 ")]),_:1}))])]),_:1},8,["modelValue"])}}}),fe=J(Z,[["__scopeId","data-v-dfdd102d"]]);export{fe as default};

View File

@ -1,4 +1,4 @@
import{a as Oe,N as oe,b as Ce}from"./search-form.vue_vue_type_script_setup_true_lang-DWHJMzUA.js";import{d as Te,_ as $e,a as Ie}from"./download-Ckeozqr4.js";import{_ as Ue}from"./delete-alert-C7AOLNLM.js";import{bp as Q,b5 as re,bq as se,d as L,b6 as Ve,b9 as ce,br as ze,a as de,bc as qe,al as pe,Z as G,a0 as Y,L as me,r as W,q as P,o as C,c as U,h as t,w as n,f as e,$ as a,g,t as N,ai as fe,aH as ge,a9 as _e,z as Be,A as Ke,p as Le,bs as ne,b as be,a1 as Pe,aI as ye,a3 as je,a4 as ve,bt as Fe,e as he,ab as Se,D as Ae,E as Me,H as Ge,aa as Ne,_ as Ee,B as M,a8 as He,I as Ze,ac as te,aN as Qe,aO as xe,bu as ke,Y as ae,ag as We,ah as A,aj as Ye,F as Je,ak as Xe}from"./index-FUIa4-vU.js";import{a as et,b as tt,_ as at,c as nt,d as lt,e as ot,g as rt}from"./select-scene.vue_vue_type_script_setup_true_lang-BmdO8Axs.js";import{_ as st,u as ut,a as it}from"./table-DGi3nvCm.js";import{_ as ct}from"./status-switch.vue_vue_type_script_setup_true_lang-haeVk-Xp.js";import{u as dt}from"./auth-DLGijy2W.js";import{_ as pt}from"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import{_ as we,a as mt}from"./route-key.vue_vue_type_script_setup_true_lang-Cphg-srF.js";import{_ as Re}from"./select-group.vue_vue_type_script_setup_true_lang-gBWYpD9F.js";import{_ as ft}from"./text-BwtqHKKW.js";import{_ as gt,d as _t,c as bt,a as yt,b as vt}from"./Grid-C3gcBClN.js";import{_ as ht,a as St}from"./DescriptionsItem-C7R9mygj.js";import"./Progress-BRWGVjx3.js";import"./group-BxDj9-KV.js";const ue=Q("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),ie=[Q("&:first-child",`
import{a as Oe,N as oe,b as Ce}from"./search-form.vue_vue_type_script_setup_true_lang-BvcIdR82.js";import{d as Te,_ as $e,a as Ie}from"./download-BsdDisiO.js";import{_ as Ue}from"./delete-alert-qx5vqfHb.js";import{bp as Q,b5 as re,bq as se,d as L,b6 as Ve,b9 as ce,br as ze,a as de,bc as qe,al as pe,Z as G,a0 as Y,L as me,r as W,q as P,o as C,c as U,h as t,w as n,f as e,$ as a,g,t as N,ai as fe,aH as ge,a9 as _e,z as Be,A as Ke,p as Le,bs as ne,b as be,a1 as Pe,aI as ye,a3 as je,a4 as ve,bt as Fe,e as he,ab as Se,D as Ae,E as Me,H as Ge,aa as Ne,_ as Ee,B as M,a8 as He,I as Ze,ac as te,aN as Qe,aO as xe,bu as ke,Y as ae,ag as We,ah as A,aj as Ye,F as Je,ak as Xe}from"./index-Dw6v9XEN.js";import{a as et,b as tt,_ as at,c as nt,d as lt,e as ot,g as rt}from"./select-scene.vue_vue_type_script_setup_true_lang-DuGvtH6T.js";import{_ as st,u as ut,a as it}from"./table-h4IGR_Mx.js";import{_ as ct}from"./status-switch.vue_vue_type_script_setup_true_lang-C32pgk0N.js";import{u as dt}from"./auth-CwOxyZid.js";import{_ as pt}from"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import{_ as we,a as mt}from"./route-key.vue_vue_type_script_setup_true_lang-BZo1ve2i.js";import{_ as Re}from"./select-group.vue_vue_type_script_setup_true_lang-Cliw46hj.js";import{_ as ft}from"./text-ka05xhrX.js";import{_ as gt,d as _t,c as bt,a as yt,b as vt}from"./Grid-oISpgLl0.js";import{_ as ht,a as St}from"./DescriptionsItem-Fk5NYKQV.js";import"./Progress-Qnd2DYUf.js";import"./group-CoHVo80F.js";const ue=Q("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),ie=[Q("&:first-child",`
margin-top: 0;
`),Q("&:last-child",`
margin-bottom: 0;

View File

@ -0,0 +1 @@
import{d as i,bZ as l,i as p,r as c,o as u,c as f,h as d,$ as w}from"./index-Dw6v9XEN.js";import{u as k,_}from"./workflow.vue_vue_type_style_index_0_lang-Dxag8GGn.js";import{e as v}from"./workflow-B78olBGP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CFpBU8Xy.js";import"./table-h4IGR_Mx.js";import"./Grid-oISpgLl0.js";import"./job-CpyNzvSg.js";import"./detail-drawer-CxJYaLsx.js";import"./DescriptionsItem-Fk5NYKQV.js";import"./log-drawer-Dhs3Srds.js";import"./CollapseItem-EF7vJxT6.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-DJC-w-iG.js";import"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import"./group-CoHVo80F.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};

View File

@ -1 +1 @@
import{d as f,k as d,bZ as w,r as i,i as k,o as _,c as v,h as g,$ as h}from"./index-FUIa4-vU.js";import{u as y,_ as S}from"./workflow.vue_vue_type_style_index_0_lang-CF26VK47.js";import{h as $,i as x}from"./workflow-C9G6jvXp.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-DIIvOixm.js";import"./table-DGi3nvCm.js";import"./Grid-C3gcBClN.js";import"./job-CSfapI8R.js";import"./detail-drawer-bwrDwggh.js";import"./DescriptionsItem-C7R9mygj.js";import"./log-drawer-DBbAafJ2.js";import"./CollapseItem-BMMOxk7k.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BdCwZFpp.js";import"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import"./group-BxDj9-KV.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,bZ as w,r as i,i as k,o as _,c as v,h as g,$ as h}from"./index-Dw6v9XEN.js";import{u as y,_ as S}from"./workflow.vue_vue_type_style_index_0_lang-Dxag8GGn.js";import{h as $,i as x}from"./workflow-B78olBGP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CFpBU8Xy.js";import"./table-h4IGR_Mx.js";import"./Grid-oISpgLl0.js";import"./job-CpyNzvSg.js";import"./detail-drawer-CxJYaLsx.js";import"./DescriptionsItem-Fk5NYKQV.js";import"./log-drawer-Dhs3Srds.js";import"./CollapseItem-EF7vJxT6.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-DJC-w-iG.js";import"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import"./group-CoHVo80F.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};

View File

@ -1 +0,0 @@
import{d as i,bZ as l,i as p,r as c,o as u,c as f,h as d,$ as w}from"./index-FUIa4-vU.js";import{u as k,_}from"./workflow.vue_vue_type_style_index_0_lang-CF26VK47.js";import{e as v}from"./workflow-C9G6jvXp.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-DIIvOixm.js";import"./table-DGi3nvCm.js";import"./Grid-C3gcBClN.js";import"./job-CSfapI8R.js";import"./detail-drawer-bwrDwggh.js";import"./DescriptionsItem-C7R9mygj.js";import"./log-drawer-DBbAafJ2.js";import"./CollapseItem-BMMOxk7k.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BdCwZFpp.js";import"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import"./group-BxDj9-KV.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};

View File

@ -1 +1 @@
import{_}from"./log-drawer-DBbAafJ2.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-FUIa4-vU.js";import"./CollapseItem-BMMOxk7k.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-Dhs3Srds.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-Dw6v9XEN.js";import"./CollapseItem-EF7vJxT6.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};

View File

@ -1 +1 @@
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-Wo6sqWoq.js";import{d as n,o as t,c as a}from"./index-FUIa4-vU.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-CCiqE9qN.js";import{d as n,o as t,c as a}from"./index-Dw6v9XEN.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};

View File

@ -1 +0,0 @@
.http-method[data-v-723259ba]{width:130px!important}

View File

@ -1 +0,0 @@
import{d as p,k as u,r as s,i as f,o as d,c,h as _}from"./index-FUIa4-vU.js";import{u as k,_ as v}from"./workflow.vue_vue_type_style_index_0_lang-CF26VK47.js";import{h as g}from"./workflow-C9G6jvXp.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-DIIvOixm.js";import"./table-DGi3nvCm.js";import"./Grid-C3gcBClN.js";import"./job-CSfapI8R.js";import"./detail-drawer-bwrDwggh.js";import"./DescriptionsItem-C7R9mygj.js";import"./log-drawer-DBbAafJ2.js";import"./CollapseItem-BMMOxk7k.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BdCwZFpp.js";import"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import"./group-BxDj9-KV.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};

View File

@ -0,0 +1 @@
import{d as p,k as u,r as s,i as f,o as d,c,h as _}from"./index-Dw6v9XEN.js";import{u as k,_ as v}from"./workflow.vue_vue_type_style_index_0_lang-Dxag8GGn.js";import{h as g}from"./workflow-B78olBGP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CFpBU8Xy.js";import"./table-h4IGR_Mx.js";import"./Grid-oISpgLl0.js";import"./job-CpyNzvSg.js";import"./detail-drawer-CxJYaLsx.js";import"./DescriptionsItem-Fk5NYKQV.js";import"./log-drawer-Dhs3Srds.js";import"./CollapseItem-EF7vJxT6.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-DJC-w-iG.js";import"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import"./group-CoHVo80F.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};

View File

@ -1 +1 @@
import{a as B,b as I}from"./search-form.vue_vue_type_script_setup_true_lang-DWHJMzUA.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,bk as j,Y as y,g as N,a3 as T,G as C,F as D,ak as O}from"./index-FUIa4-vU.js";import{d as U}from"./dashboard-Bg1tt1fG.js";import{_ as V,u as G,a as K}from"./table-DGi3nvCm.js";import{_ as q}from"./select-group.vue_vue_type_script_setup_true_lang-gBWYpD9F.js";import{b as A}from"./Grid-C3gcBClN.js";import"./group-BxDj9-KV.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 i(){m("search")}return(x,f)=>{const u=V,v=B;return R(),z(v,{model:l.value,onSearch:i,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]=p=>l.value.groupName=p),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:i,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:p}=K(h,i);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(i)},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(p).length===0,loading:e(x),"show-add":!1,"show-delete":!1,onRefresh:e(i)},null,8,["columns","disabled-delete","loading","onRefresh"])]),default:k(()=>[t(g,{"checked-row-keys":e(p),"onUpdate:checkedRowKeys":a[2]||(a[2]=n=>w(p)?p.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-BvcIdR82.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,bk as j,Y as y,g as N,a3 as T,G as C,F as D,ak as O}from"./index-Dw6v9XEN.js";import{d as U}from"./dashboard-BBDR8FhH.js";import{_ as V,u as G,a as K}from"./table-h4IGR_Mx.js";import{_ as q}from"./select-group.vue_vue_type_script_setup_true_lang-Cliw46hj.js";import{b as A}from"./Grid-oISpgLl0.js";import"./group-CoHVo80F.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 i(){m("search")}return(x,f)=>{const u=V,v=B;return R(),z(v,{model:l.value,onSearch:i,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]=p=>l.value.groupName=p),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:i,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:p}=K(h,i);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(i)},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(p).length===0,loading:e(x),"show-add":!1,"show-delete":!1,onRefresh:e(i)},null,8,["columns","disabled-delete","loading","onRefresh"])]),default:k(()=>[t(g,{"checked-row-keys":e(p),"onUpdate:checkedRowKeys":a[2]||(a[2]=n=>w(p)?p.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};

View File

@ -0,0 +1 @@
.http-method[data-v-4986c603]{width:130px!important}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as o}from"./exception-base.vue_vue_type_script_setup_true_lang-Wo6sqWoq.js";import{d as n,o as t,c as a}from"./index-FUIa4-vU.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-CCiqE9qN.js";import{d as n,o as t,c as a}from"./index-Dw6v9XEN.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};

View File

@ -1 +1 @@
import{d as f,k as d,bZ as w,r as n,i as k,o as _,c as v,h as g,$ as y}from"./index-FUIa4-vU.js";import{u as S,_ as h}from"./workflow.vue_vue_type_style_index_0_lang-CF26VK47.js";import{h as $,e as x}from"./workflow-C9G6jvXp.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-DIIvOixm.js";import"./table-DGi3nvCm.js";import"./Grid-C3gcBClN.js";import"./job-CSfapI8R.js";import"./detail-drawer-bwrDwggh.js";import"./DescriptionsItem-C7R9mygj.js";import"./log-drawer-DBbAafJ2.js";import"./CollapseItem-BMMOxk7k.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-BdCwZFpp.js";import"./cron-input.vue_vue_type_style_index_0_lang-DuGGiwSJ.js";import"./group-BxDj9-KV.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,bZ as w,r as n,i as k,o as _,c as v,h as g,$ as y}from"./index-Dw6v9XEN.js";import{u as S,_ as h}from"./workflow.vue_vue_type_style_index_0_lang-Dxag8GGn.js";import{h as $,e as x}from"./workflow-B78olBGP.js";import"./job-task-list-table.vue_vue_type_script_setup_true_lang-CFpBU8Xy.js";import"./table-h4IGR_Mx.js";import"./Grid-oISpgLl0.js";import"./job-CpyNzvSg.js";import"./detail-drawer-CxJYaLsx.js";import"./DescriptionsItem-Fk5NYKQV.js";import"./log-drawer-Dhs3Srds.js";import"./CollapseItem-EF7vJxT6.js";import"./code-mirror.vue_vue_type_script_setup_true_lang-DJC-w-iG.js";import"./cron-input.vue_vue_type_style_index_0_lang-B_rB3kPC.js";import"./group-CoHVo80F.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};

View File

@ -1 +1 @@
import{aR as e}from"./index-FUIa4-vU.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{aR as e}from"./index-Dw6v9XEN.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};

View File

@ -1,4 +1,4 @@
import{bF as Mt,d3 as St,a as le,b0 as vt,bp as pe,b5 as Nt,bq as Ie,bv as jt,d as Qe,b6 as Rt,r as _e,i as Ot,q as Me,ba as De,b9 as et,bc as Ct,al as Le,aR as oe,bl as tt,o as Ee,b as nt,e as st,cj as Tt,$ as L,f as v,B as Q,d4 as Bt,Y as $t,aJ as Pe,a3 as He,c as Ue,w as ee,h as W,a4 as At,d5 as It,g as We,ai as Dt,ak as Lt,d6 as ze,aa as Pt,F as Ht,d7 as Ge}from"./index-FUIa4-vU.js";import{u as Ut}from"./table-DGi3nvCm.js";import{j as Wt,k as zt}from"./job-CSfapI8R.js";import{b as Gt}from"./Grid-C3gcBClN.js";function Ft(e,t){const n=Mt(St,null);return le(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Kt(e){const{textColor2:t,fontSize:n,fontWeightStrong:l,textColor3:p}=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:p}}const Jt={name:"Code",common:vt,self:Kt},qt=pe([Nt("code",`
import{bF as Mt,d3 as St,a as le,b0 as vt,bp as pe,b5 as Nt,bq as Ie,bv as jt,d as Qe,b6 as Rt,r as _e,i as Ot,q as Me,ba as De,b9 as et,bc as Ct,al as Le,aR as oe,bl as tt,o as Ee,b as nt,e as st,cj as Tt,$ as L,f as v,B as Q,d4 as Bt,Y as $t,aJ as Pe,a3 as He,c as Ue,w as ee,h as W,a4 as At,d5 as It,g as We,ai as Dt,ak as Lt,d6 as ze,aa as Pt,F as Ht,d7 as Ge}from"./index-Dw6v9XEN.js";import{u as Ut}from"./table-h4IGR_Mx.js";import{j as Wt,k as zt}from"./job-CpyNzvSg.js";import{b as Gt}from"./Grid-oISpgLl0.js";function Ft(e,t){const n=Mt(St,null);return le(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Kt(e){const{textColor2:t,fontSize:n,fontWeightStrong:l,textColor3:p}=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:p}}const Jt={name:"Code",common:vt,self:Kt},qt=pe([Nt("code",`
font-size: var(--n-font-size);
font-family: var(--n-font-family);
`,[Ie("show-line-numbers",`

View File

@ -1 +1 @@
import{aR as e}from"./index-FUIa4-vU.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{aR as e}from"./index-Dw6v9XEN.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};

View File

@ -1,4 +1,4 @@
import{b5 as C,bv as k,d as b,b6 as R,b9 as g,b1 as B,a as i,bw as u,bc as T,al as d,Z as L,a0 as O,a4 as c,bx as p,o as w,c as $,h as K,$ as P,aa as S}from"./index-FUIa4-vU.js";const V=C("input-group-label",`
import{b5 as C,bv as k,d as b,b6 as R,b9 as g,b1 as B,a as i,bw as u,bc as T,al as d,Z as L,a0 as O,a4 as c,bx as p,o as w,c as $,h as K,$ as P,aa as S}from"./index-Dw6v9XEN.js";const V=C("input-group-label",`
position: relative;
user-select: none;
-webkit-user-select: none;

View File

@ -1,4 +1,4 @@
import{bE as Mn,d as Pe,b7 as Pt,b6 as nn,bF as In,a as De,bc as Bn,ba as Nt,cr as At,al as Q,am as Rn,dZ as zn,B as Ve,bd as jn,dT as $n,b5 as Mt,bv as lt,bp as It,b9 as on,d_ as Fn,r as Et,bP as Xn,d$ as Vn,e0 as Hn,G as rn,e1 as Yn,bg as Bt,bl as ye,o as L,b as ae,e as we,e2 as Ln,h as k,p as Un,dK as xt,q as Wn,n as qn,i as Gn,ap as an,ah as st,a0 as ln,c as Re,w as T,f as B,g as he,t as pe,$ as fe,a3 as Kn,a1 as Jn,bJ as Zn,Z as Rt,cs as Ae,x as Qn,H as sn,ai as zt,L as eo,z as to,I as no,F as oo}from"./index-FUIa4-vU.js";import{_ as io}from"./table-DGi3nvCm.js";import{c as ro}from"./Grid-C3gcBClN.js";const cn=Mn("n-popconfirm"),un={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},jt=zn(un),ao=Pe({name:"NPopconfirmPanel",props:un,setup(e){const{localeRef:n}=Pt("Popconfirm"),{inlineThemeDisabled:t}=nn(),{mergedClsPrefixRef:o,mergedThemeRef:i,props:r}=In(cn),a=De(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:u,iconColor:h}}=i.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":u,"--n-icon-color":h}}),l=t?Bn("popconfirm-panel",void 0,a,r):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(r,"positiveButtonProps"),negativeButtonProps:Nt(r,"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,i=At(o.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&Q(Ve,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&Q(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),Q("div",{class:[`${n}-popconfirm__panel`,this.themeClass],style:this.cssVars},Rn(o.default,r=>t||r?Q("div",{class:`${n}-popconfirm__body`},t?Q("div",{class:`${n}-popconfirm__icon`},At(o.icon,()=>[Q(jn,{clsPrefix:n},{default:()=>Q($n,null)})])):null,r):null),i?Q("div",{class:[`${n}-popconfirm__action`]},i):null)}}),lo=Mt("popconfirm",[lt("body",`
import{bE as Mn,d as Pe,b7 as Pt,b6 as nn,bF as In,a as De,bc as Bn,ba as Nt,cr as At,al as Q,am as Rn,dZ as zn,B as Ve,bd as jn,dT as $n,b5 as Mt,bv as lt,bp as It,b9 as on,d_ as Fn,r as Et,bP as Xn,d$ as Vn,e0 as Hn,G as rn,e1 as Yn,bg as Bt,bl as ye,o as L,b as ae,e as we,e2 as Ln,h as k,p as Un,dK as xt,q as Wn,n as qn,i as Gn,ap as an,ah as st,a0 as ln,c as Re,w as T,f as B,g as he,t as pe,$ as fe,a3 as Kn,a1 as Jn,bJ as Zn,Z as Rt,cs as Ae,x as Qn,H as sn,ai as zt,L as eo,z as to,I as no,F as oo}from"./index-Dw6v9XEN.js";import{_ as io}from"./table-h4IGR_Mx.js";import{c as ro}from"./Grid-oISpgLl0.js";const cn=Mn("n-popconfirm"),un={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},jt=zn(un),ao=Pe({name:"NPopconfirmPanel",props:un,setup(e){const{localeRef:n}=Pt("Popconfirm"),{inlineThemeDisabled:t}=nn(),{mergedClsPrefixRef:o,mergedThemeRef:i,props:r}=In(cn),a=De(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:u,iconColor:h}}=i.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":u,"--n-icon-color":h}}),l=t?Bn("popconfirm-panel",void 0,a,r):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(r,"positiveButtonProps"),negativeButtonProps:Nt(r,"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,i=At(o.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&Q(Ve,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&Q(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),Q("div",{class:[`${n}-popconfirm__panel`,this.themeClass],style:this.cssVars},Rn(o.default,r=>t||r?Q("div",{class:`${n}-popconfirm__body`},t?Q("div",{class:`${n}-popconfirm__icon`},At(o.icon,()=>[Q(jn,{clsPrefix:n},{default:()=>Q($n,null)})])):null,r):null),i?Q("div",{class:[`${n}-popconfirm__action`]},i):null)}}),lo=Mt("popconfirm",[lt("body",`
font-size: var(--n-font-size);
display: flex;
align-items: center;

View File

@ -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-FUIa4-vU.js";import{g as y}from"./group-BxDj9-KV.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-Dw6v9XEN.js";import{g as y}from"./group-CoHVo80F.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 _};

View File

@ -1 +1 @@
import{aR 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-FUIa4-vU.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{aR 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-Dw6v9XEN.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};

View File

@ -1 +1 @@
import{d as i,Z as s,a0 as r,r as m,o as p,c as v,dB as f}from"./index-FUIa4-vU.js";const b=i({name:"StatusSwitch",__name:"status-switch",props:s({disabled:Boolean},{value:{default:0},valueModifiers:{}}),emits:s(["fetch"],["update:value"]),setup(a,{emit:t}){const n=a,o=r(a,"value"),u=t,e=m(!1),c=l=>{e.value=!0,u("fetch",l,()=>{e.value=!1})};return(l,_)=>{const d=f;return p(),v(d,{value:o.value,loading:e.value,"rubber-band":!1,"checked-value":1,"unchecked-value":0,disabled:n.disabled,"onUpdate:value":c},null,8,["value","loading","disabled"])}}});export{b as _};
import{d as i,Z as s,a0 as r,r as m,o as p,c as v,dB as f}from"./index-Dw6v9XEN.js";const b=i({name:"StatusSwitch",__name:"status-switch",props:s({disabled:Boolean},{value:{default:0},valueModifiers:{}}),emits:s(["fetch"],["update:value"]),setup(a,{emit:t}){const n=a,o=r(a,"value"),u=t,e=m(!1),c=l=>{e.value=!0,u("fetch",l,()=>{e.value=!1})};return(l,_)=>{const d=f;return p(),v(d,{value:o.value,loading:e.value,"rubber-band":!1,"checked-value":1,"unchecked-value":0,disabled:n.disabled,"onUpdate:value":c},null,8,["value","loading","disabled"])}}});export{b as _};

View File

@ -1 +1 @@
import{d as V,j as A,k as N}from"./Grid-C3gcBClN.js";import{d as q,r as S,al as F,d$ as M,E as H,e3 as U,e4 as W,e5 as Y,ag as B,p as L,e6 as O,a as j,aq as X,L as J,$ as z,q as Q,as as Z}from"./index-FUIa4-vU.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 F(V,M(this.$.vnode.props||{},N),{default:()=>{const a=M(this.$props,W);return F(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||{},$=x<=0?10:x;return{data:u.map((G,R)=>({...G,index:(t-1)*$+R+1})),pageNum:t,pageSize:$,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-oISpgLl0.js";import{d as q,r as S,al as F,d$ as M,E as H,e3 as U,e4 as W,e5 as Y,ag as B,p as L,e6 as O,a as j,aq as X,L as J,$ as z,q as Q,as as Z}from"./index-Dw6v9XEN.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 F(V,M(this.$.vnode.props||{},N),{default:()=>{const a=M(this.$props,W);return F(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||{},$=x<=0?10:x;return{data:u.map((G,R)=>({...G,index:(t-1)*$+R+1})),pageNum:t,pageSize:$,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};

View File

@ -1,4 +1,4 @@
import{b5 as C,bq as i,d as $,b6 as B,b9 as h,br as z,a as c,bw as T,bc as _,bY as R,al as l}from"./index-FUIa4-vU.js";const S=C("text",`
import{b5 as C,bq as i,d as $,b6 as B,b9 as h,br as z,a as c,bw as T,bc as _,bY as R,al as l}from"./index-Dw6v9XEN.js";const S=C("text",`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`,[i("strong",`

View File

@ -1 +1 @@
import{aR as o,d2 as r}from"./index-FUIa4-vU.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{aR as o,d2 as r}from"./index-Dw6v9XEN.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};

View File

@ -1,13 +1,13 @@
<!doctype html>
<html lang="zh-cmn-Hans">
<head>
<meta name="buildTime" content="2024-09-08 08:51:28">
<meta name="buildTime" content="2024-09-09 21:07:30">
<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-FUIa4-vU.js"></script>
<script type="module" crossorigin src="/snail-job/assets/index-Dw6v9XEN.js"></script>
<link rel="stylesheet" crossorigin href="/snail-job/assets/index-lvR31pPh.css">
</head>
<body>