gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-672e297b.694656d2.js

3 lines
14 KiB
JavaScript
Raw Normal View History

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-672e297b"],{"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("d3b7");function r(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}},"36e8":function(t,e,n){"use strict";n.r(e);n("b0c0");var r=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:"serial",fn:function(n,r){return e("span",{},[t._v(" "+t._s(r.id)+" ")])}},{key:"taskStatus",fn:function(n){return e("span",{},[e("a-tag",{attrs:{color:t.taskStatus[n].color}},[t._v(" "+t._s(t.taskStatus[n].name)+" ")])],1)}},{key:"clientInfo",fn:function(n){return e("span",{},[t._v(" "+t._s(""!==n?n.split("@")[1]:"")+" ")])}},{key:"expandedRowRender",fn:function(n){return e("a-table",{attrs:{columns:t.logColumns,"data-source":n.logData,pagination:!1,rowKey:"id"},scopedSlots:t._u([{key:"serial",fn:function(n,r){return e("span",{},[t._v(" "+t._s(r.id)+" ")])}}])})}}])})],1)},o=[],a=n("5530"),i=n("c7eb"),c=n("1da1"),u=(n("4de4"),n("d3b7"),n("261e")),s=n("27e3"),l=n("2af9"),d=n("3b7a"),f=n("38b7"),h=n.n(f),p=n("c1df"),b=n.n(p),m={name:"JobTaskList",components:{AInput:s["a"],ATextarea:u["a"],STable:l["j"]},data:function(){var t=this;return{currentComponet:"List",visible:!1,advanced:!1,queryParam:{},data:[],logData:[],taskStatus:h.a.taskStatus,columns:[{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 b()(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 n=this;return Object(c["a"])(Object(i["a"])().mark((function r(){return Object(i["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!t){r.next=4;break}return r.next=3,n.fetchLog({taskBatchId:e.taskBatchId,jobId:e.jobId,taskId:e.id},e);case 3:n.$forceUpdate();case 4:case"end":return r.stop()}}),r)})))()},handleOk:function(t){},queryChange:function(){this.fetch()},fetch:function(){var t=this;this.loading=!0,Object(d["h"])(this.queryParam).then((function(e){t.data=e.data;var n=Object(a["a"])({},t.pagination);n.pageSize=e.size,n.current=e.page,n.total=e.total,t.pagination=n,t.loading=!1}))},refreshTable:function(t){this.queryParam=t,this.queryChange()},fetchLog:fun
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(R){l=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new _(r||[]);return a(i,"_invoke",{value:L(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(R){return{type:"throw",arg:R}}}t.wrap=d;var h={};function p(){}function b(){}function m(){}var g={};l(g,c,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==e&&n.call(y,c)&&(g=y);var w=m.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 x(t,e){function o(a,i,c,u){var s=f(t[a],t,i);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==Object(r["a"])(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function L(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return I()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=O(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.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 k(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(k,this),this.reset(!0)}function E(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 r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return b.prototype=m,a(w,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:b,configurable:!0}),b.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},j(x.prototype),l(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new x(d(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.val