gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-31e98b9a.8c3a5554.js

1 line
7.9 KiB
JavaScript
Raw Normal View History

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31e98b9a","chunk-7e5ff423"],{"36e8":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}})],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-menu",{attrs:{slot:"overlay"},on:{click:t.onClick},slot:"overlay"},[e("a-menu-item",{key:"1"},[e("a-icon",{attrs:{type:"delete"}}),t._v("删除")],1),e("a-menu-item",{key:"2"},[e("a-icon",{attrs:{type:"edit"}}),t._v("更新")],1)],1),e("a-button",{staticStyle:{"margin-left":"8px"}},[t._v(" 批量操作 "),e("a-icon",{attrs:{type:"down"}})],1)],1):t._e()],1),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:2e3}},scopedSlots:t._u([{key:"serial",fn:function(a,n){return e("span",{},[t._v(" "+t._s(n.id)+" ")])}},{key:"taskStatus",fn:function(a){return e("span",{},[e("a-tag",{attrs:{color:t.taskStatus[a].color}},[t._v(" "+t._s(t.taskStatus[a].name)+" ")])],1)}},{key:"clientInfo",fn:function(a){return e("span",{},[t._v(" "+t._s(""!==a?a.split("@")[1]:"")+" ")])}},{key:"action",fn:function(a,n){return e("span",{},[[e("a",{on:{click:function(e){return t.handleLog(n)}}},[t._v("日志")])]],2)}}])})],1)},o=[],r=a("261e"),s=a("27e3"),c=a("2af9"),i=a("3b7a"),u=a("0fea"),l=a("38b7"),d=a.n(l),f=a("a03c"),b={name:"JobTaskList",components:{AInput:s["a"],ATextarea:r["a"],STable:c["j"],JobLogMessageList:f["default"]},data:function(){var t=this;return{currentComponet:"List",record:"",mdl:{},visible:!1,advanced:!1,queryParam:{},taskStatus:d.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%"},{title:"操作",fixed:"right",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],loadData:function(e){return null===t.queryParam.taskBatchId||void 0===t.queryParam.taskBatchId?[]:Object(i["h"])(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:[],sceneList:[]}},created:function(){var t=this;Object(u["i"])().then((function(e){t.groupNameList=e.data,null!==t.groupNameList&&t.groupNameList.length>0&&(t.queryParam["groupName"]=t.groupNameList[0],t.$refs.table.refresh(!0),t.handleChange(t.groupNameList[0]))}))},methods:{handleNew:function(){this.$refs.saveRetryTask.isShow(!0,null)},handleBatchNew:function(){this.$refs.batchSaveRetryTask.isShow(!0,null)},handleChange:function(t){},toggleAdvanced:function(){this.advanced=!this.advanced},handleLog:function(t){this.$router.push({path:"/job/log/list",query:{taskBatchId:t.taskBatchId,jobId:t.jobId}})},handleOk:function(t){},handleSuspend:function(t){},handleRecovery:function(t){},handleFinish:function(t){},handleTrigger:function(t){},refreshTable:function(t){this.queryParam=t,this.$refs.table.refresh(!0)},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e},handlerDel:function(){},onClick:function(t){var e=t.key;"2"!==e?"1"===e&&this.handlerDel():this.$refs.batchUpdateRetryTaskInfo.isShow(!0,this.selectedRows,this.selectedRowKeys)}}},h=b,m=a("2877"),p=Object(m["a"])(h,n,o,!1,null,null,null);e["default"]=p.exports},"38b7":function(t,e){var a={jobStatusEnum:{0:{name:"关闭",col