Commit 1ca5dd7e9364a0c5ca0f891194477e8cd3906620
1 parent
891ed3d0
Crontab组件radio的label类型不一致
Showing
7 changed files
with
23 additions
and
23 deletions
yudao-ui-admin/src/components/Crontab/day.vue
| @@ -103,25 +103,25 @@ export default { | @@ -103,25 +103,25 @@ export default { | ||
| 103 | }, | 103 | }, |
| 104 | // 周期两个值变化时 | 104 | // 周期两个值变化时 |
| 105 | cycleChange() { | 105 | cycleChange() { |
| 106 | - if (this.radioValue === '3') { | 106 | + if (this.radioValue === 3) { |
| 107 | this.$emit('update', 'day', this.cycleTotal); | 107 | this.$emit('update', 'day', this.cycleTotal); |
| 108 | } | 108 | } |
| 109 | }, | 109 | }, |
| 110 | // 平均两个值变化时 | 110 | // 平均两个值变化时 |
| 111 | averageChange() { | 111 | averageChange() { |
| 112 | - if (this.radioValue === '4') { | 112 | + if (this.radioValue === 4) { |
| 113 | this.$emit('update', 'day', this.averageTotal); | 113 | this.$emit('update', 'day', this.averageTotal); |
| 114 | } | 114 | } |
| 115 | }, | 115 | }, |
| 116 | // 最近工作日值变化时 | 116 | // 最近工作日值变化时 |
| 117 | workdayChange() { | 117 | workdayChange() { |
| 118 | - if (this.radioValue === '5') { | 118 | + if (this.radioValue === 5) { |
| 119 | this.$emit('update', 'day', this.workdayCheck + 'W'); | 119 | this.$emit('update', 'day', this.workdayCheck + 'W'); |
| 120 | } | 120 | } |
| 121 | }, | 121 | }, |
| 122 | // checkbox值变化时 | 122 | // checkbox值变化时 |
| 123 | checkboxChange() { | 123 | checkboxChange() { |
| 124 | - if (this.radioValue === '7') { | 124 | + if (this.radioValue === 7) { |
| 125 | this.$emit('update', 'day', this.checkboxString); | 125 | this.$emit('update', 'day', this.checkboxString); |
| 126 | } | 126 | } |
| 127 | } | 127 | } |
yudao-ui-admin/src/components/Crontab/hour.vue
| @@ -68,19 +68,19 @@ export default { | @@ -68,19 +68,19 @@ export default { | ||
| 68 | }, | 68 | }, |
| 69 | // 周期两个值变化时 | 69 | // 周期两个值变化时 |
| 70 | cycleChange() { | 70 | cycleChange() { |
| 71 | - if (this.radioValue === '2') { | 71 | + if (this.radioValue === 2) { |
| 72 | this.$emit('update', 'hour', this.cycleTotal); | 72 | this.$emit('update', 'hour', this.cycleTotal); |
| 73 | } | 73 | } |
| 74 | }, | 74 | }, |
| 75 | // 平均两个值变化时 | 75 | // 平均两个值变化时 |
| 76 | averageChange() { | 76 | averageChange() { |
| 77 | - if (this.radioValue === '3') { | 77 | + if (this.radioValue === 3) { |
| 78 | this.$emit('update', 'hour', this.averageTotal); | 78 | this.$emit('update', 'hour', this.averageTotal); |
| 79 | } | 79 | } |
| 80 | }, | 80 | }, |
| 81 | // checkbox值变化时 | 81 | // checkbox值变化时 |
| 82 | checkboxChange() { | 82 | checkboxChange() { |
| 83 | - if (this.radioValue === '4') { | 83 | + if (this.radioValue === 4) { |
| 84 | this.$emit('update', 'hour', this.checkboxString); | 84 | this.$emit('update', 'hour', this.checkboxString); |
| 85 | } | 85 | } |
| 86 | } | 86 | } |
yudao-ui-admin/src/components/Crontab/min.vue
| @@ -69,19 +69,19 @@ export default { | @@ -69,19 +69,19 @@ export default { | ||
| 69 | }, | 69 | }, |
| 70 | // 周期两个值变化时 | 70 | // 周期两个值变化时 |
| 71 | cycleChange() { | 71 | cycleChange() { |
| 72 | - if (this.radioValue === '2') { | 72 | + if (this.radioValue === 2) { |
| 73 | this.$emit('update', 'min', this.cycleTotal, 'min'); | 73 | this.$emit('update', 'min', this.cycleTotal, 'min'); |
| 74 | } | 74 | } |
| 75 | }, | 75 | }, |
| 76 | // 平均两个值变化时 | 76 | // 平均两个值变化时 |
| 77 | averageChange() { | 77 | averageChange() { |
| 78 | - if (this.radioValue === '3') { | 78 | + if (this.radioValue === 3) { |
| 79 | this.$emit('update', 'min', this.averageTotal, 'min'); | 79 | this.$emit('update', 'min', this.averageTotal, 'min'); |
| 80 | } | 80 | } |
| 81 | }, | 81 | }, |
| 82 | // checkbox值变化时 | 82 | // checkbox值变化时 |
| 83 | checkboxChange() { | 83 | checkboxChange() { |
| 84 | - if (this.radioValue === '4') { | 84 | + if (this.radioValue === 4) { |
| 85 | this.$emit('update', 'min', this.checkboxString, 'min'); | 85 | this.$emit('update', 'min', this.checkboxString, 'min'); |
| 86 | } | 86 | } |
| 87 | }, | 87 | }, |
yudao-ui-admin/src/components/Crontab/month.vue
| @@ -68,19 +68,19 @@ export default { | @@ -68,19 +68,19 @@ export default { | ||
| 68 | }, | 68 | }, |
| 69 | // 周期两个值变化时 | 69 | // 周期两个值变化时 |
| 70 | cycleChange() { | 70 | cycleChange() { |
| 71 | - if (this.radioValue === '2') { | 71 | + if (this.radioValue === 2) { |
| 72 | this.$emit('update', 'month', this.cycleTotal); | 72 | this.$emit('update', 'month', this.cycleTotal); |
| 73 | } | 73 | } |
| 74 | }, | 74 | }, |
| 75 | // 平均两个值变化时 | 75 | // 平均两个值变化时 |
| 76 | averageChange() { | 76 | averageChange() { |
| 77 | - if (this.radioValue === '3') { | 77 | + if (this.radioValue === 3) { |
| 78 | this.$emit('update', 'month', this.averageTotal); | 78 | this.$emit('update', 'month', this.averageTotal); |
| 79 | } | 79 | } |
| 80 | }, | 80 | }, |
| 81 | // checkbox值变化时 | 81 | // checkbox值变化时 |
| 82 | checkboxChange() { | 82 | checkboxChange() { |
| 83 | - if (this.radioValue === '4') { | 83 | + if (this.radioValue === 4) { |
| 84 | this.$emit('update', 'month', this.checkboxString); | 84 | this.$emit('update', 'month', this.checkboxString); |
| 85 | } | 85 | } |
| 86 | } | 86 | } |
yudao-ui-admin/src/components/Crontab/second.vue
| @@ -68,19 +68,19 @@ export default { | @@ -68,19 +68,19 @@ export default { | ||
| 68 | }, | 68 | }, |
| 69 | // 周期两个值变化时 | 69 | // 周期两个值变化时 |
| 70 | cycleChange() { | 70 | cycleChange() { |
| 71 | - if (this.radioValue === '2') { | 71 | + if (this.radioValue === 2) { |
| 72 | this.$emit('update', 'second', this.cycleTotal); | 72 | this.$emit('update', 'second', this.cycleTotal); |
| 73 | } | 73 | } |
| 74 | }, | 74 | }, |
| 75 | // 平均两个值变化时 | 75 | // 平均两个值变化时 |
| 76 | averageChange() { | 76 | averageChange() { |
| 77 | - if (this.radioValue === '3') { | 77 | + if (this.radioValue === 3) { |
| 78 | this.$emit('update', 'second', this.averageTotal); | 78 | this.$emit('update', 'second', this.averageTotal); |
| 79 | } | 79 | } |
| 80 | }, | 80 | }, |
| 81 | // checkbox值变化时 | 81 | // checkbox值变化时 |
| 82 | checkboxChange() { | 82 | checkboxChange() { |
| 83 | - if (this.radioValue === '4') { | 83 | + if (this.radioValue === 4) { |
| 84 | this.$emit('update', 'second', this.checkboxString); | 84 | this.$emit('update', 'second', this.checkboxString); |
| 85 | } | 85 | } |
| 86 | } | 86 | } |
yudao-ui-admin/src/components/Crontab/week.vue
| @@ -144,25 +144,25 @@ export default { | @@ -144,25 +144,25 @@ export default { | ||
| 144 | 144 | ||
| 145 | // 周期两个值变化时 | 145 | // 周期两个值变化时 |
| 146 | cycleChange() { | 146 | cycleChange() { |
| 147 | - if (this.radioValue === '3') { | 147 | + if (this.radioValue === 3) { |
| 148 | this.$emit('update', 'week', this.cycleTotal); | 148 | this.$emit('update', 'week', this.cycleTotal); |
| 149 | } | 149 | } |
| 150 | }, | 150 | }, |
| 151 | // 平均两个值变化时 | 151 | // 平均两个值变化时 |
| 152 | averageChange() { | 152 | averageChange() { |
| 153 | - if (this.radioValue === '4') { | 153 | + if (this.radioValue === 4) { |
| 154 | this.$emit('update', 'week', this.averageTotal); | 154 | this.$emit('update', 'week', this.averageTotal); |
| 155 | } | 155 | } |
| 156 | }, | 156 | }, |
| 157 | // 最近工作日值变化时 | 157 | // 最近工作日值变化时 |
| 158 | weekdayChange() { | 158 | weekdayChange() { |
| 159 | - if (this.radioValue === '5') { | 159 | + if (this.radioValue === 5) { |
| 160 | this.$emit('update', 'week', this.weekday + 'L'); | 160 | this.$emit('update', 'week', this.weekday + 'L'); |
| 161 | } | 161 | } |
| 162 | }, | 162 | }, |
| 163 | // checkbox值变化时 | 163 | // checkbox值变化时 |
| 164 | checkboxChange() { | 164 | checkboxChange() { |
| 165 | - if (this.radioValue === '6') { | 165 | + if (this.radioValue === 6) { |
| 166 | this.$emit('update', 'week', this.checkboxString); | 166 | this.$emit('update', 'week', this.checkboxString); |
| 167 | } | 167 | } |
| 168 | }, | 168 | }, |
yudao-ui-admin/src/components/Crontab/year.vue
| @@ -79,19 +79,19 @@ export default { | @@ -79,19 +79,19 @@ export default { | ||
| 79 | }, | 79 | }, |
| 80 | // 周期两个值变化时 | 80 | // 周期两个值变化时 |
| 81 | cycleChange() { | 81 | cycleChange() { |
| 82 | - if (this.radioValue === '3') { | 82 | + if (this.radioValue === 3) { |
| 83 | this.$emit('update', 'year', this.cycleTotal); | 83 | this.$emit('update', 'year', this.cycleTotal); |
| 84 | } | 84 | } |
| 85 | }, | 85 | }, |
| 86 | // 平均两个值变化时 | 86 | // 平均两个值变化时 |
| 87 | averageChange() { | 87 | averageChange() { |
| 88 | - if (this.radioValue === '4') { | 88 | + if (this.radioValue === 4) { |
| 89 | this.$emit('update', 'year', this.averageTotal); | 89 | this.$emit('update', 'year', this.averageTotal); |
| 90 | } | 90 | } |
| 91 | }, | 91 | }, |
| 92 | // checkbox值变化时 | 92 | // checkbox值变化时 |
| 93 | checkboxChange() { | 93 | checkboxChange() { |
| 94 | - if (this.radioValue === '5') { | 94 | + if (this.radioValue === 5) { |
| 95 | this.$emit('update', 'year', this.checkboxString); | 95 | this.$emit('update', 'year', this.checkboxString); |
| 96 | } | 96 | } |
| 97 | } | 97 | } |