From 0d1eb82fcac63fc3378f3182bed258f08936c6a7 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Tue, 16 Jan 2024 17:55:42 +0800 Subject: [PATCH] perf: The cron interval execution must be greater than 10 minutes --- src/components/Form/CronTab/Crontab.vue | 16 +++++++++++++--- .../Form/CronTab/components/Crontab-Result.vue | 5 +++++ src/i18n/langs/en.json | 1 + src/i18n/langs/ja.json | 1 + src/i18n/langs/zh.json | 1 + 5 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/Form/CronTab/Crontab.vue b/src/components/Form/CronTab/Crontab.vue index dbd2eef2e..159ed5656 100644 --- a/src/components/Form/CronTab/Crontab.vue +++ b/src/components/Form/CronTab/Crontab.vue @@ -100,7 +100,7 @@
{{ contabValueString }}
- +
0 && crontabDiffMin < 10) { + const msg = this.$tc('common.crontabDiffError') + this.$message.error(msg) + return + } this.$emit('fill', this.contabValueString) this.hidePopup() }, @@ -381,6 +388,9 @@ export default { for (const j in this.contabValueObj) { this.changeRadio(j, this.contabValueObj[j]) } + }, + crontabDiffChangeHandle(diff) { + this.crontabDiff = diff } } } @@ -454,7 +464,7 @@ export default { } .crontab-panel { - >>> .el-input-number { + > > > .el-input-number { margin: 0 5px } } diff --git a/src/components/Form/CronTab/components/Crontab-Result.vue b/src/components/Form/CronTab/components/Crontab-Result.vue index 5a059d2bc..6d1f79f82 100644 --- a/src/components/Form/CronTab/components/Crontab-Result.vue +++ b/src/components/Form/CronTab/components/Crontab-Result.vue @@ -14,6 +14,7 @@