3 lines
17 KiB
JavaScript
3 lines
17 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a530ef8","chunk-672e297b"],{"119c":function(t,e,r){"use strict";r.r(e);r("ac1f"),r("5319"),r("b0c0");var n=function(){var t=this,e=this,r=e._self._c;return r("div",[e.showHeader?r("page-header-wrapper",{staticStyle:{margin:"-24px -1px 0"},on:{back:function(){return e.$router.replace("/job/batch/list")}}},[r("div")]):e._e(),null!==e.jobBatchInfo?r("a-card",{attrs:{bordered:!1}},[r("a-descriptions",{attrs:{title:"",column:e.column,bordered:""}},[r("a-descriptions-item",{attrs:{label:"组名称"}},[e._v(" "+e._s(e.jobBatchInfo.groupName)+" ")]),r("a-descriptions-item",{attrs:{label:"任务名称"}},[e._v(" "+e._s(e.jobBatchInfo.jobName)+" ")]),r("a-descriptions-item",{attrs:{label:"状态"}},[r("a-tag",{attrs:{color:e.taskBatchStatus[e.jobBatchInfo.taskBatchStatus].color}},[e._v(" "+e._s(e.taskBatchStatus[e.jobBatchInfo.taskBatchStatus].name)+" ")])],1),r("a-descriptions-item",{attrs:{label:"执行器类型"}},[r("a-tag",{attrs:{color:e.executorType[e.jobBatchInfo.executorType].color}},[e._v(" "+e._s(e.executorType[e.jobBatchInfo.executorType].name)+" ")])],1),r("a-descriptions-item",{attrs:{label:"操作原因"}},[r("a-tag",{attrs:{color:e.operationReason[e.jobBatchInfo.operationReason].color}},[e._v(" "+e._s(e.operationReason[e.jobBatchInfo.operationReason].name)+" ")])],1),r("a-descriptions-item",{attrs:{label:"开始执行时间"}},[e._v(" "+e._s(e.jobBatchInfo.executionAt)+" ")]),r("a-descriptions-item",{attrs:{label:"执行器名称",span:"4"}},[e._v(" "+e._s(e.jobBatchInfo.executorInfo)+" ")]),r("a-descriptions-item",{attrs:{label:"创建时间"}},[e._v(" "+e._s(e.jobBatchInfo.createDt)+" ")])],1)],1):e._e(),r("div",{staticStyle:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[r("span",{staticStyle:{"padding-left":"18px"}},[e._v("任务项列表")]),r("span",{staticStyle:{"padding-left":"18px"}},[r("a-icon",{attrs:{type:"sync"},on:{click:function(){return t.$refs.JobTaskListRef.refreshTable(t.queryParam)}}})],1)]),r("JobTaskList",{ref:"JobTaskListRef"})],1)},o=[],a=(r("a9e3"),r("3b7a")),i=r("c1df"),c=r.n(i),s=r("38b7"),u=r.n(s),l=r("36e8"),f={name:"JobInfo",components:{JobTaskList:l["default"]},props:{showHeader:{type:Boolean,default:!0},column:{type:Number,default:3}},data:function(){return{jobBatchInfo:null,taskBatchStatus:u.a.taskBatchStatus,operationReason:u.a.operationReason,taskType:u.a.taskType,triggerType:u.a.triggerType,blockStrategy:u.a.blockStrategy,executorType:u.a.executorType,queryParam:{}}},created:function(){var t=this.$route.query.id,e=this.$route.query.groupName;t&&e?this.jobBatchDetail(t):this.showHeader&&this.$router.push({path:"/404"})},methods:{parseDate:function(t){return c()(t).format("YYYY-MM-DD HH:mm:ss")},jobBatchDetail:function(t){var e=this;Object(a["d"])(t).then((function(r){e.jobBatchInfo=r.data,e.queryParam={groupName:e.jobBatchInfo.groupName,taskBatchId:t},e.$refs.JobTaskListRef.refreshTable(e.queryParam)}))}}},d=f,h=r("2877"),p=Object(h["a"])(d,n,o,!1,null,"aa07bd40",null);e["default"]=p.exports},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("d3b7");function n(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,s,"next",t)}function s(t){n(i,o,a,c,s,"throw",t)}c(void 0)}))}}},"36e8":function(t,e,r){"use strict";r.r(e);r("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,p
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
|
o=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new E(n||[]);return i(a,"_invoke",{value:I(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",b="suspendedYield",m="executing",g="completed",y={};function v(){}function j(){}function w(){}var x={};f(x,s,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(D([])));L&&L!==r&&a.call(L,s)&&(x=L);var _=w.prototype=v.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,c,s){var u=h(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==Object(n["a"])(f)&&a.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(a,a):a()}})}function I(e,r,n){var o=p;return function(a,i){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var s=B(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?g:b,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function B(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,B(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Object(n["a"])(e)+" is not iterable")}return j.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:j,configurable:!0}),j.displayName=f(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(O.prototype),f(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(d(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),f(_,l,"Generat
|