(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ae07134"],{"2cd3":function(e,t,s){"use strict";var n=s("4144"),i=s.n(n);t["default"]=i.a},4144:function(e,t){e.exports=function(e){e.options.__i18n=e.options.__i18n||[],e.options.__i18n.push('{"EN":{"新增请求":"The new request","请求名称":"Request name","阶段":"Stage","运行计划":"Operation plan","申请人":"Applicant","开始时间":"Start time","上次请求时间":"Last request time","下次请求时间":"Next request time","结束时间":"End time","运行任务":"Operation task","执行成功次数":"Number of exe success","查看日志":"View log","状态":"State","系统平台":"System platform","提交请求详情":"Submit request details","业务模块":"Business module"},"CN":{"新增请求":"新增请求","请求名称":"请求名称","阶段":"阶段","运行计划":"运行计划","申请人":"申请人","开始时间":"开始时间","上次请求时间":"上次请求时间","下次请求时间":"下次请求时间","结束时间":"结束时间","运行任务":"运行任务","执行成功次数":"执行成功次数","查看日志":"查看日志","状态":"状态","系统平台":"系统平台","提交请求详情":"提交请求详情","业务模块":"业务模块"}}'),delete e.options._Ctor}},"5db8":function(e,t,s){},80190:function(e,t,s){"use strict";s("5db8")},8438:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("SaafSuperTable",{ref:"SaafSuperTable",attrs:{tableConfig:e.tableConfig,currentRow:e.currentRow},on:{"update:currentRow":function(t){e.currentRow=t},"update:current-row":function(t){e.currentRow=t}}}),s("SaafDelModal",{ref:"SaafDelModal",attrs:{del:e.deleteScheduleBatch}}),s("Modal",{attrs:{title:e.$t("查看日志")+"(当前页面展示2天内的日志内容)"},model:{value:e.logModal,callback:function(t){e.logModal=t},expression:"logModal"}},[s("span",[e._v(e._s(e.logContent))])])],1)},i=[],r=s("5279"),a=s("864a");function o(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function u(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?o(Object(s),!0).forEach((function(t){l(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function l(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var c={data:function(){var e=this;return{logModal:!1,logContent:"",tableConfig:{findApi:"findRequests",searchParams:{},pageHeader:{title:"",functionList:{btnNew:this.add,btnDel:{disabled:function(){return!e.currentRow},fun:this.del},btnCancel:{disabled:function(){var t=!0;return null!=e.currentRow&&(t=void 0==e.currentRow.phaseCode||"JOBWASEXECUTED_PHASECODE"==e.currentRow.phaseCode||"JOBUNSCHEDULED_PHASECODE"==e.currentRow.phaseCode),t},fun:this.cancel},btnStart:{disabled:function(){var t=!0;return null!=e.currentRow&&(t="JOBWASEXECUTED_PHASECODE"!=e.currentRow.phaseCode&&"JOBUNSCHEDULED_PHASECODE"!=e.currentRow.phaseCode&&"JOBPAUSED_PHASECODE"!=e.currentRow.phaseCode),t},fun:this.start},btnPending:{disabled:function(){var t=!0;return null!=e.currentRow&&(t="JOBWAITING_PHASECODE"!=e.currentRow.phaseCode&&"JOBSCHEDULED_PHASECODE"!=e.currentRow.phaseCode),t},fun:this.pending},btnDetail:{disabled:function(){return!e.currentRow},fun:this.detail},btnLog:{disabled:function(){return!e.currentRow},fun:this.log}}},searchItems:{jobName:{label:this.$t("请求名称"),type:"text"},scheduleType:{label:this.$t("运行计划"),type:"lookup",code:"SYS_SCHEDULE_TYPE"},phaseCode:{label:this.$t("阶段"),type:"lookup",code:"SYS_SCHEDULE_PHASE_CODE"},statusCode:{label:this.$t("状态"),type:"lookup",code:"SYS_SCHEDULE_STATUS_CODE"},system:{label:this.$t("系统平台"),type:"lookup",code:"SCHEDULED_SYSTEM"},module:{label:this.$t("业务模块"),type:"lookup",code:"SCHEDULED_SYSTEM_MODULE"},userName:{label:this.$t("申请人"),type:"text"}},tableColumns:[{title:this.$t("请求名称"),key:"jobName",resizable:!0,sortable:!0,ellipsis:!0,width:180},{title:this.$t("运行任务"),key:"scheduleTypeMeaning",resizable:!0,sortable:!0,ellipsis:!0,width:100},{title:this.$t("阶段"),key:"phaseCodeMeaning",resizable:!0,sortable:!0,ellipsis:!0,width:120},{title:this.$t("状态"),key:"statusCodeMeaning",resizable:!0,sortable:!0,ellipsis:!0,width:100},{title:this.$t("系统平台"),key:"systemMeaning",sortable:!0,width:110},{title:this.$t("业务模块"),key:"moduleMeaning",resizable:!0,sortable:!0,ellipsis:!0,width:180},{title:this.$t("申请人"),key:"userName",sortable:!0,width:100},{title:this.$t("开始时间"),key:"actualStartDate",sortable:!0,width:150},{title:this.$t("上次请求时间"),key:"previousFireTime",sortable:!0,width:150},{title:this.$t("下次请求时间"),key:"nextFireTime",sortable:!0,width:150},{title:this.$t("结束时间"),key:"Remarks",sortable:!0,width:150}]},currentRow:null}},methods:{add:function(){r["q"].openTab({url:"/SubmitRequestDetail?id=0",name:"".concat(this.$t("新增请求"))})},deleteScheduleBatch:function(e){var t=this;a["b"].deleteScheduleBatch({scheduleIdDetails:e}).then((function(e){"S"==e.status&&(t.$Message.success(e.msg),t.getFirstPage())}))},del:function(){this.$refs.SaafDelModal.open({scheduleId:this.currentRow.scheduleId})},cancel:function(){var e=this;a["b"].cancelRequest({scheduleId:this.currentRow.scheduleId}).then((function(t){"S"==t.status&&(e.$Message.success(t.msg),e.getFirstPage())}))},start:function(){var e=this;a["b"].scheduleServices_launchRequest(this.currentRow).then((function(t){"S"==t.status&&(e.$Message.success(t.msg),e.getFirstPage())}))},saveRequest:function(e){var t=this;a["b"].saveRequest(u({},e)).then((function(e){"S"==e.status&&(t.$Message.success(e.msg),t.getFirstPage())}))},pending:function(){var e=this;a["b"].pauseRequest({scheduleId:this.currentRow.scheduleId}).then((function(t){"S"==t.status&&(e.$Message.success(t.msg),e.getFirstPage())}))},detail:function(){r["q"].openTab({url:"/SubmitRequestDetail?id=".concat(this.currentRow.scheduleId),name:"".concat(this.$t("提交请求详情:"+this.currentRow.jobName))})},log:function(){var e=this;this.logModal=!0,a["b"].findRequestLog({scheduleId:this.currentRow.scheduleId}).then((function(t){"S"==t.status&&(e.logContent=t.data)}))},getFirstPage:function(){this.$refs.SaafSuperTable.getFirstPage()}},mounted:function(){this.getFirstPage()}},d=c,h=(s("80190"),s("2877")),b=s("2cd3"),f=Object(h["a"])(d,n,i,!1,null,"3c9f5d9f",null);"function"===typeof b["default"]&&Object(b["default"])(f);t["default"]=f.exports}}]);