fuzui
2021-11-30 ca285f5e53aea0dae4fb1db8e46a0c0cb70afa29
ruoyi-ui/src/components/Crontab/day.vue
@@ -72,23 +72,14 @@
      // 单选按钮值变化时
      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;