From 1ca5dd7e9364a0c5ca0f891194477e8cd3906620 Mon Sep 17 00:00:00 2001 From: gaoxiaoniu Date: Fri, 1 Sep 2023 08:48:07 +0800 Subject: [PATCH] Crontab组件radio的label类型不一致 --- yudao-ui-admin/src/components/Crontab/day.vue | 8 ++++---- yudao-ui-admin/src/components/Crontab/hour.vue | 6 +++--- yudao-ui-admin/src/components/Crontab/min.vue | 6 +++--- yudao-ui-admin/src/components/Crontab/month.vue | 6 +++--- yudao-ui-admin/src/components/Crontab/second.vue | 6 +++--- yudao-ui-admin/src/components/Crontab/week.vue | 8 ++++---- yudao-ui-admin/src/components/Crontab/year.vue | 6 +++--- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/yudao-ui-admin/src/components/Crontab/day.vue b/yudao-ui-admin/src/components/Crontab/day.vue index d6c74fa..1338473 100644 --- a/yudao-ui-admin/src/components/Crontab/day.vue +++ b/yudao-ui-admin/src/components/Crontab/day.vue @@ -103,25 +103,25 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'day', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'day', this.averageTotal); } }, // 最近工作日值变化时 workdayChange() { - if (this.radioValue === '5') { + if (this.radioValue === 5) { this.$emit('update', 'day', this.workdayCheck + 'W'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '7') { + if (this.radioValue === 7) { this.$emit('update', 'day', this.checkboxString); } } diff --git a/yudao-ui-admin/src/components/Crontab/hour.vue b/yudao-ui-admin/src/components/Crontab/hour.vue index 3b89027..2f5dcd7 100644 --- a/yudao-ui-admin/src/components/Crontab/hour.vue +++ b/yudao-ui-admin/src/components/Crontab/hour.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '2') { + if (this.radioValue === 2) { this.$emit('update', 'hour', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'hour', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'hour', this.checkboxString); } } diff --git a/yudao-ui-admin/src/components/Crontab/min.vue b/yudao-ui-admin/src/components/Crontab/min.vue index 71a1fc1..6e8f5ae 100644 --- a/yudao-ui-admin/src/components/Crontab/min.vue +++ b/yudao-ui-admin/src/components/Crontab/min.vue @@ -69,19 +69,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '2') { + if (this.radioValue === 2) { this.$emit('update', 'min', this.cycleTotal, 'min'); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'min', this.averageTotal, 'min'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'min', this.checkboxString, 'min'); } }, diff --git a/yudao-ui-admin/src/components/Crontab/month.vue b/yudao-ui-admin/src/components/Crontab/month.vue index 2539935..e976ee5 100644 --- a/yudao-ui-admin/src/components/Crontab/month.vue +++ b/yudao-ui-admin/src/components/Crontab/month.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '2') { + if (this.radioValue === 2) { this.$emit('update', 'month', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'month', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'month', this.checkboxString); } } diff --git a/yudao-ui-admin/src/components/Crontab/second.vue b/yudao-ui-admin/src/components/Crontab/second.vue index 0b5df29..36f4eab 100644 --- a/yudao-ui-admin/src/components/Crontab/second.vue +++ b/yudao-ui-admin/src/components/Crontab/second.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '2') { + if (this.radioValue === 2) { this.$emit('update', 'second', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'second', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'second', this.checkboxString); } } diff --git a/yudao-ui-admin/src/components/Crontab/week.vue b/yudao-ui-admin/src/components/Crontab/week.vue index 5ebf0de..a62390c 100644 --- a/yudao-ui-admin/src/components/Crontab/week.vue +++ b/yudao-ui-admin/src/components/Crontab/week.vue @@ -144,25 +144,25 @@ export default { // 周期两个值变化时 cycleChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'week', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'week', this.averageTotal); } }, // 最近工作日值变化时 weekdayChange() { - if (this.radioValue === '5') { + if (this.radioValue === 5) { this.$emit('update', 'week', this.weekday + 'L'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '6') { + if (this.radioValue === 6) { this.$emit('update', 'week', this.checkboxString); } }, diff --git a/yudao-ui-admin/src/components/Crontab/year.vue b/yudao-ui-admin/src/components/Crontab/year.vue index 2c8eec3..5111b9f 100644 --- a/yudao-ui-admin/src/components/Crontab/year.vue +++ b/yudao-ui-admin/src/components/Crontab/year.vue @@ -79,19 +79,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue === '3') { + if (this.radioValue === 3) { this.$emit('update', 'year', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue === '4') { + if (this.radioValue === 4) { this.$emit('update', 'year', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue === '5') { + if (this.radioValue === 5) { this.$emit('update', 'year', this.checkboxString); } } -- libgit2 0.21.4