You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
21 KiB
2 lines
21 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cae4df82"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),s=a("83a1"),i=a("5f1b");a("214f")("search",1,function(e,t,a,n){return[function(a){var r=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=n(a,e,this);if(t.done)return t.value;var o=r(e),l=String(this),c=o.lastIndex;s(c,0)||(o.lastIndex=0);var m=i(o,l);return s(o.lastIndex,c)||(o.lastIndex=c),null===m?-1:m.index}]})},"3b2b":function(e,t,a){var r=a("7726"),s=a("5dbc"),i=a("86cc").f,n=a("9093").f,o=a("aae3"),l=a("0bfb"),c=r.RegExp,m=c,u=c.prototype,d=/a/g,p=/a/g,g=new c(d)!==d;if(a("9e1e")&&(!g||a("79e5")(function(){return p[a("2b4c")("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")}))){c=function(e,t){var a=this instanceof c,r=o(e),i=void 0===t;return!a&&r&&e.constructor===c&&i?e:s(g?new m(r&&!i?e.source:e,t):m((r=e instanceof c)?e.source:e,r&&i?l.call(e):t),a?this:u,c)};for(var f=function(e){e in c||i(c,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},b=n(m),h=0;b.length>h;)f(b[h++]);u.constructor=c,c.prototype=u,a("2aba")(r,"RegExp",c)}a("7a56")("RegExp")},4917:function(e,t,a){"use strict";var r=a("cb7c"),s=a("9def"),i=a("0390"),n=a("5f1b");a("214f")("match",1,function(e,t,a,o){return[function(a){var r=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=o(a,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return n(l,c);var m=l.unicode;l.lastIndex=0;var u,d=[],p=0;while(null!==(u=n(l,c))){var g=String(u[0]);d[p]=g,""===g&&(l.lastIndex=i(c,s(l.lastIndex),m)),p++}return 0===p?null:d}]})},5176:function(e,t,a){e.exports=a("51b6")},6908:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return null!=e.buttonList&&e.buttonList.length>0?a("el-col",{staticClass:"toolbar",staticStyle:{"padding-bottom":"0px"},attrs:{span:24}},[a("el-form",{attrs:{inline:!0},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}})],1),e._l(e.buttonList,function(t){return a("el-form-item",{key:t.id},[t.IsHide?e._e():a("el-button",{attrs:{type:!t.Func||-1==t.Func.toLowerCase().indexOf("handledel")&&-1==t.Func.toLowerCase().indexOf("stop")?"primary":"danger"},on:{click:function(a){e.callFunc(t)}}},[e._v(e._s(t.name))])],1)})],2)],1):e._e()},s=[],i=(a("cadf"),a("551c"),a("097d"),{name:"Toolbar",data:function(){return{searchVal:""}},props:["buttonList"],methods:{callFunc:function(e){e.search=this.searchVal,this.$emit("callFunction",e)}}}),n=i,o=a("2877"),l=Object(o["a"])(n,r,s,!1,null,null,null);l.options.__file="Toolbar.vue";t["a"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a6dc:function(e,t,a){"use strict";var r=a("e814"),s=a.n(r),i=(a("a481"),a("386d"),a("4917"),a("3b2b"),/([yMdhsm])(\1*)/g),n="yyyy-MM-dd";function o(e,t){t-=(e+"").length;for(var a=0;a<t;a++)e="0"+e;return e}t["a"]={getQueryStringByName:function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(t),r="";return null!=a&&(r=a[2]),t=null,a=null,null==r||""==r||"undefined"==r?"":r},formatDate:{format:function(e,t){return t=t||n,t.replace(i,function(t){switch(t.charAt(0)){case"y":return o(e.getFullYear(),t.length);case"M":return o(e.getMonth()+1,t.length);case"d":return o(e.getDate(),t.length);case"w":return e.getDay()+1;case"h":return o(e.getHours(),t.length);case"m":return o(e.getMinutes(),t.length);case"s":return o(e.getSeconds(),t.length)}})},parse:function(e,t){var a=t.match(i),r=e.match(/(\d)+/g);if(a.length==r.length){for(var n=new Date(1970,0,1),o=0;o<a.length;o++){var l=s()(r[o]),c=a[o];switch(c.charAt(0)){case"y":n.setFullYear(l);break;case"M":n.setMonth(l-1);break;case"d":n.setDate(l);break;case"h":n.setHours(l);break;case"m":n.setMinutes(l);break;case"s":n.setSeconds(l);break}}return n}return null}},isEmt:{format:function(e){return"undefined"==typeof e||null==e||""==e}}}},aae3:function(e,t,a){var r=a("d3f4"),s=a("2d95"),i=a("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==s(e))}},fa19:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("toolbar",{attrs:{buttonList:e.buttonList},on:{callFunction:e.callFunction}}),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.Tasks,"highlight-current-row":""},on:{"current-change":e.selectCurrentRow}},[a("el-table-column",{attrs:{type:"index",width:"80"}}),a("el-table-column",{attrs:{prop:"JobGroup",label:"任务组",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"Name",label:"名称",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"TriggerType",label:"任务类型",width:"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:1==t.row.TriggerType?"success":"","disable-transitions":""}},[e._v(e._s(1==t.row.TriggerType?"Cron":"Simple"))])]}}])}),a("el-table-column",{attrs:{prop:"Cron",label:"Cron表达式",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"RunTimes",label:"累计运行(次)",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"IntervalSecond",label:"循环周期(秒)",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"CycleRunTimes",label:"循环次数(次)",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"AssemblyName",label:"程序集",width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"ClassName",label:"执行类",width:"150",sortable:""}}),a("el-table-column",{attrs:{prop:"BeginTime",label:"开始时间",formatter:e.formatBeginTime,width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"EndTime",label:"结束时间",formatter:e.formatEndTime,width:"",sortable:""}}),a("el-table-column",{attrs:{prop:"IsStart",label:"状态-数据库",width:"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:t.row.IsStart?"success":"danger","disable-transitions":""}},[e._v(e._s(t.row.IsStart?"运行中":"停止"))])]}}])}),a("el-table-column",{attrs:{prop:"Triggers",label:"状态-内存",width:"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:"正常"==t.row.Triggers[0].triggerStatus?"success":"danger","disable-transitions":""}},[e._v(e._s(t.row.Triggers[0].triggerStatus))])]}}])}),a("el-table-column",{attrs:{label:"日志"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"top"}},[a("p",{domProps:{innerHTML:e._s(t.row.Remark)}}),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[a("el-tag",{attrs:{size:"medium"}},[e._v("Log")])],1)])]}}])})],1),a("el-col",{staticClass:"toolbar",attrs:{span:24}},[a("el-button",{attrs:{type:"danger",disabled:0===this.sels.length},on:{click:e.batchRemove}},[e._v("批量删除")]),a("el-pagination",{staticStyle:{float:"right"},attrs:{layout:"prev, pager, next","page-size":50,total:e.total},on:{"current-change":e.handleCurrentChange}})],1),a("el-dialog",{attrs:{title:e.editForm.operType,visible:e.editFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.editFormVisible=t}},model:{value:e.editFormVisible,callback:function(t){e.editFormVisible=t},expression:"editFormVisible"}},[a("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":"100px",rules:e.editFormRules}},[a("el-form-item",{attrs:{label:"任务组",prop:"JobGroup"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.JobGroup,callback:function(t){e.$set(e.editForm,"JobGroup",t)},expression:"editForm.JobGroup"}})],1),a("el-form-item",{attrs:{label:"名称",prop:"Name"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.Name,callback:function(t){e.$set(e.editForm,"Name",t)},expression:"editForm.Name"}})],1),a("el-form-item",{attrs:{label:"程序集",prop:"AssemblyName"}},[a("el-col",{attrs:{span:20}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.AssemblyName,callback:function(t){e.$set(e.editForm,"AssemblyName",t)},expression:"editForm.AssemblyName"}})],1),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{width:"100%",overflow:"hidden"},on:{click:function(t){return t.preventDefault(),e.handleTask(t)}}},[e._v("选择任务")])],1)],1),a("el-form-item",{attrs:{label:"执行类名",prop:"ClassName"}},[a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.ClassName,callback:function(t){e.$set(e.editForm,"ClassName",t)},expression:"editForm.ClassName"}})],1),a("el-form-item",{attrs:{label:"执行参数",prop:"JobParams"}},[a("el-input",{staticClass:"textarea",attrs:{type:"textarea",rows:10},model:{value:e.editForm.JobParams,callback:function(t){e.$set(e.editForm,"JobParams",t)},expression:"editForm.JobParams"}})],1),a("el-form-item",{attrs:{prop:"TriggerType",label:"是否Cron",width:"",sortable:""}},[a("el-switch",{model:{value:e.editForm.TriggerType,callback:function(t){e.$set(e.editForm,"TriggerType",t)},expression:"editForm.TriggerType"}}),a("span",{staticStyle:{float:"right",color:"#aaa"}},[e._v("(1:Cron模式,0:Simple模式)")])],1),e.editForm.TriggerType?a("el-form-item",{attrs:{label:"Cron表达式",prop:"Cron"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 每隔5秒执行一次:*/5 * * * * ?"),a("br"),e._v("\n 每隔1分钟执行一次:0 */1 * * * ?"),a("br"),e._v("\n 每天23点执行一次:0 0 23 * * ?"),a("br"),e._v("\n 每天凌晨1点执行一次:0 0 1 * * ?"),a("br"),e._v("\n 每月1号凌晨1点执行一次:0 0 1 1 * ?"),a("br"),e._v("\n 每月最后一天23点执行一次:0 0 23 L * ?"),a("br"),e._v("\n 每周星期天凌晨1点实行一次:0 0 1 ? * L"),a("br"),e._v("\n 在26分、29分、33分执行一次:0 26,29,33 * * * ?"),a("br"),e._v("\n 每天的0点、13点、18点、21点都执行一次:0 0 0,13,18,21 * * ?"),a("br")]),a("el-input",{attrs:{"auto-complete":"off"},model:{value:e.editForm.Cron,callback:function(t){e.$set(e.editForm,"Cron",t)},expression:"editForm.Cron"}})],1)],1):a("el-form-item",{attrs:{label:"循环周期",prop:"IntervalSecond"}},[a("el-input-number",{staticStyle:{width:"200px"},attrs:{min:1,"auto-complete":"off"},model:{value:e.editForm.IntervalSecond,callback:function(t){e.$set(e.editForm,"IntervalSecond",t)},expression:"editForm.IntervalSecond"}}),a("span",{staticStyle:{float:"right",color:"#aaa"}},[e._v("(单位:秒)")])],1),e.editForm.TriggerType?e._e():a("el-form-item",{attrs:{label:"循环次数",prop:"CycleRunTimes"}},[a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 设置成0时,就意味着无限制次数运行\n ")]),a("el-input-number",{staticStyle:{width:"200px"},attrs:{min:0,"auto-complete":"off"},model:{value:e.editForm.CycleRunTimes,callback:function(t){e.$set(e.editForm,"CycleRunTimes",t)},expression:"editForm.CycleRunTimes"}})],1),a("span",{staticStyle:{float:"right",color:"#aaa"}},[e._v("(单位:次)")])],1),a("el-form-item",{attrs:{label:"是否激活",prop:"IsStart"}},[a("el-switch",{model:{value:e.editForm.IsStart,callback:function(t){e.$set(e.editForm,"IsStart",t)},expression:"editForm.IsStart"}})],1),a("el-form-item",{attrs:{label:"开始时间",prop:"BeginTime"}},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期","picker-options":e.pickerOptions},model:{value:e.editForm.BeginTime,callback:function(t){e.$set(e.editForm,"BeginTime",t)},expression:"editForm.BeginTime"}})],1),a("el-form-item",{attrs:{label:"结束时间",prop:"EndTime"}},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期","picker-options":e.pickerOptions},model:{value:e.editForm.EndTime,callback:function(t){e.$set(e.editForm,"EndTime",t)},expression:"editForm.EndTime"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(t){e.editFormVisible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.editLoading},nativeOn:{click:function(t){return e.submit(t)}}},[e._v("提交")])],1)],1),a("el-dialog",{attrs:{title:"选择任务",visible:e.namespace.editFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.$set(e.namespace,"editFormVisible",t)}},model:{value:e.namespace.editFormVisible,callback:function(t){e.$set(e.namespace,"editFormVisible",t)},expression:"namespace.editFormVisible"}},[a("el-table",{ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:e.namespace.tableData,"highlight-current-row":""},on:{"current-change":e.handleTaskCurrentChange}},[a("el-table-column",{attrs:{type:"index",width:"50"}}),a("el-table-column",{attrs:{property:"nameSpace",label:"命名空间",width:"200"}}),a("el-table-column",{attrs:{property:"nameClass",label:"类名",width:"200"}}),a("el-table-column",{attrs:{property:"remark",label:"备注"}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{nativeOn:{click:function(t){e.namespace.editFormVisible=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.namespace.editLoading},nativeOn:{click:function(t){return e.selectTask(t)}}},[e._v("提交")])],1)],1)],1)},s=[],i=(a("ac6a"),a("5176")),n=a.n(i),o=(a("7f7f"),a("386d"),a("a6dc")),l=a("4ec3"),c=a("cdc6"),m=a("6908"),u={components:{Toolbar:m["a"]},data:function(){return{filters:{name:""},buttonList:[],Tasks:[],statusList:[{name:"激活",value:!0},{name:"禁用",value:!1}],total:0,page:1,listLoading:!1,sels:[],currentRow:null,addDialogFormVisible:!1,editFormVisible:!1,editLoading:!1,editFormRules:{JobGroup:[{required:!0,message:"请输入组名",trigger:"blur"}],Name:[{required:!0,message:"请输入Job名",trigger:"blur"}],BeginTime:[{required:!0,message:"请选择开始时间",trigger:"blur"}],EndTime:[{required:!0,message:"请选择结束时间",trigger:"blur"}],AssemblyName:[{required:!0,message:"请输入程序集名",trigger:"blur"}],ClassName:[{required:!0,message:"请输入执行的Job类名",trigger:"blur"}]},editForm:{Id:0,Name:"",JobGroup:"",TriggerType:1,Cron:"",IntervalSecond:1,CycleRunTimes:1,BeginTime:"",EndTime:"",AssemblyName:"",ClassName:"",Remark:"",JobParams:"",IsDeleted:!1,IsStart:!1},pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"明天",onClick:function(e){var t=new Date;t.setTime(t.getTime()+864e5),e.$emit("pick",t)}},{text:"一周后",onClick:function(e){var t=new Date;t.setTime(t.getTime()+6048e5),e.$emit("pick",t)}},{text:"一月后(30)",onClick:function(e){var t=new Date;t.setTime(t.getTime()+2592e6),e.$emit("pick",t)}},{text:"一年后(365)",onClick:function(e){var t=new Date;t.setTime(t.getTime()+31536e6),e.$emit("pick",t)}}]},namespace:{tableData:[],currentRow:null,editFormVisible:!1,editLoading:!1}}},methods:{handleTask:function(){this.namespace.editFormVisible=!0,this.getTaskNameSpace()},handleTaskCurrentChange:function(e){this.namespace.currentRow=e},selectTask:function(){this.namespace.currentRow?(this.editForm.AssemblyName=this.namespace.currentRow.nameSpace,this.editForm.ClassName=this.namespace.currentRow.nameClass,this.namespace.editFormVisible=!1,this.namespace.currentRow=null):this.$message.error("请选择要添加的任务")},selectCurrentRow:function(e){this.currentRow=e},callFunction:function(e){this.filters={name:e.search},this[e.Func].apply(this,e)},formatEnabled:function(e,t){return e.Enabled?"正常":"未知"},formatCreateTime:function(e,t){return e.CreateTime&&""!=e.CreateTime?o["a"].formatDate.format(new Date(e.CreateTime),"yyyy-MM-dd hh:mm:ss"):""},formatBeginTime:function(e,t){return e.BeginTime&&""!=e.BeginTime?o["a"].formatDate.format(new Date(e.BeginTime),"yyyy-MM-dd hh:mm:ss"):""},formatEndTime:function(e,t){return e.EndTime&&""!=e.EndTime?o["a"].formatDate.format(new Date(e.EndTime),"yyyy-MM-dd hh:mm:ss"):""},handleCurrentChange:function(e){this.page=e,this.getTasks()},getTasks:function(){var e=this,t={page:this.page,key:this.filters.name};this.listLoading=!0,Object(l["O"])(t).then(function(t){e.total=t.data.response.dataCount,e.Tasks=t.data.response.data,e.listLoading=!1})},getTaskNameSpace:function(){var e=this;Object(l["P"])({}).then(function(t){e.namespace.tableData=t.data.response})},handleEdit:function(){var e=this.currentRow;e?(1==e.TriggerType&&(e.TriggerType=!0),this.editFormVisible=!0,this.editForm=n()({},e),this.editForm.operType="编辑"):this.$message({message:"请选择要编辑的一行数据!",type:"error"})},handleAdd:function(){this.editFormVisible=!0,this.editForm={Id:0,Name:"",JobGroup:"",TriggerType:!0,Cron:"",IntervalSecond:1,CycleRunTimes:1,BeginTime:"",EndTime:"",AssemblyName:"",ClassName:"",Remark:"",JobParams:"",IsDeleted:!1,IsStart:!1},this.editForm.operType="添加"},submit:function(){"添加"==this.editForm.operType?this.addSubmit():this.editSubmit()},editSubmit:function(){var e=this;this.$refs.editForm.validate(function(t){t&&e.$confirm("确认提交吗?","提示",{}).then(function(){e.editLoading=!0;var t=n()({},e.editForm);t.TriggerType?t.TriggerType=1:t.TriggerType=0,Object(l["u"])(t).then(function(t){t.data.success?(e.$message.success(t.data.msg),e.$refs["editForm"].resetFields(),e.editFormVisible=!1,e.getTasks()):e.$message.error(t.data.msg)}).finally(function(){e.editLoading=!1})})})},addSubmit:function(){var e=this;this.$refs.editForm.validate(function(t){t&&e.$confirm("确认提交吗?","提示",{}).then(function(){e.editLoading=!0;var t=n()({},e.editForm);t.TriggerType?t.TriggerType=1:t.TriggerType=0,Object(l["h"])(t).then(function(t){t.data.success?(e.$message.success(t.data.msg),e.$refs["editForm"].resetFields(),e.editFormVisible=!1,e.getTasks()):e.$message.error(t.data.msg)}).finally(function(){e.editLoading=!1})})})},handleStartJob:function(){var e=this,t=this.currentRow;t?this.$confirm("确认启动该Job吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["sb"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要操作的一行数据!",type:"error"})},handleStopJob:function(){var e=this,t=this.currentRow;t?this.$confirm("确认停止该Job吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["tb"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要操作的一行数据!",type:"error"})},handleReCoveryJob:function(){var e=this,t=this.currentRow;t?this.$confirm("确认重启该Job吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["cb"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要操作的一行数据!",type:"error"})},handlePauseJob:function(){var e=this,t=this.currentRow;t?this.$confirm("确认暂停该Job吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["Z"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要操作的一行数据!",type:"error"})},handleResumeJob:function(){var e=this,t=this.currentRow;t?this.$confirm("确认恢复该Job吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["qb"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要操作的一行数据!",type:"error"})},handleDel:function(){var e=this,t=this.currentRow;t?this.$confirm("确认删除该记录吗?","提示",{type:"warning"}).then(function(){e.listLoading=!0;var a={jobId:t.Id};Object(l["kb"])(a).then(function(t){o["a"].isEmt.format(t)?e.listLoading=!1:(e.listLoading=!1,t.data.success?e.$message({message:t.data.msg,type:"success"}):e.$message({message:t.data.msg,type:"error"}),e.getTasks())})}).catch(function(){}):this.$message({message:"请选择要编辑的一行数据!",type:"error"})},selsChange:function(e){this.sels=e},batchRemove:function(){this.$message({message:"该功能未开放",type:"warning"})},getButtonList2:function(e){var t=this,a=this;e.forEach(function(e){var r=t.$route.path.toLowerCase();e.path&&e.path.toLowerCase()==r?a.buttonList=e.children:e.children&&a.getButtonList(e.children)})}},mounted:function(){this.getTasks();var e=window.localStorage.router?JSON.parse(window.localStorage.router):[];this.buttonList=Object(c["a"])(this.$route.path,e)}},d=u,p=a("2877"),g=Object(p["a"])(d,r,s,!1,null,"3eba0f7a",null);g.options.__file="QuartzJob.vue";t["default"]=g.exports}}]);
|
|
//# sourceMappingURL=chunk-cae4df82.7e75b1da.js.map
|