gtsoft-snail-job-server/snail-job-server/snail-job-server-ui/src/main/resources/admin/assets/index-DI_sKYcc.js

2 lines
20 KiB
JavaScript
Raw Normal View History

import{a as Se,N as O,c as we,b as De}from"./search-form.vue_vue_type_script_setup_true_lang-D7hHwQXT.js";import{aP as B,bj as Ie,o as M,b as me,e as ie,d as j,Z as H,a0 as J,r as W,z as ce,A as fe,a as xe,$ as a,p as ge,q as ye,c as K,w as o,f as e,g as y,t as _,h as t,a4 as le,bm as re,ab as oe,E as _e,D as ne,B as C,a8 as ze,a9 as Re,aa as se,I as be,H as ve,bx as Ue,ac as te,bn as he,bk as ke,Y as ae,aw as $e,av as Ve,l as Ce,ag as pe,L as Be,i as Ae,ah as q,a3 as G,aj as Z,F as qe,ak as Me}from"./index--PhRNylI.js";import{g as Pe}from"./group-Rd_jp_gh.js";import{_ as Fe,u as Le,a as Oe}from"./table-DvozQPKE.js";import{_ as We,a as He}from"./code-mirror.vue_vue_type_script_setup_true_lang-BxhWNz7f.js";import{_ as ue}from"./select-group.vue_vue_type_script_setup_true_lang-CNpCk88a.js";import{_ as Ne}from"./select-scene.vue_vue_type_script_setup_true_lang-D5b2c2NA.js";import{_ as je,f as Ee}from"./log-drawer-DaEZFcwz.js";import{_ as Ge,a as Ze}from"./DescriptionsItem-BzmwSMF7.js";import{b as Je}from"./Grid-C8sbif0M.js";import"./CollapseItem-BccPzD5x.js";function Ke(i){return B({url:"/retry-task/list",method:"get",params:i})}function Ye(i,h){return B({url:`/retry-task/${i}?groupName=${h}`,method:"get"})}function Qe(i){return B({url:"/retry-task",method:"post",data:i})}function Xe(i){return B({url:"/retry-task/batch",method:"post",data:i})}function et(i){return B({url:"/retry-task/status",method:"put",data:i})}function tt(i){return B({url:"/retry-task/manual/trigger/retry/task",method:"post",data:i})}function at(i){return B({url:"/retry-task/manual/trigger/callback/task",method:"post",data:i})}function de(i){return B({url:"/retry-task/batch",method:"delete",data:i})}function lt(i){return B({url:"/retry-task/generate/idempotent-id",method:"post",data:i})}const rt={class:"inline-block",viewBox:"0 0 36 36",width:"1em",height:"1em"};function ot(i,h){return M(),me("svg",rt,h[0]||(h[0]=[ie("path",{fill:"currentColor",d:"M15 32H3a1 1 0 0 0 0 2h12a1 1 0 0 0 0-2M5 30h8a1 1 0 0 0 1-1V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v25a1 1 0 0 0 1 1M9 5.92a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 9 5.92M6 12.2h5.84v1.6H6Zm0 3h5.84v1.6H6Zm0 3h6v1.6H6ZM16 8h2v1.6h-2zm4 0h2v1.6h-2zm13-3.8h-8a.8.8 0 0 0-.8.8v6a.8.8 0 0 0 .8.8h8a.8.8 0 0 0 .8-.8V5a.8.8 0 0 0-.8-.8m-.8 6h-6.4V5.8h6.4ZM16 20h2v1.6h-2zm4 0h2v1.6h-2zm13-3.8h-8a.8.8 0 0 0-.8.8v6a.8.8 0 0 0 .8.8h8a.8.8 0 0 0 .8-.8v-6a.8.8 0 0 0-.8-.8m-.8 6h-6.4v-4.4h6.4Z"},null,-1),ie("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)]))}const nt=Ie({name:"clarity-thin-client-solid",render:ot}),st=j({name:"RetryTaskOperateDrawer",__name:"retry-task-operate-drawer",props:H({operateType:{},rowData:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:H(["submitted"],["update:visible"]),setup(i,{emit:h}){const f=i,m=h,k=J(i,"visible"),N=W([]),{formRef:z,validate:g,restoreValidation:c}=ce(),{defaultRequiredRule:b}=fe(),$=xe(()=>({add:a("page.retryTask.addRetryTask"),edit:a("page.retryTask.editRetryTask")})[f.operateType]),u=ge(s());function s(){return{groupName:"",sceneName:"",idempotentId:"",bizNo:"",executorName:"",argsStr:"",retryStatus:0}}const D={groupName:b,sceneName:b,idempotentId:b,bizNo:b,executorName:b,retryStatus:b};function p(){if(N.value=[],f.operateType==="add"){Object.assign(u,s());return}f.operateType==="edit"&&f.rowData&&(Object.assign(u,f.rowData),N.value=JSON.parse(f.rowData.argsStr||"[]"))}function T(){k.value=!1}async function S(){var R;if(await g(),f.operateType==="add"){const{groupName:d,sceneName:v,idempotentId:n,bizNo:I,executorName:V,retryStatus:P}=u,{error:F}=await Qe({groupName:d,sceneName:v,idempotentId:n,bizNo:I,executorName:V,argsStr:JSON.stringify(N.value),retryStatus:P});if(F)return;(R=window.$message)==null||R.success(a("common.addSuccess"))}T(),m("submitted")}ye(k,()=>{k.value&&(p(),c())});async function U(){const R=u.groupName,d=u.sceneName,v=u.executorName,n=u.argsStr,{data:I,error:V}=await lt({groupName:R,sceneName:d,executorName:v,argsStr:n});V||(u.idempotentId=I)}return(R,d)=>{const v=_e,n=ne,I=nt,V=C,P=ze,F=Re,Y=He,Q=se,X=be,L=ve;return M(),K(oe,{modelValue:k.value,"