Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
202bbe11
Commit
202bbe11
authored
Aug 03, 2021
by
shuiluo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 国际化优化
parent
23b4a568
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
45 deletions
+57
-45
src/components/Acron/AntCron.vue
src/components/Acron/AntCron.vue
+39
-44
src/local/acron.js
src/local/acron.js
+18
-1
No files found.
src/components/Acron/AntCron.vue
View file @
202bbe11
...
...
@@ -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"
...
...
src/local/acron.js
View file @
202bbe11
...
...
@@ -2,7 +2,24 @@ export default {
'
corn.title
'
:
[
'
Cron 控件
'
,
'
Cron Component
'
],
'
corn.expression
'
:
[
'
corn表达式
'
,
'
Corn Expression
'
],
'
corn.close
'
:
[
'
关闭
'
,
'
Close
'
],
'
corn.second
'
:
[
'
秒
'
,
'
s
econd
'
],
'
corn.second
'
:
[
'
秒
'
,
'
S
econd
'
],
'
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)
'
],
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment