Skip to content

Commit 02bc981

Browse files
committed
Crontab组件radio的label类型不一致
1 parent 473b2f4 commit 02bc981

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

src/components/Crontab/day.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,25 @@ export default {
103103
},
104104
// 周期两个值变化时
105105
cycleChange() {
106-
if (this.radioValue === '3') {
106+
if (this.radioValue === 3) {
107107
this.$emit('update', 'day', this.cycleTotal);
108108
}
109109
},
110110
// 平均两个值变化时
111111
averageChange() {
112-
if (this.radioValue === '4') {
112+
if (this.radioValue === 4) {
113113
this.$emit('update', 'day', this.averageTotal);
114114
}
115115
},
116116
// 最近工作日值变化时
117117
workdayChange() {
118-
if (this.radioValue === '5') {
118+
if (this.radioValue === 5) {
119119
this.$emit('update', 'day', this.workdayCheck + 'W');
120120
}
121121
},
122122
// checkbox值变化时
123123
checkboxChange() {
124-
if (this.radioValue === '7') {
124+
if (this.radioValue === 7) {
125125
this.$emit('update', 'day', this.checkboxString);
126126
}
127127
}

src/components/Crontab/hour.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ export default {
6868
},
6969
// 周期两个值变化时
7070
cycleChange() {
71-
if (this.radioValue === '2') {
71+
if (this.radioValue === 2) {
7272
this.$emit('update', 'hour', this.cycleTotal);
7373
}
7474
},
7575
// 平均两个值变化时
7676
averageChange() {
77-
if (this.radioValue === '3') {
77+
if (this.radioValue === 3) {
7878
this.$emit('update', 'hour', this.averageTotal);
7979
}
8080
},
8181
// checkbox值变化时
8282
checkboxChange() {
83-
if (this.radioValue === '4') {
83+
if (this.radioValue === 4) {
8484
this.$emit('update', 'hour', this.checkboxString);
8585
}
8686
}

src/components/Crontab/min.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ export default {
6969
},
7070
// 周期两个值变化时
7171
cycleChange() {
72-
if (this.radioValue === '2') {
72+
if (this.radioValue === 2) {
7373
this.$emit('update', 'min', this.cycleTotal, 'min');
7474
}
7575
},
7676
// 平均两个值变化时
7777
averageChange() {
78-
if (this.radioValue === '3') {
78+
if (this.radioValue === 3) {
7979
this.$emit('update', 'min', this.averageTotal, 'min');
8080
}
8181
},
8282
// checkbox值变化时
8383
checkboxChange() {
84-
if (this.radioValue === '4') {
84+
if (this.radioValue === 4) {
8585
this.$emit('update', 'min', this.checkboxString, 'min');
8686
}
8787
},

src/components/Crontab/month.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ export default {
6868
},
6969
// 周期两个值变化时
7070
cycleChange() {
71-
if (this.radioValue === '2') {
71+
if (this.radioValue === 2) {
7272
this.$emit('update', 'month', this.cycleTotal);
7373
}
7474
},
7575
// 平均两个值变化时
7676
averageChange() {
77-
if (this.radioValue === '3') {
77+
if (this.radioValue === 3) {
7878
this.$emit('update', 'month', this.averageTotal);
7979
}
8080
},
8181
// checkbox值变化时
8282
checkboxChange() {
83-
if (this.radioValue === '4') {
83+
if (this.radioValue === 4) {
8484
this.$emit('update', 'month', this.checkboxString);
8585
}
8686
}

src/components/Crontab/second.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ export default {
6868
},
6969
// 周期两个值变化时
7070
cycleChange() {
71-
if (this.radioValue === '2') {
71+
if (this.radioValue === 2) {
7272
this.$emit('update', 'second', this.cycleTotal);
7373
}
7474
},
7575
// 平均两个值变化时
7676
averageChange() {
77-
if (this.radioValue === '3') {
77+
if (this.radioValue === 3) {
7878
this.$emit('update', 'second', this.averageTotal);
7979
}
8080
},
8181
// checkbox值变化时
8282
checkboxChange() {
83-
if (this.radioValue === '4') {
83+
if (this.radioValue === 4) {
8484
this.$emit('update', 'second', this.checkboxString);
8585
}
8686
}

src/components/Crontab/week.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,25 +144,25 @@ export default {
144144
145145
// 周期两个值变化时
146146
cycleChange() {
147-
if (this.radioValue === '3') {
147+
if (this.radioValue === 3) {
148148
this.$emit('update', 'week', this.cycleTotal);
149149
}
150150
},
151151
// 平均两个值变化时
152152
averageChange() {
153-
if (this.radioValue === '4') {
153+
if (this.radioValue === 4) {
154154
this.$emit('update', 'week', this.averageTotal);
155155
}
156156
},
157157
// 最近工作日值变化时
158158
weekdayChange() {
159-
if (this.radioValue === '5') {
159+
if (this.radioValue === 5) {
160160
this.$emit('update', 'week', this.weekday + 'L');
161161
}
162162
},
163163
// checkbox值变化时
164164
checkboxChange() {
165-
if (this.radioValue === '6') {
165+
if (this.radioValue === 6) {
166166
this.$emit('update', 'week', this.checkboxString);
167167
}
168168
},

src/components/Crontab/year.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ export default {
7979
},
8080
// 周期两个值变化时
8181
cycleChange() {
82-
if (this.radioValue === '3') {
82+
if (this.radioValue === 3) {
8383
this.$emit('update', 'year', this.cycleTotal);
8484
}
8585
},
8686
// 平均两个值变化时
8787
averageChange() {
88-
if (this.radioValue === '4') {
88+
if (this.radioValue === 4) {
8989
this.$emit('update', 'year', this.averageTotal);
9090
}
9191
},
9292
// checkbox值变化时
9393
checkboxChange() {
94-
if (this.radioValue === '5') {
94+
if (this.radioValue === 5) {
9595
this.$emit('update', 'year', this.checkboxString);
9696
}
9797
}

0 commit comments

Comments
 (0)