gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-672e297b.694656d2.js
byteblogs168 91aebb992e feat:2.5.0
1. 添加namespace表结构
2. 前端打包
2024-01-31 21:58:20 +08:00

3 lines
14 KiB
JavaScript

(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:function(t,e){return Object(c["a"])(Object(i["a"])().mark((function n(){var r;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(d["f"])(t);case 2:r=n.sent,e.logData=r.data;case 4:case"end":return n.stop()}}),n)})))()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e}}},g=m,v=n("2877"),y=Object(v["a"])(g,r,o,!1,null,null,null);e["default"]=y.exports},"38b7":function(t,e){var n={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"}},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"}}};t.exports=n},"3b7a":function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"j",(function(){return i})),n.d(e,"g",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"a",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"f",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return m})),n.d(e,"i",(function(){return g})),n.d(e,"m",(function(){return v}));var r=n("b775"),o={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/",jobTaskList:"/job/task/list",jobLogList:"/job/log/list"};function a(t){return Object(r["b"])({url:o.triggerJob+t,method:"post"})}function i(t){return Object(r["b"])({url:o.stop+t,method:"post"})}function c(t){return Object(r["b"])({url:o.jobNameList,method:"get",params:t})}function u(t){return Object(r["b"])({url:o.timeByCron,method:"get",params:t})}function s(t){return Object(r["b"])({url:o.delJob+t,method:"delete"})}function l(t){return Object(r["b"])({url:o.updateJobStatus,method:"put",data:t})}function d(t){return Object(r["b"])({url:o.jobLogList,method:"get",params:t})}function f(t){return Object(r["b"])({url:o.jobTaskList,method:"get",params:t})}function h(t){return Object(r["b"])({url:o.jobBatchList,method:"get",params:t})}function p(t){return Object(r["b"])({url:o.jobBatchDetail+t,method:"get"})}function b(t){return Object(r["b"])({url:o.jobList,method:"get",params:t})}function m(t){return Object(r["b"])({url:o.jobDetail+t,method:"get"})}function g(t){return Object(r["b"])({url:o.saveJob,method:"post",data:t})}function v(t){return Object(r["b"])({url:o.updateJob,method:"put",data:t})}},c7eb:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("159b"),n("b0c0"),n("131a"),n("fb6a");var r=n("53ca");function o(){
/*! 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.value:i.next()}))},j(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=E,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}}}]);