作者 RuoYi

cron生成的表达式hour优化

@@ -51,10 +51,16 @@ export default { @@ -51,10 +51,16 @@ export default {
51 methods: { 51 methods: {
52 // 单选按钮值变化时 52 // 单选按钮值变化时
53 radioChange() { 53 radioChange() {
  54 + if (this.cron.min === '*') {
  55 + this.$emit('update', 'min', '0', 'hour');
  56 + }
  57 + if (this.cron.second === '*') {
  58 + this.$emit('update', 'second', '0', 'hour');
  59 + }
54 switch (this.radioValue) { 60 switch (this.radioValue) {
55 case 1: 61 case 1:
56 - this.$emit('update', 'hour', '*')  
57 - break; 62 + this.$emit('update', 'hour', '*')
  63 + break;
58 case 2: 64 case 2:
59 this.$emit('update', 'hour', this.cycleTotal); 65 this.$emit('update', 'hour', this.cycleTotal);
60 break; 66 break;