chunk-69f0e8d8.6ff1c08e.js 23 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-69f0e8d8"],{"11d6":function(t,e,n){"use strict";n("c6ba")},"39c9":function(t,e,n){"use strict";n("c9d4")},8593:function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return i})),n.d(e,"ib",(function(){return c})),n.d(e,"m",(function(){return u})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"Q",(function(){return m})),n.d(e,"I",(function(){return f})),n.d(e,"P",(function(){return p})),n.d(e,"N",(function(){return b})),n.d(e,"K",(function(){return h})),n.d(e,"L",(function(){return g})),n.d(e,"M",(function(){return v})),n.d(e,"O",(function(){return _})),n.d(e,"eb",(function(){return y})),n.d(e,"kb",(function(){return k})),n.d(e,"x",(function(){return O})),n.d(e,"c",(function(){return j})),n.d(e,"e",(function(){return w})),n.d(e,"b",(function(){return T})),n.d(e,"d",(function(){return V})),n.d(e,"f",(function(){return x})),n.d(e,"B",(function(){return C})),n.d(e,"z",(function(){return $})),n.d(e,"A",(function(){return S})),n.d(e,"V",(function(){return L})),n.d(e,"U",(function(){return E})),n.d(e,"W",(function(){return G})),n.d(e,"db",(function(){return N})),n.d(e,"o",(function(){return D})),n.d(e,"n",(function(){return P})),n.d(e,"Z",(function(){return z})),n.d(e,"q",(function(){return R})),n.d(e,"y",(function(){return U})),n.d(e,"ab",(function(){return B})),n.d(e,"a",(function(){return I})),n.d(e,"F",(function(){return F})),n.d(e,"hb",(function(){return q})),n.d(e,"J",(function(){return A})),n.d(e,"wb",(function(){return J})),n.d(e,"vb",(function(){return W})),n.d(e,"R",(function(){return H})),n.d(e,"T",(function(){return K})),n.d(e,"G",(function(){return M})),n.d(e,"X",(function(){return Q})),n.d(e,"Y",(function(){return X})),n.d(e,"C",(function(){return Y})),n.d(e,"fb",(function(){return Z})),n.d(e,"D",(function(){return tt})),n.d(e,"gb",(function(){return et})),n.d(e,"p",(function(){return nt})),n.d(e,"H",(function(){return at})),n.d(e,"E",(function(){return rt})),n.d(e,"bb",(function(){return ot})),n.d(e,"qb",(function(){return it})),n.d(e,"sb",(function(){return ct})),n.d(e,"pb",(function(){return ut})),n.d(e,"tb",(function(){return st})),n.d(e,"rb",(function(){return lt})),n.d(e,"r",(function(){return dt})),n.d(e,"ub",(function(){return mt})),n.d(e,"lb",(function(){return ft})),n.d(e,"jb",(function(){return pt})),n.d(e,"mb",(function(){return bt})),n.d(e,"cb",(function(){return ht})),n.d(e,"ob",(function(){return gt})),n.d(e,"S",(function(){return vt})),n.d(e,"nb",(function(){return _t})),n.d(e,"s",(function(){return yt})),n.d(e,"v",(function(){return kt})),n.d(e,"t",(function(){return Ot})),n.d(e,"u",(function(){return jt})),n.d(e,"w",(function(){return wt})),n("99af");var a=n("6b6c");function r(t){return Object(a.a)({url:"setting/config_class",method:"get",params:t})}function o(t){return Object(a.a)({url:"setting/config_class/create",method:"get"})}function i(t){return Object(a.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function c(t){return Object(a.a)({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function u(t){return Object(a.a)({url:"setting/config",method:"get",params:t})}function s(t){return Object(a.a)({url:"setting/config/create",method:"get",params:t})}function l(t){return Object(a.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(a.a)({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function m(t){return Object(a.a)({url:"setting/group",method:"get",params:t})}function f(t){return Object(a.a)({url:t.url,method:t.method,data:t.datas})}function p(t){return Object(a.a)({url:"setting/group/".concat(t),method:"get"})}function b(t,e){return Object(a.a)({url:e,method:"get",params:t})}function h(t,e){return Object(a.a)({url:e,method:"get",params:t})}function g(t,e){return Object(a.a)({url:e,method:"get",params:t})}function v(t,e){return Object(a.a)({url:e,method:"get",params:t})}function _(t){return Object(a.a)({url:t,method:"PUT"})}function y(t){return Object(a.a)({url:"system/log/search_admin",method:"GET"})}function k(t){return Object(a.a)({url:"system/log",method:"GET",params:t})}function O(){return Object(a.a)({url:"system/file",method:"GET"})}function j(){return Object(a.a)({url:"system/backup",method:"GET"})}function w(t){return Object(a.a)({url:"system/backup/read",method:"GET",params:t})}function T(t){return Object(a.a)({url:"system/backup/backup",method:"put",data:t})}function V(t){return Object(a.a)({url:"system/backup/optimize",method:"put",data:t})}function x(t){return Object(a.a)({url:"system/backup/repair",method:"put",data:t})}function C(t){return Object(a.a)({url:"system/backup/file_list",method:"GET"})}function $(t){return Object(a.a)({url:"backup/download",method:"get",params:t})}function S(t){return Object(a.a)({url:"system/backup/import",method:"POST",data:t})}function L(t){return Object(a.a)({url:"system/file/login",method:"POST",data:t})}function E(t){return Object(a.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function G(t){return Object(a.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function N(t){return Object(a.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function D(t){return Object(a.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function P(t){return Object(a.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function z(t){return Object(a.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function R(t){return Object(a.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function U(t){return Object(a.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function B(t){return Object(a.a)({url:"system/replace_site_url",method:"post",data:t})}function I(){return Object(a.a)({url:"auth",method:"get"})}function F(){return Object(a.a)({url:"setting/get_kf_adv",method:"get"})}function q(t){return Object(a.a)({url:"setting/set_kf_adv",method:"post",data:t})}function A(){return Object(a.a)({url:"setting/group_all",method:"get"})}function J(t){return Object(a.a)({url:"system/version_list",method:"get",params:t})}function W(t){return Object(a.a)({url:"system/version_crate/".concat(t),method:"get"})}function H(t){return Object(a.a)({url:"setting/group_data/save_all",method:"POST",data:t})}function K(t){return Object(a.a)({url:"diy/open_adv/add",method:"POST",data:t})}function M(){return Object(a.a)({url:"diy/open_adv/info",method:"get"})}function Q(t){return Object(a.a)({url:"setting/config/get_system/".concat(t),method:"get"})}function X(t){return Object(a.a)({url:"setting/config/save_basics",method:"POST",data:t})}function Y(){return Object(a.a)({url:"setting/get_user_agreement",method:"get"})}function Z(t){return Object(a.a)({url:"setting/set_user_agreement",method:"post",data:t})}function tt(t){return Object(a.a)({url:"setting/get_agreement/".concat(t),method:"get"})}function et(t,e){return Object(a.a)({url:"setting/save_agreement",method:"post",data:t})}function nt(t){return Object(a.a)({url:"crmeb_product",method:"get",params:t})}function at(){return Object(a.a)({url:"setting/get_version",method:"get"})}function rt(){return Object(a.a)({url:"copyright",method:"get"})}function ot(t){return Object(a.a)({url:"copyright",method:"post",data:t})}function it(t){return Object(a.a)({url:"/system/upgrade/list",method:"get",params:t})}function ct(){return Object(a.a)({url:"/system/upgrade_progress",method:"get"})}function ut(){return Object(a.a)({url:"/system/upgrade/agreement",method:"get"})}function st(){return Object(a.a)({url:"/system/upgrade_status",method:"get"})}function lt(t){return Object(a.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function dt(t){return Object(a.a)({url:"/system/upgrade_download/"+t,method:"POST"})}function mt(t){return Object(a.a)({url:"/system/upgradeable/list",method:"get",params:t})}function ft(t){return Object(a.a)({url:"system/crontab/list",params:t})}function pt(t,e){return Object(a.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function bt(t){return Object(a.a)({url:"system/crontab/info/".concat(t)})}function ht(t){return Object(a.a)({url:"system/crontab/save",method:"post",data:t})}function gt(t){return Object(a.a)({url:"system/database/update_mark",method:"post",data:t})}function vt(t,e){return Object(a.a)({url:"system/file/mark/save?fileToken=".concat(t),method:"post",data:e})}function _t(){return Object(a.a)({url:"system/crontab/mark"})}function yt(t){return Object(a.a)({url:"system/event/list",params:t})}function kt(t,e){return Object(a.a)({url:"system/event/set_open/".concat(t,"/").concat(e)})}function Ot(t){return Object(a.a)({url:"system/event/info/".concat(t)})}function jt(t){return Object(a.a)({url:"system/event/save",method:"post",data:t})}function wt(){return Object(a.a)({url:"system/event/mark"})}},b60f:function(t,e,n){"use strict";n.r(e),n("d3b7"),n("25f0"),n("b0c0"),n("99af");var a=n("8593"),r=(n("caad"),n("5530")),o=n("c2c6"),i=n("2f62"),c=(r={props:{currentTab:{type:String,default:"0"}},data:function(){return{modal:!1,typeList:[{name:"每隔N秒",value:1},{name:"每隔N分钟",value:2},{name:"每隔N小时",value:3},{name:"每隔N天",value:4},{name:"每天",value:5},{name:"每星期",value:6},{name:"每月",value:7},{name:"每年",value:8}],task:{},loading:!1,formValidate:{name:"",mark:"customTimer",content:"",is_open:0,type:1,month:1,week:1,day:1,hour:1,minute:1,second:1,customCode:""},trip:"",weekList:[{label:"周一",value:1},{label:"周二",value:2},{label:"周三",value:3},{label:"周四",value:4},{label:"周五",value:5},{label:"周六",value:6},{label:"周日",value:7}],editor:""}},watch:{formValidate:{handler:function(t,e){switch(t.type){case 1:this.trip="每隔".concat(t.second,"秒执行一次");break;case 2:this.trip="每隔".concat(t.minute,"分钟执行一次");break;case 3:this.trip="每隔".concat(t.hour,"小时的").concat(t.minute,"分执行一次");break;case 4:this.trip="每隔".concat(t.day,"天的").concat(t.hour,"时").concat(t.minute,"分执行一次");break;case 5:this.trip="每天".concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");break;case 6:this.trip="每个星期".concat(t.week,"的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");break;case 7:this.trip="每月".concat(t.day,"日的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");break;case 8:this.trip="每年".concat(t.month,"月").concat(t.day,"日的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次")}},immediate:!0,deep:!0}},created:function(){this.timerTask()},methods:Object(r.a)(Object(r.a)({},Object(i.c)("admin/layout",["setCopyrightShow"])),{},{modalOpen:function(){"1"===this.currentTab&&this.initEditor()},initEditor:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";try{var e=this;e.$nextTick((function(){e.editor=o.editor.create(document.getElementById("container"),{value:t,language:"php",automaticLayout:!0,theme:"vs-dark",foldingStrategy:"indentation",overviewRulerBorder:!1,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden"},wordWrap:"on",autoIndent:!0,tabSize:4,autoClosingOvertype:"always",readOnly:!1})}))}catch(t){}},timerTask:function(){var t=this;Object(a.nb)().then((function(e){t.task=e.data}))},initData:function(t){this.formValidate={name:"",mark:"",content:"",is_open:0,type:1,month:1,week:1,day:1,hour:1,minute:1,second:1,customCode:""},this.modal=!1},timerInfo:function(t){var e=this;t?Object(a.mb)(t).then((function(t){e.modal=!0,e.formValidate=t.data,e.initEditor(t.data.customCode||"")})):(this.modal=!0,this.initEditor("<?php\n\n//示例代码\n\n//直接写入数据库\n\\think\\facade\\Db::name('cache')->insert(['key' => 'custom_timer_' . rand(), 'result' => rand(), 'expire_time' => 0]);\n\n//调用系统方法\napp()->make(\\app\\services\\other\\CacheServices::class)->setDbCache('custom_timer_' . rand(), rand());"))},handleSubmit:function(){if("1"===this.currentTab&&(this.formValidate.customCode=this.editor.getValue()),!this.formValidate.mark)return this.$message.error({message:"请选择任务名称",onClose:function(){}});this.saveTimer(this.formValidate)},taskChange:function(t){},saveTimer:function(t){var e=this;Object(a.cb)(t).then((function(t){e.$message.success({message:t.msg}),e.$emit("submitAsk"),e.modal=!1})).catch((function(t){e.$message.error(t.msg)}))}})},i=(n("39c9"),n("2877")),r=Object(i.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{visible:t.modal,title:t.formValidate.id?"编辑定时任务":"添加定时任务",size:"1000px"},on:{"update:visible":function(e){t.modal=e},closed:t.initData}},[t.modal?e("el-form",{ref:"formValidate",staticClass:"pb-20",attrs:{model:t.formValidate,"label-width":"97px","label-colon":""}},["1"===t.currentTab?e("el-form-item",{attrs:{label:"任务名称:"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:24}},[e("el-input",{attrs:{type:"text",placeholder:"请输入任务名称"},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}})],1)],1)],1):t._e(),e("el-form-item",{attrs:{label:"执行周期:",required:""}},[e("el-row",{attrs:{gutter:14}},[e("el-col",{attrs:{span:4}},[e("el-select",{model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.typeList,(function(t){return e("el-option",{key:t.value,attrs:{value:t.value,label:t.name}})})),1)],1),6==t.formValidate.type?e("el-col",{attrs:{span:4}},[e("el-select",{model:{value:t.formValidate.week,callback:function(e){t.$set(t.formValidate,"week",e)},expression:"formValidate.week"}},t._l(t.weekList,(function(n){return e("el-option",t._b({key:n.value},"el-option",n,!1))})),1)],1):t._e(),[8].includes(t.formValidate.type)?e("el-col",{attrs:{span:4}},[e("div",{staticClass:"input-number-wrapper"},[e("el-input-number",{attrs:{controls:!1,max:12,min:1},model:{value:t.formValidate.month,callback:function(e){t.$set(t.formValidate,"month",e)},expression:"formValidate.month"}}),e("span",{staticClass:"suffix"},[t._v("月")])],1)]):t._e(),[4,7,8].includes(t.formValidate.type)?e("el-col",{attrs:{span:4}},[e("div",{staticClass:"input-number-wrapper"},[e("el-input-number",{attrs:{controls:!1,max:4===t.formValidate.type?1e4:31,min:1},model:{value:t.formValidate.day,callback:function(e){t.$set(t.formValidate,"day",e)},expression:"formValidate.day"}}),e("span",{staticClass:"suffix"},[t._v("日")])],1)]):t._e(),[3,4,5,6,7,8].includes(t.formValidate.type)?e("el-col",{attrs:{span:4}},[e("div",{staticClass:"input-number-wrapper"},[e("el-input-number",{attrs:{"controls-position":"right",max:23,min:0},model:{value:t.formValidate.hour,callback:function(e){t.$set(t.formValidate,"hour",e)},expression:"formValidate.hour"}}),e("span",{staticClass:"suffix"},[t._v("时")])],1)]):t._e(),[2,3,4,5,6,7,8].includes(t.formValidate.type)?e("el-col",{attrs:{span:4}},[e("div",{staticClass:"input-number-wrapper"},[e("el-input-number",{attrs:{"controls-position":"right",max:2===t.formValidate.type?36e3:59,min:0},model:{value:t.formValidate.minute,callback:function(e){t.$set(t.formValidate,"minute",e)},expression:"formValidate.minute"}}),e("span",{staticClass:"suffix"},[t._v("分")])],1)]):t._e(),[1,5,6,7].includes(t.formValidate.type)?e("el-col",{attrs:{span:4}},[e("div",{staticClass:"input-number-wrapper"},[e("el-input-number",{attrs:{"controls-position":"right",max:1===t.formValidate.type?36e3:59,min:0},model:{value:t.formValidate.second,callback:function(e){t.$set(t.formValidate,"second",e)},expression:"formValidate.second"}}),e("span",{staticClass:"suffix"},[t._v("秒")])],1)]):t._e()],1),e("el-row",{attrs:{gutter:12}},[e("div",{staticClass:"trip"},[t._v(t._s(t.trip))])])],1),e("el-form-item",{attrs:{label:"任务说明:"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:24}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:5},placeholder:"请输入任务说明"},model:{value:t.formValidate.content,callback:function(e){t.$set(t.formValidate,"content",e)},expression:"formValidate.content"}})],1)],1)],1),"1"===t.currentTab?e("el-form-item",{attrs:{label:"执行代码:"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:24}},[e("div",{ref:"container",staticClass:"monaco-editor",attrs:{id:"container"}})])],1)],1):t._e(),"1"===t.currentTab?e("el-form-item",{attrs:{label:"开发密码:"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:24}},[e("el-input",{attrs:{type:"password",placeholder:"请输入系统开发密码,开发密码在crmeb/config/filesystem.php中修改password"},model:{value:t.formValidate.password,callback:function(e){t.$set(t.formValidate,"password",e)},expression:"formValidate.password"}})],1)],1)],1):t._e(),e("el-form-item",{attrs:{label:"是否开启:"}},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:12}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large"},model:{value:t.formValidate.is_open,callback:function(e){t.$set(t.formValidate,"is_open",e)},expression:"formValidate.is_open"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1)],1)],1):t._e(),e("span",{staticClass:"dialog-footer"},[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){t.modal=!1}}},[t._v("取 消")]),e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v("提 交")])],1)],1)],1)}),[],!1,null,"07ea4dc8",null).exports,n("d708"));r={name:"system_crontab",components:{creatTask:r},data:function(){return{loading:!1,tableData:[],page:1,limit:15,total:1,apiBaseURL:"",headerList:[{label:"系统任务",value:"0"},{label:"自定义任务",value:"1"}],currentTab:"0"}},created:function(){this.apiBaseURL=c.a.apiBaseURL,this.getList()},methods:{taskTrip:function(t){switch(t.type){case 1:return"每隔".concat(t.second,"秒执行一次");case 2:return"每隔".concat(t.minute,"分钟执行一次");case 3:return"每隔".concat(t.hour,"小时执行一次");case 4:return"每隔".concat(t.day,"天执行一次");case 5:return"每天".concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");case 6:return"每个星期".concat(t.week,"的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");case 7:return"每月".concat(t.day,"日的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次");case 8:return"每年".concat(t.month,"月").concat(t.day,"日的").concat(t.hour,"时").concat(t.minute,"分").concat(t.second,"秒执行一次")}},getList:function(){var t=this;this.loading=!0,Object(a.lb)({page:this.page,limit:this.limit,custom:"1"===this.currentTab?1:0}).then((function(e){t.loading=!1;e=e.data;var n=e.count;e=e.list;t.total=n,t.tableData=e})).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},addTask:function(){this.$refs.addTask.timerInfo(0)},edit:function(t){this.$refs.addTask.timerInfo(t)},handleDelete:function(t,e,n){var a=this;e={title:e,num:n,url:"system/crontab/del/".concat(t.id),method:"delete",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.getList()})).catch((function(t){a.$message.error(t.msg)}))},handleChange:function(t){var e=this,n=t.id;t=t.is_open;Object(a.jb)(n,t).then((function(t){e.$message.success(t.msg),e.getList()})).catch((function(t){e.$message.error(t.msg)}))}}},n("11d6"),n=Object(i.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px"}}},[e("div",[e("el-tabs",{on:{"tab-click":t.getList},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,n){return e("el-tab-pane",{key:n,attrs:{label:t.label,name:t.value.toString()}})})),1)],1)]),e("el-card",{attrs:{bordered:!1,shadow:"never"}},[e("el-alert",{attrs:{type:"warning",closable:!1}},[e("template",{slot:"title"},[t._v("\n 启动定时任务两种方式:"),e("br"),t._v("\n 1、使用命令启动:php think timer start\n --d;如果更改了执行周期、编辑是否开启、删除定时任务需要重新启动下定时任务确保生效;"),e("br"),t._v("\n 2、使用接口触发定时任务,建议每分钟调用一次,接口地址 "+t._s(t.apiBaseURL)+"/api/crontab/run "),e("br")])],2),"1"===t.currentTab?e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"mt14",attrs:{type:"primary"},on:{click:t.addTask}},[t._v("添加定时任务")]):t._e(),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"ivu-mt",attrs:{data:t.tableData}},[e("el-table-column",{attrs:{label:"标题","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.name))])]}}])}),e("el-table-column",{attrs:{label:"任务说明","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.content))])]}}])}),e("el-table-column",{attrs:{label:"执行周期","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.taskTrip(n.row)))])]}}])}),e("el-table-column",{attrs:{label:"是否开启","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,size:"large","active-text":"开启","inactive-text":"关闭"},on:{change:function(e){return t.handleChange(n.row)}},model:{value:n.row.is_open,callback:function(e){t.$set(n.row,"is_open",e)},expression:"scope.row.is_open"}})]}}])}),e("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.edit(n.row.id)}}},[t._v("编辑")]),"1"===t.currentTab?e("el-divider",{attrs:{direction:"vertical"}}):t._e(),"1"===t.currentTab?e("a",{directives:[{name:"permission",rawName:"v-permission",value:"seckill",expression:"'seckill'"},{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.handleDelete(n.row,"删除定时任务",n.$index)}}},[t._v("删除")]):t._e()]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.page,limit:t.limit},on:{"update:page":function(e){t.page=e},"update:limit":function(e){t.limit=e},pagination:t.getList}}):t._e()],1),e("creatTask",{ref:"addTask",attrs:{currentTab:t.currentTab},on:{submitAsk:t.getList}})],1)],1)}),[],!1,null,"7dbf5932",null);e.default=n.exports},c6ba:function(t,e,n){},c9d4:function(t,e,n){}}]);