Crontab组件radio的label类型不一致

This commit is contained in:
gaoxiaoniu 2023-09-01 08:48:07 +08:00
parent 891ed3d055
commit 1ca5dd7e93
7 changed files with 23 additions and 23 deletions

View File

@ -103,25 +103,25 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'day', this.cycleTotal); this.$emit('update', 'day', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'day', this.averageTotal); this.$emit('update', 'day', this.averageTotal);
} }
}, },
// //
workdayChange() { workdayChange() {
if (this.radioValue === '5') { if (this.radioValue === 5) {
this.$emit('update', 'day', this.workdayCheck + 'W'); this.$emit('update', 'day', this.workdayCheck + 'W');
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '7') { if (this.radioValue === 7) {
this.$emit('update', 'day', this.checkboxString); this.$emit('update', 'day', this.checkboxString);
} }
} }

View File

@ -68,19 +68,19 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '2') { if (this.radioValue === 2) {
this.$emit('update', 'hour', this.cycleTotal); this.$emit('update', 'hour', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'hour', this.averageTotal); this.$emit('update', 'hour', this.averageTotal);
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'hour', this.checkboxString); this.$emit('update', 'hour', this.checkboxString);
} }
} }

View File

@ -69,19 +69,19 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '2') { if (this.radioValue === 2) {
this.$emit('update', 'min', this.cycleTotal, 'min'); this.$emit('update', 'min', this.cycleTotal, 'min');
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'min', this.averageTotal, 'min'); this.$emit('update', 'min', this.averageTotal, 'min');
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'min', this.checkboxString, 'min'); this.$emit('update', 'min', this.checkboxString, 'min');
} }
}, },

View File

@ -68,19 +68,19 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '2') { if (this.radioValue === 2) {
this.$emit('update', 'month', this.cycleTotal); this.$emit('update', 'month', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'month', this.averageTotal); this.$emit('update', 'month', this.averageTotal);
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'month', this.checkboxString); this.$emit('update', 'month', this.checkboxString);
} }
} }

View File

@ -68,19 +68,19 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '2') { if (this.radioValue === 2) {
this.$emit('update', 'second', this.cycleTotal); this.$emit('update', 'second', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'second', this.averageTotal); this.$emit('update', 'second', this.averageTotal);
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'second', this.checkboxString); this.$emit('update', 'second', this.checkboxString);
} }
} }

View File

@ -144,25 +144,25 @@ export default {
// //
cycleChange() { cycleChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'week', this.cycleTotal); this.$emit('update', 'week', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'week', this.averageTotal); this.$emit('update', 'week', this.averageTotal);
} }
}, },
// //
weekdayChange() { weekdayChange() {
if (this.radioValue === '5') { if (this.radioValue === 5) {
this.$emit('update', 'week', this.weekday + 'L'); this.$emit('update', 'week', this.weekday + 'L');
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '6') { if (this.radioValue === 6) {
this.$emit('update', 'week', this.checkboxString); this.$emit('update', 'week', this.checkboxString);
} }
}, },

View File

@ -79,19 +79,19 @@ export default {
}, },
// //
cycleChange() { cycleChange() {
if (this.radioValue === '3') { if (this.radioValue === 3) {
this.$emit('update', 'year', this.cycleTotal); this.$emit('update', 'year', this.cycleTotal);
} }
}, },
// //
averageChange() { averageChange() {
if (this.radioValue === '4') { if (this.radioValue === 4) {
this.$emit('update', 'year', this.averageTotal); this.$emit('update', 'year', this.averageTotal);
} }
}, },
// checkbox // checkbox
checkboxChange() { checkboxChange() {
if (this.radioValue === '5') { if (this.radioValue === 5) {
this.$emit('update', 'year', this.checkboxString); this.$emit('update', 'year', this.checkboxString);
} }
} }