| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7ee39efe"],{"469e":function(t,e,a){"use strict";a.d(e,"l",(function(){return n})),a.d(e,"h",(function(){return r})),a.d(e,"f",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return l})),a.d(e,"d",(function(){return c})),a.d(e,"b",(function(){return d})),a.d(e,"e",(function(){return u})),a.d(e,"g",(function(){return p})),a.d(e,"k",(function(){return m})),a.d(e,"j",(function(){return b})),a.d(e,"i",(function(){return g}));var s=a("f175");const n=t=>s.a.get("/settings.system.log/lists",{params:t}),r=()=>s.a.post("/settings.system.cache/clear"),i=t=>s.a.get("/crontab.crontab/lists",{params:t}),o=t=>s.a.post("/crontab.crontab/add",t),l=t=>s.a.get("/crontab.crontab/detail",{params:t}),c=t=>s.a.post("/crontab.crontab/edit",t),d=t=>s.a.post("/crontab.crontab/delete",t),u=t=>s.a.get("/crontab.crontab/expression",{params:t}),p=t=>s.a.post("/crontab.crontab/operate",t),m=t=>s.a.get("/settings.system.upgrade/lists",{params:t}),b=t=>s.a.post("/settings.system.upgrade/downloadPkg",t),g=t=>s.a.post("/settings.system.upgrade/upgrade",t)},"8c8f":function(t,e,a){"use strict";a.r(e);a("14d9");var s=a("9ab4"),n=a("469e"),r=a("1b40"),i=a("3c50"),o=a("6ddb"),l=a("4201"),c=a("0a6d");let d=class extends r.e{constructor(){super(...arguments),this.pager=new o.a}getList(){this.pager.request({callback:n.f,params:{}}).catch(()=>{this.$message.error("数据请求失败,刷新重载!")})}onStop(t){Object(n.g)({id:t.id,operate:1==t.status?"stop":"start"}).then(()=>{this.getList()})}onDel(t){Object(n.b)({id:t}).then(()=>{this.getList(),this.$message.success("删除成功!")}).catch(()=>{this.$message.error("删除失败!")})}goTaskAdd(){this.$router.push({path:"/setting/task_edit",query:{mode:l.g.ADD}})}goTaskEdit(t){this.$router.push({path:"/setting/task_edit",query:{id:t,mode:l.g.EDIT}})}created(){this.getList()}};d=Object(s.a)([Object(r.a)({components:{LsDialog:c.a,LsPagination:i.a}})],d);var u=d,p=a("2877"),m=Object(p.a)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"ls-card"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.goTaskAdd}},[t._v("添加定时任务")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],ref:"paneTable",staticClass:"m-t-24",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[a("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"100"}}),a("el-table-column",{attrs:{prop:"type_desc",label:"类型","min-width":"80"}}),a("el-table-column",{attrs:{prop:"command",label:"命令","min-width":"120"}}),a("el-table-column",{attrs:{prop:"params",label:"参数","min-width":"80"}}),a("el-table-column",{attrs:{prop:"expression",label:"规则","min-width":"160"}}),a("el-table-column",{attrs:{prop:"status_desc",label:"状态","min-width":"80"}}),a("el-table-column",{attrs:{prop:"error",label:"错误原因","min-width":"80"}}),a("el-table-column",{attrs:{prop:"last_time",label:"最后执行时间","min-width":"180"}}),a("el-table-column",{attrs:{prop:"time",label:"时长","min-width":"110"}}),a("el-table-column",{attrs:{prop:"max_time",label:"最大时长","min-width":"110"}}),a("el-table-column",{attrs:{label:"操作","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.goTaskEdit(e.row.id)}}},[t._v("编辑")]),a("ls-dialog",{staticClass:"m-l-10 m-t-20 m-b-20 inline",attrs:{content:"确定要停删除个定时任务吗?请谨慎操作"},on:{confirm:function(a){return t.onDel(e.row.id)}}},[a("el-button",{attrs:{slot:"trigger",type:"text",size:"mini"},slot:"trigger"},[t._v("删除 ")])],1)]}}])})],1),a("div",{staticClass:"m-t-24 flex row-right"},[a("ls-pagination",{on:{change:t.getList},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)])}),[],!1,null,null,null);e.default=m.exports}}]);
|