From cfdd6231798c4141126a2fc0df91633f528b8638 Mon Sep 17 00:00:00 2001 From: yjb Date: Sat, 23 Oct 2021 23:25:03 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=87=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E9=9C=80=E8=A6=81=E5=A4=9A=E6=AC=A1?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=9B=9E=E5=A4=8D=E5=88=B0=E5=8E=9F=E5=A7=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81=EF=BC=88=E9=80=89=E6=8B=A9=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?(0=200=200=200=200=201-2=20)=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=82=B9=E5=87=BB3=E6=AC=A1=E9=87=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E6=89=8D=E8=83=BD=E9=87=8D=E7=BD=AE=E5=88=B0(=20*=20*=20*=20*?= =?UTF-8?q?=20=3F)=202=E3=80=81=E5=88=A0=E9=99=A4=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=AF=8F=E4=B8=80=E9=A1=B9=E9=83=BD=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=87=AA=E8=A1=8C=E5=A1=AB=E5=86=99=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E8=87=AA=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/Crontab/day.vue | 336 +++++++++++---------- ruoyi-ui/src/components/Crontab/hour.vue | 234 +++++++------- ruoyi-ui/src/components/Crontab/min.vue | 5 +- ruoyi-ui/src/components/Crontab/month.vue | 6 +- ruoyi-ui/src/components/Crontab/second.vue | 252 ++++++++-------- ruoyi-ui/src/components/Crontab/week.vue | 15 +- 6 files changed, 437 insertions(+), 411 deletions(-) diff --git a/ruoyi-ui/src/components/Crontab/day.vue b/ruoyi-ui/src/components/Crontab/day.vue index d2f67298f..901cef9f9 100644 --- a/ruoyi-ui/src/components/Crontab/day.vue +++ b/ruoyi-ui/src/components/Crontab/day.vue @@ -1,180 +1,184 @@ diff --git a/ruoyi-ui/src/components/Crontab/hour.vue b/ruoyi-ui/src/components/Crontab/hour.vue index 236691d12..c4bf01ca2 100644 --- a/ruoyi-ui/src/components/Crontab/hour.vue +++ b/ruoyi-ui/src/components/Crontab/hour.vue @@ -1,125 +1,129 @@ diff --git a/ruoyi-ui/src/components/Crontab/min.vue b/ruoyi-ui/src/components/Crontab/min.vue index 41d7bb19b..55befd0d3 100644 --- a/ruoyi-ui/src/components/Crontab/min.vue +++ b/ruoyi-ui/src/components/Crontab/min.vue @@ -25,7 +25,7 @@ 指定 - + {{item-1}} @@ -50,6 +50,9 @@ export default { name: 'crontab-min', props: ['check', 'cron'], methods: { + selectChange() { + this.radioValue = 4 + }, init() { this.cycle01 = 1 this.cycle02 = 2 diff --git a/ruoyi-ui/src/components/Crontab/month.vue b/ruoyi-ui/src/components/Crontab/month.vue index 1ebcb3b97..1f5f64110 100644 --- a/ruoyi-ui/src/components/Crontab/month.vue +++ b/ruoyi-ui/src/components/Crontab/month.vue @@ -25,7 +25,7 @@ 指定 - + {{item}} @@ -48,7 +48,9 @@ export default { }, name: 'crontab-month', props: ['check', 'cron'], - methods: { + methods: { selectChange() { + this.radioValue = 4 + }, init() { this.cycle01 = 1 this.cycle02 = 2 diff --git a/ruoyi-ui/src/components/Crontab/second.vue b/ruoyi-ui/src/components/Crontab/second.vue index 60bda69b2..b001eaeb9 100644 --- a/ruoyi-ui/src/components/Crontab/second.vue +++ b/ruoyi-ui/src/components/Crontab/second.vue @@ -1,54 +1,62 @@ diff --git a/ruoyi-ui/src/components/Crontab/week.vue b/ruoyi-ui/src/components/Crontab/week.vue index fda5fa4d8..f42fb60ad 100644 --- a/ruoyi-ui/src/components/Crontab/week.vue +++ b/ruoyi-ui/src/components/Crontab/week.vue @@ -40,7 +40,8 @@ 指定 - + {{ item }} @@ -68,11 +69,16 @@ export default { name: 'crontab-week', props: ['check', 'cron'], methods: { - checkChange(data) { + selectChange(data) { + console.log(data); + this.radioValue = 6 this.checkboxList = [] + this.checkboxDescribeList = [] data.forEach(value => { - this.weekList.find((item, index) => { - if (item === value) { + this.weekList.forEach((item,index) => { + if (index+1 === value) { + console.log((item)); + this.checkboxDescribeList.push(this.weekList[index]) this.checkboxList.push(index + 1) } }) @@ -90,7 +96,6 @@ export default { // 单选按钮值变化时 radioChange() { - switch (this.radioValue) { case 1: this.$emit('update', 'week', '*');