(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8ab79138"],{"1da1":function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));o("d3b7");function n(t,e,o,n,r,a,i){try{var c=t[a](i),s=c.value}catch(u){return void o(u)}c.done?e(s):Promise.resolve(s).then(n,r)}function r(t){return function(){var e=this,o=arguments;return new Promise((function(r,a){var i=t.apply(e,o);function c(t){n(i,r,a,c,s,"next",t)}function s(t){n(i,r,a,c,s,"throw",t)}c(void 0)}))}}},"36e8":function(t,e,o){"use strict";o.r(e);o("b0c0");var n=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{layout:"inline"}},[e("a-row",{attrs:{gutter:48}})],1)],1),e("div",{staticClass:"table-operator"},[t.selectedRowKeys.length>0?e("a-dropdown",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}]},[e("a-button",{staticStyle:{"margin-left":"8px"}},[t._v(" 批量操作 "),e("a-icon",{attrs:{type:"down"}})],1)],1):t._e()],1),e("a-table",{attrs:{columns:t.columns,dataSource:t.data,pagination:t.pagination,loading:t.memberLoading,scroll:{x:1200},rowKey:"id"},on:{expand:t.getRows},scopedSlots:t._u([{key:"log",fn:function(o,n){return e("span",{},[e("a",{on:{click:function(e){return t.getLogRows(n)}}},[t._v("点击查看")])])}},{key:"serial",fn:function(o,n){return e("span",{},[t._v(" "+t._s(n.id)+" ")])}},{key:"taskStatus",fn:function(o){return e("span",{},[e("a-tag",{attrs:{color:t.taskStatus[o].color}},[t._v(" "+t._s(t.taskStatus[o].name)+" ")])],1)}},{key:"clientInfo",fn:function(o){return e("span",{},[t._v(" "+t._s(""!==o?o.split("@")[1]:"")+" ")])}}])}),t.logOpen&&t.record?e("job-batch-log",{attrs:{open:t.logOpen,record:t.record},on:{"update:open":function(e){t.logOpen=e}}}):t._e()],1)},r=[],a=o("5530"),i=o("c7eb"),c=o("1da1"),s=(o("4de4"),o("d3b7"),o("261e")),u=o("27e3"),l=o("2af9"),d=o("3b7a"),f=o("38b7"),h=o.n(f),p=o("c1df"),m=o.n(p),b=function(){var t=this,e=t._self._c;return e("a-modal",{attrs:{visible:t.visible,width:"100%","wrap-class-name":"full-modal",footer:null,title:"日志详情"},on:{cancel:t.onCancel}},[e("div",{staticClass:"log"},[e("table",{staticClass:"scroller"},[e("tbody",t._l(t.logList,(function(o,n){return e("tr",{key:n},[e("td",{staticClass:"index"},[t._v(" "+t._s(n+1)+" ")]),e("td",[e("div",{staticClass:"content"},[e("div",{staticClass:"line"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"text",staticStyle:{color:"#2db7f5"}},[t._v(t._s(t.timestampToDate(o.time_stamp)))]),e("div",{staticClass:"text",style:{color:t.LevelEnum[o.level].color}},[t._v(" "+t._s(4===o.level.length?o.level+" ":o.level)+" ")]),e("div",{staticClass:"text",staticStyle:{color:"#00a3a3"}},[t._v("["+t._s(o.thread)+"]")]),e("div",{staticClass:"text",staticStyle:{color:"#a771bf","font-weight":"500"}},[t._v(t._s(o.location))]),e("div",{staticClass:"text"},[t._v(":")])]),e("div",{staticClass:"text",staticStyle:{"font-size":"16px"}},[t._v(t._s(o.message))]),e("div",{staticClass:"text",staticStyle:{"font-size":"16px"}},[t._v(t._s(o.throwable))])])])])])})),0)])])])},g=[],v=o("6b75");function y(t){if(Array.isArray(t))return Object(v["a"])(t)}o("a4d3"),o("e01a"),o("d28b"),o("3ca3"),o("ddb0"),o("a630");function w(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var j=o("06c5");function L(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(t){return y(t)||w(t)||Object(j["a"])(t)||L()}o("4e82"),o("25eb"),o("a9e3"),o("25f0"),o("99af");var x=o("b775"),O={name:"JobBatchLog",components:{},props:{open:{type:Boolean,default:!1},record:{type:Object,default:function(){}},value:{type:Array,default:function(){return[]}}},watch:{value:{deep:!0,immediate:!0,handler:function(t){this.logList=t}},open:{deep:!0,immediate:!0,handler:function(t){this.visible=t}}},data:function(){var t=this.$createElement;return{visible:!1,finished:!1,logList:[],interval:null,startId:0,fromIndex:0,controller:new AbortController,indicator:t("a-icon",{attrs:{type:"loading",spin:!0},style:"font-size: 24px; color: '#d9d9d9'"}),LevelEnum:{DEBUG:{name:"DEBUG",color:"#2647cc"},INFO:{name:"INFO",color:"#5c962c"},WARN:{name:"WARN",color:"#da9816"},ERROR:{name:"ERROR",color:"#dc3f41"}}}},mounted:function(){this.getLogList()},beforeDestroy:function(){this.stopLog()},methods:{onCancel:function(){this.stopLog(),this.$emit("update:open",!1)},stopLog:function(){this.finished=!0,this.controller.abort(),clearTimeout(this.interval),this.interval=void 0},getLogList:function(){var t=this;Object(x["b"])({url:"/job/log/list",method:"get",params:{taskBatchId:this.record.taskBatchId,jobId:this.record.jobId,taskId:this.record.id,startId:this.startId,fromIndex:this.fromIndex,size:50},signal:this.controller.signal}).then((function(e){var o;(t.finished=e.data.finished,t.startId=e.data.nextStartId,t.fromIndex=e.data.fromIndex,e.data.message)&&((o=t.logList).push.apply(o,k(e.data.message)),t.logList.sort((function(t,e){return t.time_stamp-e.time_stamp})));t.finished||(clearTimeout(t.interval),t.interval=setTimeout(t.getLogList,1e3))})).catch((function(){t.finished=!0}))},timestampToDate:function(t){var e=new Date(Number.parseInt(t.toString())),o=e.getFullYear(),n=1===(e.getMonth()+1).toString().length?"0"+(e.getMonth()+1):(e.getMonth()+1).toString(),r=e.getDate(),a=e.getHours(),i=1===e.getMinutes().toString().length?"0"+e.getMinutes():e.getMinutes().toString(),c=1===e.getSeconds().toString().length?"0"+e.getSeconds():e.getSeconds().toString();return"".concat(o,"-").concat(n,"-").concat(r," ").concat(a,":").concat(i,":").concat(c,".").concat(e.getMilliseconds())}}},S=O,_=(o("6892"),o("2877")),I=Object(_["a"])(S,b,g,!1,null,"681db452",null),C=I.exports,E={name:"JobTaskList",components:{JobBatchLog:C,AInput:u["a"],ATextarea:s["a"],STable:l["i"]},data:function(){var t=this;return{currentComponet:"List",visible:!1,advanced:!1,logOpen:!1,record:{},queryParam:{startId:0,fromIndex:0},data:[],logData:[],taskStatus:h.a.taskStatus,columns:[{title:"日志",scopedSlots:{customRender:"log"},width:"5%"},{title:"ID",scopedSlots:{customRender:"serial"},width:"8%"},{title:"组名称",dataIndex:"groupName"},{title:"地址",dataIndex:"clientInfo",scopedSlots:{customRender:"clientInfo"}},{title:"参数",dataIndex:"argsStr",ellipsis:!0},{title:"结果",dataIndex:"resultMessage",ellipsis:!0},{title:"状态",dataIndex:"taskStatus",scopedSlots:{customRender:"taskStatus"}},{title:"重试次数",dataIndex:"retryCount"},{title:"开始执行时间",dataIndex:"createDt",sorter:!0,width:"10%"}],logColumns:[{title:"#",scopedSlots:{customRender:"serial"},width:"5%"},{title:"信息",dataIndex:"message",width:"50%"},{title:"执行时间",dataIndex:"createDt",sorter:!0,customRender:function(t){return m()(t).format("YYYY-MM-DD HH:mm:ss")},width:"10%"}],selectedRowKeys:[],selectedRows:[],options:{alert:{show:!0,clear:function(){t.selectedRowKeys=[]}},rowSelection:{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}},optionAlertShow:!1,groupNameList:[],sceneList:[],memberLoading:!1,pagination:{},logPagination:{}}},created:function(){},methods:{loadData:function(t){var e=this.logData.filter((function(e){return e.taskId===t.id}));return e},handleChange:function(t){},toggleAdvanced:function(){this.advanced=!this.advanced},getRows:function(t,e){var o=this;return Object(c["a"])(Object(i["a"])().mark((function n(){return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t){n.next=4;break}return n.next=3,o.fetchLog({taskBatchId:e.taskBatchId,jobId:e.jobId,taskId:e.id,startId:0,fromIndex:0},e);case 3:o.$forceUpdate();case 4:case"end":return n.stop()}}),n)})))()},handleOk:function(t){},queryChange:function(){this.fetch()},fetch:function(){var t=this;this.loading=!0,Object(d["l"])(this.queryParam).then((function(e){t.data=e.data;var o=Object(a["a"])({},t.pagination);o.pageSize=e.size,o.current=e.page,o.total=e.total,t.pagination=o,t.loading=!1}))},refreshTable:function(t){this.queryParam=t,this.queryChange()},fetchLog:function(t,e){return Object(c["a"])(Object(i["a"])().mark((function o(){var n;return Object(i["a"])().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,Object(d["i"])(t);case 2:n=o.sent,e.logData=n.data;case 4:case"end":return o.stop()}}),o)})))()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e},getLogRows:function(t){this.record=t,this.logOpen=!0}}},N=E,R=Object(_["a"])(N,n,r,!1,null,null,null);e["default"]=R.exports},"38b7":function(t,e){var o={jobStatusEnum:{0:{name:"关闭",color:"#9c1f1f"},1:{name:"开启",color:"#f5a22d"}},taskType:{1:{name:"集群模式",color:"#d06892"},2:{name:"广播模式",color:"#f5a22d"},3:{name:"分片模式",color:"#e1f52d"}},triggerType:{1:{name:"CRON表达式",color:"#d06892"},2:{name:"固定时间",color:"#f5a22d"},3:{name:"工作流",color:"#76f52d"}},blockStrategy:{1:{name:"丢弃策略",color:"#d06892"},2:{name:"覆盖",color:"#f5a22d"},3:{name:"并行",color:"#e1f52d"}},executorType:{1:{name:"Java",color:"#d06892"}},routeKey:{4:{name:"轮询",color:"#8f68d2"},1:{name:"一致性Hash",color:"#d06892"},2:{name:"随机",color:"#f5a22d"},3:{name:"LRU",color:"#e1f52d"}},taskBatchStatus:{1:{name:"待处理",color:"#64a6ea"},2:{name:"运行中",color:"#1b7ee5"},3:{name:"成功",color:"#087da1"},4:{name:"失败",color:"#f52d80"},5:{name:"停止",color:"#ac2df5"},6:{name:"取消",color:"#f5732d"}},operationReason:{0:{name:""},1:{name:"执行超时",color:"#64a6ea"},2:{name:"无客户端节点",color:"#1b7ee5"},3:{name:"任务已关闭",color:"#087da1"},4:{name:"任务丢弃",color:"#3a2f81"},5:{name:"任务被覆盖",color:"#c2238a"},6:{name:"无可执行任务项",color:"#23c28a"},7:{name:"任务执行期间发生非预期异常",color:"#bdc223"},8:{name:"手动停止",color:"#23c28a"}},taskStatus:{2:{name:"运行中",color:"#1b7ee5"},3:{name:"成功",color:"#087da1"},4:{name:"失败",color:"#f52d80"},5:{name:"停止",color:"#ac2df5"}},notifyScene:{1:{name:"任务执行失败",color:"#d06892"}},notifyType:{1:{name:"钉钉通知",color:"#64a6ea"},2:{name:"邮箱通知",color:"#1b7ee5"},3:{name:"企业微信",color:"#0082EF"},4:{name:"飞书",color:"#087da1"}},notifyStatus:{0:{name:"停用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},rateLimiterStatus:{0:{name:"未启用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},workflowStatus:{0:{name:"关闭",color:"#9c1f1f"},1:{name:"开启",color:"#f5a22d"}}};t.exports=o},"3b7a":function(t,e,o){"use strict";o.d(e,"z",(function(){return a})),o.d(e,"p",(function(){return i})),o.d(e,"s",(function(){return c})),o.d(e,"b",(function(){return s})),o.d(e,"w",(function(){return u})),o.d(e,"x",(function(){return l})),o.d(e,"y",(function(){return d})),o.d(e,"r",(function(){return f})),o.d(e,"o",(function(){return h})),o.d(e,"j",(function(){return p})),o.d(e,"q",(function(){return m})),o.d(e,"a",(function(){return b})),o.d(e,"v",(function(){return g})),o.d(e,"i",(function(){return v})),o.d(e,"l",(function(){return y})),o.d(e,"h",(function(){return w})),o.d(e,"g",(function(){return j})),o.d(e,"f",(function(){return L})),o.d(e,"d",(function(){return k})),o.d(e,"c",(function(){return x})),o.d(e,"m",(function(){return O})),o.d(e,"t",(function(){return S})),o.d(e,"k",(function(){return _})),o.d(e,"e",(function(){return I})),o.d(e,"n",(function(){return C})),o.d(e,"u",(function(){return E}));var n=o("b775"),r={jobPageList:"/job/page/list",jobList:"/job/list",jobDetail:"/job/",saveJob:"/job/",updateJob:"/job/",updateJobStatus:"/job/status",delJob:"/job/",timeByCron:"/job/cron",jobNameList:"/job/job-name/list",triggerJob:"/job/trigger/",jobBatchList:"/job/batch/list",jobBatchDetail:"/job/batch/",stop:"/job/batch/stop/",jobNotifyConfigPageList:"/job/notify/config/page/list",jobNotifyConfigDetail:"/job/notify/config/",saveJobNotify:"/job/notify/config/",updateJobNotify:"/job/notify/config/",jobTaskList:"/job/task/list",jobLogList:"/job/log/list",workflowListPage:"/workflow/page/list",saveWorkflow:"/workflow",updateWorkflow:"/workflow",workflowDetail:"/workflow",workflowBatchListPage:"/workflow/batch/page/list",workflowBatchDetail:"/workflow/batch/",updateStatus:"/workflow/update/status/",delWorkflow:"/workflow/",triggerWorkflow:"/workflow/trigger/",stopWorkflowBatch:"/workflow/batch/stop/",workflowNameList:"/workflow/workflow-name/list"};function a(t){return Object(n["b"])({url:r.workflowNameList,method:"get",params:t})}function i(t){return Object(n["b"])({url:r.stopWorkflowBatch+t,method:"post"})}function c(t){return Object(n["b"])({url:r.triggerWorkflow+t,method:"post"})}function s(t){return Object(n["b"])({url:r.delWorkflow+t,method:"delete"})}function u(t){return Object(n["b"])({url:r.updateStatus+t,method:"put"})}function l(t){return Object(n["b"])({url:r.workflowBatchListPage,method:"get",params:t})}function d(t){return Object(n["b"])({url:r.workflowListPage,method:"get",params:t})}function f(t){return Object(n["b"])({url:r.triggerJob+t,method:"post"})}function h(t){return Object(n["b"])({url:r.stop+t,method:"post"})}function p(t){return Object(n["b"])({url:r.jobNameList,method:"get",params:t})}function m(t){return Object(n["b"])({url:r.timeByCron,method:"get",params:t})}function b(t){return Object(n["b"])({url:r.delJob+t,method:"delete"})}function g(t){return Object(n["b"])({url:r.updateJobStatus,method:"put",data:t})}function v(t){return Object(n["b"])({url:r.jobLogList,method:"get",params:t})}function y(t){return Object(n["b"])({url:r.jobTaskList,method:"get",params:t})}function w(t){return Object(n["b"])({url:r.jobBatchList,method:"get",params:t})}function j(t){return Object(n["b"])({url:r.jobBatchDetail+t,method:"get"})}function L(t){return Object(n["b"])({url:r.jobPageList,method:"get",params:t})}function k(t){return Object(n["b"])({url:r.jobList,method:"get",params:t})}function x(t){return Object(n["b"])({url:r.jobDetail+t,method:"get"})}function O(t){return Object(n["b"])({url:r.saveJob,method:"post",data:t})}function S(t){return Object(n["b"])({url:r.updateJob,method:"put",data:t})}function _(t){return Object(n["b"])({url:r.jobNotifyConfigPageList,method:"get",params:t})}function I(t){return Object(n["b"])({url:r.jobNotifyConfigDetail+t,method:"get"})}function C(t){return Object(n["b"])({url:r.saveJobNotify,method:"post",data:t})}function E(t){return Object(n["b"])({url:r.updateJobNotify,method:"put",data:t})}},4681:function(t,e,o){},6892:function(t,e,o){"use strict";o("4681")},c7eb:function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));o("a4d3"),o("e01a"),o("d3b7"),o("d28b"),o("3ca3"),o("ddb0"),o("b636"),o("944a"),o("0c47"),o("23dc"),o("3410"),o("159b"),o("b0c0"),o("131a"),o("fb6a");var n=o("53ca");function r(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ r=function(){return t};var t={},e=Object.prototype,o=e.hasOwnProperty,a=Object.defineProperty||function(t,e,o){t[e]=o.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(E){l=function(t,e,o){return t[e]=o}}function d(t,e,o,n){var r=e&&e.prototype instanceof p?e:p,i=Object.create(r.prototype),c=new _(n||[]);return a(i,"_invoke",{value:k(t,o,c)}),i}function f(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(E){return{type:"throw",arg:E}}}t.wrap=d;var h={};function p(){}function m(){}function b(){}var g={};l(g,c,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(I([])));y&&y!==e&&o.call(y,c)&&(g=y);var w=b.prototype=p.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(a,i,c,s){var u=f(t[a],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==Object(n["a"])(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var i;a(this,"_invoke",{value:function(t,o){function n(){return new e((function(e,n){r(t,o,e,n)}))}return i=i?i.then(n,n):n()}})}function k(t,e,o){var n="suspendedStart";return function(r,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw a;return C()}for(o.method=r,o.arg=a;;){var i=o.delegate;if(i){var c=x(i,o);if(c){if(c===h)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var s=f(t,e,o);if("normal"===s.type){if(n=o.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(n="completed",o.method="throw",o.arg=s.arg)}}}function x(t,e){var o=e.method,n=t.iterator[o];if(void 0===n)return e.delegate=null,"throw"===o&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==o&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc===t){var n=o.completion;if("throw"===n.type){var r=n.arg;S(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:I(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=void 0),h}},t}}}]);