From 1ca5dd7e9364a0c5ca0f891194477e8cd3906620 Mon Sep 17 00:00:00 2001 From: gaoxiaoniu Date: Fri, 1 Sep 2023 08:48:07 +0800 Subject: [PATCH] =?UTF-8?q?Crontab=E7=BB=84=E4=BB=B6radio=E7=9A=84label?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 d6c74fade5..133847369b 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 3b890273b6..2f5dcd7ad4 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 71a1fc17b4..6e8f5ae5f3 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 2539935e07..e976ee507c 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 0b5df29c7e..36f4eab2af 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 5ebf0de5dc..a62390ca99 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 2c8eec327f..5111b9f695 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); } }