fix schedule

This commit is contained in:
chenjianxing 2020-06-24 13:48:56 +08:00
parent b94eb966f6
commit a5bfd41bee
2 changed files with 3 additions and 1 deletions

View File

@ -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 = [];
}
}

View File

@ -36,6 +36,7 @@ export default {
this.isShow = false;
if (!this.ex) {
this.resultList = [];
this.$emit("resultListChange", this.resultList);
return;
}
// [0123456]