Browse Source

cron生成的表达式hour优化

master
RuoYi 1 year ago
parent
commit
5b98495067
  1. 10
      ruoyi-ui/src/components/Crontab/hour.vue

10
ruoyi-ui/src/components/Crontab/hour.vue

@ -51,10 +51,16 @@ export default {
methods: { methods: {
// //
radioChange() { radioChange() {
if (this.cron.min === '*') {
this.$emit('update', 'min', '0', 'hour');
}
if (this.cron.second === '*') {
this.$emit('update', 'second', '0', 'hour');
}
switch (this.radioValue) { switch (this.radioValue) {
case 1: case 1:
this.$emit('update', 'hour', '*') this.$emit('update', 'hour', '*')
break; break;
case 2: case 2:
this.$emit('update', 'hour', this.cycleTotal); this.$emit('update', 'hour', this.cycleTotal);
break; break;

Loading…
Cancel
Save