fix schedule
This commit is contained in:
parent
b94eb966f6
commit
a5bfd41bee
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-dialog width="30%" class="schedule-edit" :title="'编辑定时任务'" :visible.sync="dialogVisible" @close="close">
|
||||
<div id="app">
|
||||
<el-form :model="form" :rules="rules" ref="from">
|
||||
<el-form :model="schedule" :rules="rules" ref="from">
|
||||
<el-form-item
|
||||
:placeholder="'请输入 Cron 表达式'"
|
||||
prop="cronValue">
|
||||
|
@ -81,6 +81,7 @@
|
|||
},
|
||||
close() {
|
||||
this.$refs['from'].resetFields();
|
||||
this.form.cronValue = this.schedule.value;
|
||||
this.$refs.crontabResult.resultList = [];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ export default {
|
|||
this.isShow = false;
|
||||
if (!this.ex) {
|
||||
this.resultList = [];
|
||||
this.$emit("resultListChange", this.resultList);
|
||||
return;
|
||||
}
|
||||
// 获取规则数组[0秒、1分、2时、3日、4月、5星期、6年]
|
||||
|
|
Loading…
Reference in New Issue