| | |
| | | // 单选按钮值变化时 |
| | | radioChange() { |
| | | ('day rachange'); |
| | | if (this.radioValue === 1) { |
| | | this.$emit('update', 'day', '*', 'day'); |
| | | this.$emit('update', 'week', '?', 'day'); |
| | | this.$emit('update', 'month', '*', 'day'); |
| | | } else { |
| | | if (this.cron.hour === '*') { |
| | | this.$emit('update', 'hour', '0', 'day'); |
| | | } |
| | | if (this.cron.min === '*') { |
| | | this.$emit('update', 'min', '0', 'day'); |
| | | } |
| | | if (this.cron.second === '*') { |
| | | this.$emit('update', 'second', '0', 'day'); |
| | | } |
| | | if (this.radioValue !== 2 && this.cron.week !== '?') { |
| | | this.$emit('update', 'week', '?', 'day') |
| | | } |
| | | |
| | | switch (this.radioValue) { |
| | | case 1: |
| | | this.$emit('update', 'day', '*'); |
| | | break; |
| | | case 2: |
| | | this.$emit('update', 'day', '?'); |
| | | break; |