Commit 202bbe11 authored by shuiluo's avatar shuiluo

feat: 国际化优化

parent 23b4a568
......@@ -35,16 +35,16 @@
</a-radio>
</a-row>
<a-row>
<a-radio value="3">具体秒数(可多选)</a-radio>
<a-radio value="3">{{ $t('corn.specificSeconds') }}</a-radio>
<a-select
style="width: 354px"
size="small"
mode="multiple"
v-model="result.second.specificSpecific"
>
<a-select-option v-for="(val, index) in 60" :key="index" :value="index">{{
index
}}</a-select-option>
<a-select-option v-for="(val, index) in 60" :key="index" :value="index">
{{ index }}
</a-select-option>
</a-select>
</a-row>
<a-row>
......@@ -55,25 +55,23 @@
v-model="result.second.rangeStart"
:min="1"
:max="60"
></a-input-number
>
/>
<a-input-number
size="small"
v-model="result.second.rangeEnd"
:min="0"
:max="59"
></a-input-number
>
/>
</a-radio>
</a-row>
</a-radio-group>
</a-tab-pane>
<a-tab-pane key="2">
<span slot="tab"> <a-icon type="schedule" /></span>
<span slot="tab"> <a-icon type="schedule" />{{ $t('corn.minute') }}</span>
<div class="tabBody">
<a-radio-group v-model="result.minute.cronEvery">
<a-row>
<a-radio value="1">每一分钟</a-radio>
<a-radio value="1">{{ $t('corn.everyMinute') }}</a-radio>
</a-row>
<a-row>
<a-radio value="2">
......@@ -83,19 +81,17 @@
v-model="result.minute.incrementIncrement"
:min="1"
:max="60"
></a-input-number
>分执行 从
/>分执行 从
<a-input-number
size="small"
v-model="result.minute.incrementStart"
:min="0"
:max="59"
></a-input-number
>分开始
/>分开始
</a-radio>
</a-row>
<a-row>
<a-radio value="3">具体分钟数(可多选)</a-radio>
<a-radio value="3">{{ $t('corn.specificMinutes') }}</a-radio>
<a-select
style="width: 340px"
size="small"
......@@ -106,8 +102,9 @@
v-for="(val, index) in Array(60)"
:key="index"
:value="index"
>{{ index }}</a-select-option
>
{{ index }}
</a-select-option>
</a-select>
</a-row>
<a-row>
......@@ -118,15 +115,12 @@
v-model="result.minute.rangeStart"
:min="1"
:max="60"
></a-input-number
>
<a-input-number
/><a-input-number
size="small"
v-model="result.minute.rangeEnd"
:min="0"
:max="59"
></a-input-number
>
/>
</a-radio>
</a-row>
</a-radio-group>
......@@ -159,16 +153,16 @@
</a-radio>
</a-row>
<a-row>
<a-radio class="long" value="3">具体小时数(可多选)</a-radio>
<a-radio class="long" value="3">{{ $t('corn.specificHours') }}</a-radio>
<a-select
style="width: 340px"
size="small"
mode="multiple"
v-model="result.hour.specificSpecific"
>
<a-select-option v-for="(val, index) in Array(24)" :key="index">{{
index
}}</a-select-option>
<a-select-option v-for="(val, index) in Array(24)" :key="index">
{{ index }}
</a-select-option>
</a-select>
</a-row>
<a-row>
......@@ -194,11 +188,11 @@
</div>
</a-tab-pane>
<a-tab-pane key="4">
<span slot="tab"> <a-icon type="schedule" /></span>
<span slot="tab"> <a-icon type="schedule" />{{ $t('corn.day') }}</span>
<div class="tabBody">
<a-radio-group v-model="result.day.cronEvery">
<a-row>
<a-radio value="1">每一天</a-radio>
<a-radio value="1">{{ $t('corn.everyDay') }}</a-radio>
</a-row>
<a-row>
<a-radio value="2">
......@@ -240,7 +234,7 @@
</a-radio>
</a-row>
<a-row>
<a-radio class="long" value="4">具体星期几(可多选)</a-radio>
<a-radio class="long" value="4">{{ $t('corn.specificDayOfWeek') }}</a-radio>
<a-select
style="width: 340px"
size="small"
......@@ -256,7 +250,7 @@
</a-select>
</a-row>
<a-row>
<a-radio class="long" value="5">具体天数(可多选)</a-radio>
<a-radio class="long" value="5">{{ $t('corn.specificDays') }}</a-radio>
<a-select
style="width: 354px"
size="small"
......@@ -267,15 +261,16 @@
v-for="(val, index) in Array(31)"
:key="index"
:value="index + 1"
>{{ index + 1 }}</a-select-option
>
{{ index + 1 }}
</a-select-option>
</a-select>
</a-row>
<a-row>
<a-radio value="6">在这个月的最后一天</a-radio>
<a-radio value="6">{{ $t('corn.lastmonth') }}</a-radio>
</a-row>
<a-row>
<a-radio value="7">在这个月的最后一个工作日</a-radio>
<a-radio value="7">{{ $t('corn.lastWorkingDay') }}</a-radio>
</a-row>
<a-row>
<a-radio value="8">
......@@ -329,8 +324,9 @@
v-for="(val, index) in Array(7)"
:key="index"
:value="index"
>{{ weekDays[index] }}</a-select-option
>
{{ weekDays[index] }}
</a-select-option>
</a-select>
</a-radio>
</a-row>
......@@ -338,11 +334,11 @@
</div>
</a-tab-pane>
<a-tab-pane key="5">
<span slot="tab"> <a-icon type="schedule" /> </span>
<span slot="tab"> <a-icon type="schedule" />{{ $t('corn.month') }} </span>
<div class="tabBody">
<a-radio-group v-model="result.month.cronEvery">
<a-row>
<a-radio value="1">每一月</a-radio>
<a-radio value="1">{{ $t('corn.everyMonth') }}</a-radio>
</a-row>
<a-row>
<a-radio value="2">
......@@ -364,7 +360,7 @@
</a-radio>
</a-row>
<a-row>
<a-radio class="long" value="3">具体月数(可多选)</a-radio>
<a-radio class="long" value="3">{{ $t('corn.specificMonths') }}</a-radio>
<a-select
style="width: 354px"
size="small"
......@@ -376,8 +372,9 @@
v-for="(val, index) in Array(12)"
:key="index"
:value="index + 1"
>{{ index + 1 }}</a-select-option
>
{{ index + 1 }}
</a-select-option>
</a-select>
</a-row>
<a-row>
......@@ -388,26 +385,24 @@
v-model="result.month.rangeStart"
:min="1"
:max="12"
></a-input-number
>
/>
<a-input-number
size="small"
v-model="result.month.rangeEnd"
:min="1"
:max="12"
></a-input-number
>月之间的每个月
/>月之间的每个月
</a-radio>
</a-row>
</a-radio-group>
</div>
</a-tab-pane>
<a-tab-pane key="6">
<span slot="tab"> <a-icon type="schedule" /></span>
<span slot="tab"> <a-icon type="schedule" />{{ $t('corn.year') }}</span>
<div class="tabBody">
<a-radio-group v-model="result.year.cronEvery">
<a-row>
<a-radio value="1">每一年</a-radio>
<a-radio value="1">{{ $t('corn.everyYear') }}</a-radio>
</a-row>
<a-row>
<a-radio value="2">
......@@ -429,7 +424,7 @@
</a-radio>
</a-row>
<a-row>
<a-radio class="long" value="3">具体年份(可多选)</a-radio>
<a-radio class="long" value="3">{{ $('corn.specificYear') }}</a-radio>
<a-select
style="width: 354px"
size="small"
......
......@@ -2,7 +2,24 @@ export default {
'corn.title': ['Cron 控件', 'Cron Component'],
'corn.expression': ['corn表达式', 'Corn Expression'],
'corn.close': ['关闭', 'Close'],
'corn.second': ['', 'second'],
'corn.second': ['', 'Second'],
'corn.everySecond': ['每一秒钟', 'Every Second'],
'corn.everyOther': ['每隔', 'Every Other'],
'corn.specificSeconds': ['具体秒数(可多选)', 'Specific seconds (multiple choices)'],
'corn.everyMinute': ['每一分钟', 'Every Minute'],
'corn.minute': ['', 'Minute'],
'corn.specificMinutes': ['具体分钟数(可多选)', 'Specific minutes (multiple choices)'],
'corn.specificYear': ['具体年份(可多选)', 'Specific year (multiple choices)'],
'corn.everyYear': ['每一年', 'Every Year'],
'corn.year': ['', 'Year'],
'corn.specificMonths': ['具体月数(可多选)', 'Specific months (multiple choices)'],
'corn.everyMonth': ['每一月', 'Every Month'],
'corn.month': ['', 'Month'],
'corn.lastmonth': ['在这个月的最后一天', 'On the last day of the month'],
'corn.lastWorkingDay': ['在这个月的最后一个工作日', 'On the last working day of the month'],
'corn.specificDays': ['具体天数(可多选)', 'Specific days (multiple choices)'],
'corn.specificDayOfWeek': ['具体星期几(可多选)', 'Specific day of the week (multiple choices)'],
'corn.day': ['', 'Day'],
'corn.everyDay': ['每一天', 'Every single day'],
'corn.specificHours': ['具体小时数(可多选)', 'Specific hours (multiple choices)'],
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment