diff --git a/src/components/CronTab/Crontab.vue b/src/components/CronTab/Crontab.vue index 21a4013ee..ff82a5b55 100644 --- a/src/components/CronTab/Crontab.vue +++ b/src/components/CronTab/Crontab.vue @@ -29,9 +29,9 @@ /> - - + @@ -125,7 +125,7 @@ import CrontabMin from './components/Crontab-Min.vue' import CrontabHour from './components/Crontab-Hour.vue' import CrontabDay from './components/Crontab-Day.vue' -import CrontabMouth from './components/Crontab-Mouth.vue' +import CrontabMonth from './components/Crontab-Month.vue' import CrontabWeek from './components/Crontab-Week.vue' import CrontabResult from './components/Crontab-Result.vue' @@ -135,7 +135,7 @@ export default { CrontabMin, CrontabHour, CrontabDay, - CrontabMouth, + CrontabMonth, CrontabWeek, CrontabResult }, @@ -155,7 +155,7 @@ export default { }, data() { return { - tabTitles: [this.$t('common.CronTab.min'), this.$t('common.CronTab.hour'), this.$t('common.CronTab.day'), this.$t('common.CronTab.mouth'), this.$t('common.CronTab.week')], + tabTitles: [this.$t('common.CronTab.min'), this.$t('common.CronTab.hour'), this.$t('common.CronTab.day'), this.$t('common.CronTab.month'), this.$t('common.CronTab.week')], tabActive: 0, myindex: 0, contabValueObj: { @@ -163,7 +163,7 @@ export default { min: '0', hour: '*', day: '*', - mouth: '*', + month: '*', week: '*' // year: "", }, @@ -181,7 +181,7 @@ export default { ' ' + obj.day + ' ' + - obj.mouth + + obj.month + ' ' + obj.week return str @@ -214,7 +214,7 @@ export default { min: arr[0], hour: arr[1], day: arr[2], - mouth: arr[3], + month: arr[3], week: arr[4] } this.contabValueObj = { @@ -244,7 +244,7 @@ export default { }, // 赋值到组件 changeRadio(name, value) { - const arr = ['second', 'min', 'hour', 'mouth'] + const arr = ['second', 'min', 'hour', 'month'] const refName = 'cron' + name let insVlaue @@ -374,7 +374,7 @@ export default { min: '0', hour: '0', day: '*', - mouth: '*', + month: '*', week: '*' // year: "", } diff --git a/src/components/CronTab/components/Crontab-Day.vue b/src/components/CronTab/components/Crontab-Day.vue index ccbf49f50..9a08e94e1 100644 --- a/src/components/CronTab/components/Crontab-Day.vue +++ b/src/components/CronTab/components/Crontab-Day.vue @@ -111,8 +111,6 @@ export default { ('day rachange') if (this.radioValue === 1) { this.$emit('update', 'day', '*', 'day') - // this.$emit('update', 'week', '?', 'day') - // this.$emit('update', 'mouth', '*', 'day') } else { if (this.cron.hour === '*') { this.$emit('update', 'hour', '0', 'day') diff --git a/src/components/CronTab/components/Crontab-Mouth.vue b/src/components/CronTab/components/Crontab-Month.vue similarity index 81% rename from src/components/CronTab/components/Crontab-Mouth.vue rename to src/components/CronTab/components/Crontab-Month.vue index 87d5f4015..cd5104da0 100644 --- a/src/components/CronTab/components/Crontab-Mouth.vue +++ b/src/components/CronTab/components/Crontab-Month.vue @@ -3,7 +3,7 @@ - {{ this.$t('common.CronTab.mouth') }},{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /] + {{ this.$t('common.CronTab.month') }},{{ this.$t('common.CronTab.wildcardsAllowed') }}[, - * /] @@ -11,14 +11,14 @@ {{ this.$t('common.CronTab.from') }} - - {{ this.$t('common.CronTab.mouth') }} + {{ this.$t('common.CronTab.month') }} {{ this.$t('common.CronTab.every') }} - {{ this.$t('common.CronTab.mouth') }}{{ this.$t('common.CronTab.executeOnce') }} + {{ this.$t('common.CronTab.month') }}{{ this.$t('common.CronTab.executeOnce') }} @@ -35,7 +35,7 @@