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', '*');