gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-2d0b3ded.1c86df22.js
zhengweilin 9ab279518d feat: 2.5.0:
1、https://gitee.com/aizuda/easy-retry/issues/I8GRJP
2、Dashboard 添加任务调度数据展示
3、新增重试、定时饼图、任务列表
4、根据后台mode配置动态重试、定时权限
2023-12-02 20:20:25 +08:00

1 line
6.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3ded"],{"29e5":function(t,e,a){"use strict";a.r(e);a("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}},[e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"组名称"}},[e("a-select",{attrs:{placeholder:"请输入组名称"},on:{change:function(e){return t.handleChange(e)}},model:{value:t.queryParam.groupName,callback:function(e){t.$set(t.queryParam,"groupName",e)},expression:"queryParam.groupName"}},t._l(t.groupNameList,(function(a){return e("a-select-option",{key:a,attrs:{value:a}},[t._v(t._s(a))])})),1)],1)],1),e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"任务名称"}},[e("a-select",{attrs:{"show-search":"",placeholder:"请输入任务名称","default-active-first-option":!1,"show-arrow":!0,"filter-option":!1,"not-found-content":null},on:{search:t.handleSearch,change:t.handleChange},model:{value:t.queryParam.jobId,callback:function(e){t.$set(t.queryParam,"jobId",e)},expression:"queryParam.jobId"}},t._l(t.jobNameList,(function(a,n){return e("a-select-option",{key:n,attrs:{value:a.id}},[t._v(" "+t._s(a.jobName)+" ")])})),1)],1)],1),e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"状态"}},[e("a-select",{attrs:{placeholder:"请选择状态",allowClear:""},model:{value:t.queryParam.taskBatchStatus,callback:function(e){t.$set(t.queryParam,"taskBatchStatus",e)},expression:"queryParam.taskBatchStatus"}},t._l(t.taskBatchStatus,(function(a,n){return e("a-select-option",{key:n,attrs:{value:n}},[t._v(" "+t._s(a.name))])})),1)],1)],1),t.advanced?void 0:t._e(),e("a-col",{attrs:{md:t.advanced?24:8,sm:24}},[e("span",{staticClass:"table-page-search-submitButtons",style:t.advanced&&{float:"right",overflow:"hidden"}||{}},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.$refs.table.refresh(!0)}}},[t._v("查询")]),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:function(){return t.queryParam={}}}},[t._v("重置")]),e("a",{staticStyle:{"margin-left":"8px"},on:{click:t.toggleAdvanced}},[t._v(" "+t._s(t.advanced?"收起":"展开")+" "),e("a-icon",{attrs:{type:t.advanced?"up":"down"}})],1)],1)])],2)],1)],1),e("div",{staticClass:"table-operator"}),e("s-table",{ref:"table",attrs:{size:"default",rowKey:function(t){return t.id},columns:t.columns,data:t.loadData,alert:t.options.alert,rowSelection:t.options.rowSelection,scroll:{x:1800}},scopedSlots:t._u([{key:"serial",fn:function(a){return e("span",{},[e("a",{attrs:{href:"#"},on:{click:function(e){return t.handlerOpenDrawer(a)}}},[t._v(t._s(a.id))])])}},{key:"taskBatchStatus",fn:function(a){return e("span",{},[e("a-tag",{attrs:{color:t.taskBatchStatus[a].color}},[t._v(" "+t._s(t.taskBatchStatus[a].name)+" ")])],1)}},{key:"operationReason",fn:function(a){return e("span",{},[t._v(" "+t._s(t.operationReason[a].name)+" ")])}},{key:"action",fn:function(a,n){return e("span",{},[[e("a",{on:{click:function(e){return t.handleInfo(n)}}},[t._v("详情")]),e("a-divider",{attrs:{type:"vertical"}}),e("a-popconfirm",{attrs:{title:"是否停止?","ok-text":"停止","cancel-text":"取消"},on:{confirm:function(e){return t.handleStop(n)}}},[1===n.taskBatchStatus||2===n.taskBatchStatus?e("a",{attrs:{href:"javascript:;"}},[t._v("停止")]):t._e()])]],2)}}])}),e("Drawer",{attrs:{title:"任务详情",placement:"right",width:800,visibleAmplify:!0,visible:t.openDrawer},on:{closeDrawer:t.onClose,handlerAmplify:t.handleInfo}},[e("job-batch-info",{ref:"jobBatchInfoRef",attrs:{showHeader:!1,column:2}})],1)],1)},o=[],r=a("261e"),s=a("27e3"),c=a("2af9"),i=a("3b7a"),l=a("0fea"),u=a("119c"),d=a("38b7"),h={name:"JobBatchList",components:{JobBatchInfo:u["default"],Drawer:c["c"],AInput:s["a"],ATextarea:r["a"],STable:c["i"]},data:function(){var t=this;return{currentComponet:"List",record:"",mdl:{},visible:!1,advanced:!1,queryParam:{jobId:null},taskBatchStatus:d.taskBatchStatus,operationReason:d.operationReason,columns:[{title:"ID",scopedSlots:{customRender:"serial"},width:"5%"},{title:"组名称",dataIndex:"groupName",ellipsis:!0,width:"15%"},{title:"任务名称",dataIndex:"jobName",ellipsis:!0,width:"15%"},{title:"开始执行时间",dataIndex:"executionAt",width:"10%"},{title:"状态",dataIndex:"taskBatchStatus",scopedSlots:{customRender:"taskBatchStatus"},width:"5%"},{title:"操作原因",dataIndex:"operationReason",scopedSlots:{customRender:"operationReason"},width:"15%"},{title:"创建时间",dataIndex:"createDt",sorter:!0,width:"10%"},{title:"操作",fixed:"right",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],loadData:function(e){return Object(i["e"])(Object.assign(e,t.queryParam)).then((function(t){return t}))},selectedRowKeys:[],selectedRows:[],options:{alert:{show:!0,clear:function(){t.selectedRowKeys=[]}},rowSelection:{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}},optionAlertShow:!1,groupNameList:[],jobNameList:[],openDrawer:!1,currentShowRecord:null}},created:function(){var t=this;Object(l["j"])().then((function(e){t.groupNameList=e.data}));var e=this.$route.query.jobId;Object(i["g"])({jobId:e}).then((function(a){t.jobNameList=a.data,e&&(t.queryParam["jobId"]=t.jobNameList[0].id,t.$refs.table.refresh(!0))}))},methods:{handleSearch:function(t){var e=this;Object(i["g"])({keywords:t}).then((function(t){e.jobNameList=t.data}))},handleChange:function(t){},toggleAdvanced:function(){this.advanced=!this.advanced},handleInfo:function(t){t=t||this.currentShowRecord,this.$router.push({path:"/job/batch/info",query:{id:t.id,groupName:t.groupName}})},handleOk:function(t){},handleStop:function(t){var e=this;Object(i["j"])(t.id).then((function(t){var a=t.status;0===a?e.$message.error("停止失败"):(e.$refs.table.refresh(!0),e.$message.success("停止成功"))}))},refreshTable:function(t){this.$refs.table.refresh(!0)},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e},handlerOpenDrawer:function(t){var e=this;this.currentShowRecord=t,this.openDrawer=!0,setTimeout((function(){e.$refs.jobBatchInfoRef.jobBatchDetail(t.id)}),200)},onClose:function(){this.openDrawer=!1,this.currentShowRecord=null}}},f=h,p=a("2877"),m=Object(p["a"])(f,n,o,!1,null,null,null);e["default"]=m.exports}}]);