1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d312cce","chunk-2505857e"],{"975e":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-job__schedule"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:e.$t("schedule.beanName"),clearable:""},model:{value:e.dataForm.beanName,callback:function(t){e.$set(e.dataForm,"beanName",t)},expression:"dataForm.beanName"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.getDataList()}}},[e._v(e._s(e.$t("query")))])],1),a("el-form-item",[e.$hasPermission("sys:schedule:save")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addOrUpdateHandle()}}},[e._v(e._s(e.$t("add")))]):e._e()],1),a("el-form-item",[e.$hasPermission("sys:schedule:delete")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.deleteHandle()}}},[e._v(e._s(e.$t("deleteBatch")))]):e._e()],1),a("el-form-item",[e.$hasPermission("sys:schedule:pause")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.pauseHandle()}}},[e._v(e._s(e.$t("schedule.pauseBatch")))]):e._e()],1),a("el-form-item",[e.$hasPermission("sys:schedule:resume")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.resumeHandle()}}},[e._v(e._s(e.$t("schedule.resumeBatch")))]):e._e()],1),a("el-form-item",[e.$hasPermission("sys:schedule:run")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.runHandle()}}},[e._v(e._s(e.$t("schedule.runBatch")))]):e._e()],1),a("el-form-item",[e.$hasPermission("sys:schedule:log")?a("el-button",{attrs:{type:"success"},on:{click:function(t){return e.logHandle()}}},[e._v(e._s(e.$t("schedule.log")))]):e._e()],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.dataListSelectionChangeHandle,"sort-change":e.dataListSortChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),a("el-table-column",{attrs:{prop:"beanName",label:e.$t("schedule.beanName"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"params",label:e.$t("schedule.params"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"cronExpression",label:e.$t("schedule.cronExpression"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"remark",label:e.$t("schedule.remark"),"header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"status",label:e.$t("schedule.status"),sortable:"custom","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.status?a("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.$t("schedule.status1")))]):a("el-tag",{attrs:{size:"small",type:"danger"}},[e._v(e._s(e.$t("schedule.status0")))])]}}])}),a("el-table-column",{attrs:{label:e.$t("handle"),fixed:"right","header-align":"center",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$hasPermission("sys:schedule:update")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.addOrUpdateHandle(t.row.id)}}},[e._v(e._s(e.$t("update")))]):e._e(),e.$hasPermission("sys:schedule:pause")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.pauseHandle(t.row.id)}}},[e._v(e._s(e.$t("schedule.pause")))]):e._e(),e.$hasPermission("sys:schedule:resume")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.resumeHandle(t.row.id)}}},[e._v(e._s(e.$t("schedule.resume")))]):e._e(),e.$hasPermission("sys:schedule:run")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.runHandle(t.row.id)}}},[e._v(e._s(e.$t("schedule.r
|