lepu-test-platform-web/dist/static/js/17.ec280eeaeab92a78bac8.js

2 lines
13 KiB
JavaScript
Raw Normal View History

webpackJsonp([17],{ZRZU:function(e,t){},aoBN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),i=a.n(o),l={data:function(){return{taskOptions:[{id:1,name:"接口任务",value:"InterfaceTestTask"},{id:2,name:"性能任务",value:"PerformanceTestTask"}],detailForm:{},editForm:{},queryInfo:{jobName:"",pageNum:1,pageSize:10},taskList:[],currpage:1,total:0,addDialogVisible:!1,editDialogVisible:!1,detailDialogVisible:!1,jobStatusFlag:!1,addForm:{jobName:"",cronExpression:"",beanClass:"",jobGroup:"",jobStatus:"",createTime:"",createPerson:JSON.parse(localStorage.getItem("userInfo")).nick,comments:""},addFormRules:{jobName:[{required:!0,message:"请输入任务名",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],beanClass:[{required:!0,message:"请选择",trigger:"blur"}],cronExpression:[{required:!0,message:"请输入CRON表达式",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],jobStatus:[{required:!0,message:"请输入任务状态",trigger:"blur"},{min:1,max:10,message:"长度在 1 到 10 个字符",trigger:"blur"}],comments:[{required:!1,message:"请输入备注信息",trigger:"blur"},{min:0,max:200,message:"长度在 0 到 200 个字符",trigger:"blur"}]}}},mounted:function(){},created:function(){this.getTaskList()},methods:{helpCronExpression:function(){this.$notify({title:"https://cron.qqe2.com/",message:'<li><span style="color: green;">每隔5秒钟执行一次</span></li>*/5 * * * * ?\n <li><span style="color: green;">每隔1分钟执行一次</span></li>0 */1 * * * ?\n <li><span style="color: green;">每天23点执行一次</span></li>0 0 23 * * ?\n <li><span style="color: green;">每天凌晨1点执行一次</span></li>0 0 1 * * ?\n <li><span style="color: green;">每月1号凌晨1点执行一次</span></li>0 0 1 1 * ?\n <li><span style="color: green;">每月最后一天23点执行一次</span></li>0 0 23 L * ?\n <li><span style="color: green;">每周星期天凌晨1点执行一次</span></li>0 0 1 ? * L\n <li><span style="color: green;">在26分/29分/33分都执行一次</span></li>0 26,29,33 * * * ?\n <li><span style="color: green;">在0点/13点/18点/21点都执行一次</span></li>0 0 0,13,18,21 * * ?',offset:10,duration:0,dangerouslyUseHTMLString:!0})},changeJobStatus:function(e){var t=this,a={};a.id=e.id,a.jobStatus=e.jobStatus,this.$api.task.updateTaskManagerStatus(i()(a)).then(function(e){t.$notify({type:"success",message:e.data.msg})}).catch(function(){})},selectTaskList:function(){this.queryInfo.pageNum=1,this.total=0,this.getTaskList()},getTaskList:function(){var e=this;this.loading=!0,this.$api.task.queryAllTaskManagerInfo(i()(this.queryInfo)).then(function(t){e.loading=!1,e.taskList=t.data.data,e.total=t.data.count,e.queryInfo.pageNum=1}).catch(function(){e.loading=!1})},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.getTaskList()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.getTaskList()},addDialogClose:function(){this.$refs.addFormRef.resetFields()},addTask:function(){var e=this;this.$refs.addFormRef.validate(function(t){t&&e.$api.task.addTaskManager(i()(e.addForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.addDialogVisible=!1,e.getTaskList()}).catch(function(){e.loading=!1})})},editDialogClose:function(){this.$refs.editFormRef.resetFields()},showEditDialog:function(e){var t=this;this.editDialogVisible=!0,this.$api.task.queryTaskManagerById(e).then(function(e){t.loading=!1,t.editForm=e.data.data}).catch(function(){t.loading=!1})},editTask:function(){var e=this;this.$refs.editFormRef.validate(function(t){t&&(e.editForm.updatePerson=JSON.parse(localStorage.getItem("userInfo")).nick,e.$api.task.updateTaskManager(i()(e.editForm)).then(function(t){e.$notify({message:t.data.msg,type:"success"}),e.editDialogVisible=!1,e.getTaskList()}).catch(function(){e.loading=!1}))})},showDetailDialog:function(e){
//# sourceMappingURL=17.ec280eeaeab92a78bac8.js.map