gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-41e3265e.c183c077.js
byteblogs168 67895f3d7f fix: 2.6.0
1. 优化工作流一个任务节点多个批次显示问题
2024-01-29 22:04:56 +08:00

1 line
10 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41e3265e","chunk-251479d0"],{"0564":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[e.showSearch?t("a-form",{attrs:{layout:"inline"}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"组名称"}},[t("a-select",{attrs:{placeholder:"请输入组名称",allowClear:""},on:{change:function(t){return e.handleChange(t)}},model:{value:e.queryParam.groupName,callback:function(t){e.$set(e.queryParam,"groupName",t)},expression:"queryParam.groupName"}},e._l(e.groupNameList,(function(a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(e._s(a))])})),1)],1)],1),t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"场景名称"}},[t("a-select",{attrs:{placeholder:"请选择场景名称",allowClear:""},model:{value:e.queryParam.sceneName,callback:function(t){e.$set(e.queryParam,"sceneName",t)},expression:"queryParam.sceneName"}},e._l(e.sceneList,(function(a){return t("a-select-option",{key:a.sceneName,attrs:{value:a.sceneName}},[e._v(" "+e._s(a.sceneName))])})),1)],1)],1),e.advanced?[t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"业务编号"}},[t("a-input",{attrs:{placeholder:"请输入业务编号",allowClear:""},model:{value:e.queryParam.bizNo,callback:function(t){e.$set(e.queryParam,"bizNo",t)},expression:"queryParam.bizNo"}})],1)],1),t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"幂等id"}},[t("a-input",{attrs:{placeholder:"请输入幂等id",allowClear:""},model:{value:e.queryParam.idempotentId,callback:function(t){e.$set(e.queryParam,"idempotentId",t)},expression:"queryParam.idempotentId"}})],1)],1),t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"UniqueId"}},[t("a-input",{attrs:{placeholder:"请输入唯一id",allowClear:""},model:{value:e.queryParam.uniqueId,callback:function(t){e.$set(e.queryParam,"uniqueId",t)},expression:"queryParam.uniqueId"}})],1)],1)]:e._e(),t("a-col",{attrs:{md:e.advanced?24:8,sm:24}},[t("span",{staticClass:"table-page-search-submitButtons",style:e.advanced&&{float:"right",overflow:"hidden"}||{}},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.$refs.table.refresh(!0)}}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetFiled}},[e._v("重置")]),t("a",{staticStyle:{"margin-left":"8px"},on:{click:e.toggleAdvanced}},[e._v(" "+e._s(e.advanced?"收起":"展开")+" "),t("a-icon",{attrs:{type:e.advanced?"up":"down"}})],1)],1)])],2)],1):e._e()],1),t("s-table",{ref:"table",attrs:{size:"default",rowKey:"key",columns:e.columns,data:e.loadData,alert:e.options.alert,rowSelection:e.options.rowSelection,scroll:{x:2e3}},scopedSlots:e._u([{key:"uniqueId",fn:function(a,r){return t("span",{},[t("a",{attrs:{href:"#"},on:{click:function(t){return e.handlerOpenDrawer(r)}}},[e._v(" "+e._s(a))])])}},{key:"taskType",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:e.taskType[a].color}},[e._v(" "+e._s(e.taskType[a].name)+" ")])],1)}},{key:"retryStatus",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:e.retryStatus[a].color}},[e._v(" "+e._s(e.retryStatus[a].name)+" ")])],1)}},{key:"action",fn:function(a,r){return t("span",{},[[t("a",{on:{click:function(t){return e.handleInfo(r)}}},[e._v("详情")])]],2)}}])}),t("Drawer",{attrs:{title:"重试日志详情",placement:"right",width:800,visibleAmplify:!0,visible:e.openDrawer},on:{closeDrawer:e.onClose,handlerAmplify:e.handleInfo}},[t("retry-log-info",{ref:"retryLogInfoRef",attrs:{showHeader:!1,column:1}})],1)],1)},n=[],s=a("261e"),o=a("27e3"),i=a("0fea"),l=a("2af9"),c=a("c1df"),u=a.n(c),d=a("5fe2"),f={name:"RetryTaskLog",components:{RetryLogInfo:d["default"],Drawer:l["c"],AInput:o["a"],ATextarea:s["a"],STable:l["i"]},props:{showSearch:{type:Boolean,default:!0}},data:function(){var e=this;return{record:"",mdl:{},advanced:!1,queryParam:{},retryStatus:{0:{name:"处理中",color:"#9c1f1f"},1:{name:"处理成功",color:"#f5a22d"},2:{name:"最大次数",color:"#68a5d0"},3:{name:"暂停",color:"#f52d8e"}},taskType:{1:{name:"重试数据",color:"#d06892"},2:{name:"回调数据",color:"#f5522d"}},columns:[{title:"UniqueId",dataIndex:"uniqueId",width:"10%",scopedSlots:{customRender:"uniqueId"}},{title:"组名称",dataIndex:"groupName",ellipsis:!0,width:"10%"},{title:"场景名称",dataIndex:"sceneName",ellipsis:!0,width:"10%"},{title:"重试状态",dataIndex:"retryStatus",scopedSlots:{customRender:"retryStatus"},width:"5%"},{title:"任务类型",dataIndex:"taskType",scopedSlots:{customRender:"taskType"},width:"5%"},{title:"幂等id",dataIndex:"idempotentId",width:"15%"},{title:"业务编号",dataIndex:"bizNo",ellipsis:!0,width:"15%"},{title:"创建时间",dataIndex:"createDt",sorter:!0,customRender:function(e){return u()(e).format("YYYY-MM-DD HH:mm:ss")},ellipsis:!0},{title:"操作",dataIndex:"action",fixed:"right",width:"150px",scopedSlots:{customRender:"action"}}],loadData:function(t){return""!==e.groupName&&""!==e.uniqueId&&(t["groupName"]=e.groupName,t["uniqueId"]=e.uniqueId),Object(i["x"])(Object.assign(t,e.queryParam)).then((function(e){return e}))},selectedRowKeys:[],selectedRows:[],options:{alert:{show:!0,clear:function(){e.selectedRowKeys=[]}},rowSelection:{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}},optionAlertShow:!1,groupNameList:[],sceneList:[],groupName:"",uniqueId:"",sceneName:"",currentShowRecord:null,openDrawer:!1}},created:function(){var e=this;Object(i["j"])().then((function(t){e.groupNameList=t.data}))},methods:{resetFiled:function(){this.queryParam={},this.sceneList=[]},handleNew:function(){this.$router.push("/form/basic-config")},refreshTable:function(e){this.groupName=e.groupName,this.uniqueId=e.uniqueId,this.$refs.table.refresh(!0)},handleChange:function(e){var t=this;e?Object(i["z"])({groupName:e}).then((function(e){t.sceneList=e.data})):this.sceneList=[]},toggleAdvanced:function(){this.advanced=!this.advanced},handleInfo:function(e){e=e||this.currentShowRecord,this.$router.push({path:"/retry/log/info",query:{id:e.id}})},handlerOpenDrawer:function(e){var t=this;this.currentShowRecord=e,this.openDrawer=!0,setTimeout((function(){t.$refs.retryLogInfoRef.getRetryTaskLogById(e.id)}),1e3)},onClose:function(){this.openDrawer=!1,this.currentShowRecord=null}}},m=f,p=a("2877"),y=Object(p["a"])(m,r,n,!1,null,null,null);t["default"]=y.exports},"339f":function(e,t,a){"use strict";var r=function(){var e=this,t=this,a=t._self._c;return a("div",[a("div",{staticStyle:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[a("span",{staticStyle:{"padding-left":"18px"}},[t._v("调用日志详情 (总调度次数: "+t._s(t.total)+")")]),a("span",{staticStyle:{"padding-left":"18px"}},[a("a-icon",{attrs:{type:"sync"},on:{click:function(){return e.$refs.table.refresh(!0)}}})],1)]),a("a-card",[a("s-table",{ref:"table",attrs:{size:"default",rowKey:"key",columns:t.columns,data:t.loadData},scopedSlots:t._u([{key:"serial",fn:function(e,r){return a("span",{},[t._v(" "+t._s(r.id)+" ")])}},{key:"clientInfo",fn:function(e){return a("span",{},[t._v(" "+t._s(e?e.split("@")[1]:"无")+" ")])}}])})],1)],1)},n=[],s=a("c1df"),o=a.n(s),i=a("0fea"),l=a("2af9"),c={name:"RetryTaskLogMessageList",components:{STable:l["i"]},data:function(){var e=this;return{columns:[{title:"#",scopedSlots:{customRender:"serial"},width:"10%"},{title:"信息",dataIndex:"message",width:"50%"},{title:"地址",dataIndex:"clientInfo",scopedSlots:{customRender:"clientInfo"},width:"10%"},{title:"触发时间",dataIndex:"createDt",sorter:!0,customRender:function(e){return o()(e).format("YYYY-MM-DD HH:mm:ss")},width:"10%"}],queryParam:{},loadData:function(t){if(e.queryParam["groupName"])return Object(i["w"])(Object.assign(t,e.queryParam)).then((function(t){return e.total=t.total,t}))},total:0}},methods:{refreshTable:function(e){this.queryParam=e,this.$refs.table.refresh(!0)}}},u=c,d=a("2877"),f=Object(d["a"])(u,r,n,!1,null,"7ee48017",null);t["a"]=f.exports},"5fe2":function(e,t,a){"use strict";a.r(t);a("ac1f"),a("5319"),a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",[e.showHeader?t("page-header-wrapper",{staticStyle:{margin:"-24px -1px 0"},on:{back:function(){return e.$router.replace("/retry/log/list")}}},[t("div")]):e._e(),t("a-card",{attrs:{bordered:!1}},[null!==e.retryInfo?t("a-descriptions",{attrs:{title:"",column:e.column,bordered:""}},[t("a-descriptions-item",{attrs:{label:"组名称"}},[e._v(" "+e._s(e.retryInfo.groupName)+" ")]),t("a-descriptions-item",{attrs:{label:"场景名称"}},[e._v(" "+e._s(e.retryInfo.sceneName)+" ")]),t("a-descriptions-item",{attrs:{label:"唯一id"}},[e._v(" "+e._s(e.retryInfo.uniqueId)+" ")]),t("a-descriptions-item",{attrs:{label:"幂等id",span:2}},[e._v(" "+e._s(e.retryInfo.idempotentId)+" ")]),t("a-descriptions-item",{attrs:{label:"业务编号"}},[e._v(" "+e._s(e.retryInfo.bizNo)+" ")]),t("a-descriptions-item",{attrs:{label:"当前重试状态 | 数据类型"}},[t("a-tag",{attrs:{color:"red"}},[e._v(" "+e._s(e.retryStatus[e.retryInfo.retryStatus])+" ")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-tag",{attrs:{color:e.taskType[e.retryInfo.taskType].color}},[e._v(" "+e._s(e.taskType[e.retryInfo.taskType].name)+" ")])],1),t("a-descriptions-item",{attrs:{label:"创建时间"}},[e._v(" "+e._s(e.retryInfo.createDt)+" ")]),t("a-descriptions-item",{attrs:{label:"执行器名称",span:3}},[e._v(" "+e._s(e.retryInfo.executorName)+" ")]),t("a-descriptions-item",{attrs:{label:"参数",span:3}},[e._v(" "+e._s(e.retryInfo.argsStr)+" ")]),t("a-descriptions-item",{attrs:{label:"扩展参数",span:3}},[e._v(" "+e._s(e.retryInfo.extAttrs)+" ")])],1):e._e()],1),t("RetryTaskLogMessageList",{ref:"retryTaskLogMessageListRef"})],1)},n=[],s=(a("a9e3"),a("0fea")),o=a("2af9"),i=a("339f"),l={name:"RetryLogInfo",components:{RetryTaskLogMessageList:i["a"],STable:o["i"]},props:{showHeader:{type:Boolean,default:!0},column:{type:Number,default:3}},data:function(){return{retryInfo:null,retryStatus:{0:"处理中",1:"处理成功",2:"最大次数"},taskType:{1:{name:"重试数据",color:"#d06892"},2:{name:"回调数据",color:"#f5a22d"}}}},created:function(){var e=this.$route.query.id;e&&this.getRetryTaskLogById(e)},methods:{getRetryTaskLogById:function(e){var t=this;Object(s["v"])(e).then((function(e){t.retryInfo=e.data,t.queryParam={groupName:t.retryInfo.groupName,uniqueId:t.retryInfo.uniqueId},t.$refs.retryTaskLogMessageListRef.refreshTable(t.queryParam)}))}}},c=l,u=a("2877"),d=Object(u["a"])(c,r,n,!1,null,"3750b48e",null);t["default"]=d.exports}}]);