Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
844f51c5
提交
844f51c5
authored
1月 19, 2018
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
任务操作界面,界面操作完整国际化迁移
上级
8e0f6864
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
107 行增加
和
29 行删除
+107
-29
message.properties
xxl-job-admin/src/main/resources/i18n/message.properties
+78
-1
jobinfo.index.ftl
...rc/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
+0
-0
index.js
xxl-job-admin/src/main/webapp/static/js/index.js
+29
-28
jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
+0
-0
没有找到文件。
xxl-job-admin/src/main/resources/i18n/message.properties
浏览文件 @
844f51c5
...
@@ -6,6 +6,49 @@ admin_version=1.9.1(快照版本)
...
@@ -6,6 +6,49 @@ admin_version=1.9.1(快照版本)
system_tips
=
系统提示
system_tips
=
系统提示
system_ok
=
确定
system_ok
=
确定
system_close
=
关闭
system_close
=
关闭
system_save
=
保存
system_cancel
=
取消
system_search
=
搜索
system_status
=
状态
system_opt
=
操作
system_please_input
=
请输入
system_success
=
成功
system_fail
=
失败
system_add_suc
=
新增成功
system_add_fail
=
新增失败
system_update_suc
=
更新成功
system_update_fail
=
更新失败
## daterangepicker
daterangepicker_ranges_today
=
今日
daterangepicker_ranges_yesterday
=
昨日
daterangepicker_ranges_this_month
=
本月
daterangepicker_ranges_last_month
=
上个月
daterangepicker_ranges_recent_week
=
最近1周
daterangepicker_ranges_recent_month
=
最近1月
daterangepicker_custom_name
=
自定义
daterangepicker_custom_starttime
=
起始时间
daterangepicker_custom_endtime
=
结束时间
daterangepicker_custom_daysofweek
=
日,一,二,三,四,五,六
daterangepicker_custom_monthnames
=
一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月
## dataTable
dataTable_sProcessing
=
处理中...
dataTable_sLengthMenu
=
每页 _MENU_ 条记录
dataTable_sZeroRecords
=
没有匹配结果
dataTable_sInfo
=
第 _PAGE_ 页 ( 总共 _PAGES_ 页,_TOTAL_ 条记录 )
dataTable_sInfoEmpty
=
无记录
dataTable_sInfoFiltered
=
(由 _MAX_ 项结果过滤)
dataTable_sSearch
=
搜索
dataTable_sEmptyTable
=
表中数据为空
dataTable_sLoadingRecords
=
载入中...
dataTable_sFirst
=
首页
dataTable_sPrevious
=
上页
dataTable_sNext
=
下页
dataTable_sLast
=
末页
dataTable_sSortAscending
=
: 以升序排列此列
dataTable_sSortDescending
=
: 以降序排列此列
## login
## login
login_btn
=
登录
login_btn
=
登录
...
@@ -33,12 +76,46 @@ job_dashboard_trigger_num=调度次数
...
@@ -33,12 +76,46 @@ job_dashboard_trigger_num=调度次数
job_dashboard_trigger_num_tip
=
调度中心触发的调度次数
job_dashboard_trigger_num_tip
=
调度中心触发的调度次数
job_dashboard_jobgroup_num
=
执行器数量
job_dashboard_jobgroup_num
=
执行器数量
job_dashboard_jobgroup_num_tip
=
调度中心在线的执行器机器数量
job_dashboard_jobgroup_num_tip
=
调度中心在线的执行器机器数量
job_dashboard_report
=
调度报表
job_dashboard_report
=
调度报表
job_dashboard_report_loaddata_fail
=
调度报表数据加载异常
job_dashboard_date_report
=
日期分布图
job_dashboard_date_report_suc_count
=
成功调度次数
job_dashboard_date_report_fail_count
=
失败调度次数
job_dashboard_rate_report
=
成功比例图
job_dashboard_rate_report_suc_count
=
成功调度次数
job_dashboard_rate_report_fail_count
=
失败调度次数
## job info
## job info
jobinfo_name
=
任务管理
jobinfo_name
=
任务管理
jobinfo_field_add
=
新增任务
jobinfo_field_update
=
更新任务
jobinfo_field_id
=
任务ID
jobinfo_field_jobgroup
=
执行器
jobinfo_field_jobdesc
=
任务描述
jobinfo_field_gluetype
=
运行模式
jobinfo_field_executorparam
=
执行参数
jobinfo_field_author
=
负责人
jobinfo_field_alarmemail
=
报警邮件
jobinfo_field_alarmemail_placeholder
=
请输入报警邮件,多个邮件地址则逗号分隔
jobinfo_field_executorRouteStrategy
=
路由策略
jobinfo_field_childJobId
=
子任务ID
jobinfo_field_childJobId_placeholder
=
请输入子任务的任务ID,如存在多个则逗号分隔
jobinfo_field_executorBlockStrategy
=
阻塞处理策略
jobinfo_field_executorFailStrategy
=
失败处理策略
jobinfo_script_location
=
脚本位置
jobinfo_shard_index
=
分片序号
jobinfo_shard_total
=
分片总数
jobinfo_opt_pause
=
暂停
jobinfo_opt_resume
=
恢复
jobinfo_opt_log
=
日志
jobinfo_opt_run
=
执行
jobinfo_opt_edit
=
编辑
jobinfo_opt_del
=
删除
## job log
joblog_name
=
调度日志
joblog_name
=
调度日志
## job group
jobgroup_name
=
执行器管理
jobgroup_name
=
执行器管理
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
浏览文件 @
844f51c5
差异被折叠。
点击展开。
xxl-job-admin/src/main/webapp/static/js/index.js
浏览文件 @
844f51c5
...
@@ -4,8 +4,17 @@
...
@@ -4,8 +4,17 @@
$
(
function
()
{
$
(
function
()
{
// filter Time
// filter Time
var
_startDate
=
moment
().
subtract
(
1
,
'months'
);
//
默认,最近一月
var
_startDate
=
moment
().
subtract
(
1
,
'months'
);
//
default,recent_month
var
_endDate
=
moment
();
var
_endDate
=
moment
();
var
rangesConf
=
{};
rangesConf
[
I18n
.
daterangepicker_ranges_today
]
=
[
moment
().
startOf
(
'day'
),
moment
().
endOf
(
'day'
)];
rangesConf
[
I18n
.
daterangepicker_ranges_yesterday
]
=
[
moment
().
subtract
(
1
,
'days'
).
startOf
(
'day'
),
moment
().
subtract
(
1
,
'days'
).
endOf
(
'day'
)];
rangesConf
[
I18n
.
daterangepicker_ranges_this_month
]
=
[
moment
().
startOf
(
'month'
),
moment
().
endOf
(
'month'
)];
rangesConf
[
I18n
.
daterangepicker_ranges_last_month
]
=
[
moment
().
subtract
(
1
,
'months'
).
startOf
(
'month'
),
moment
().
subtract
(
1
,
'months'
).
endOf
(
'month'
)];
rangesConf
[
I18n
.
daterangepicker_ranges_recent_week
]
=
[
moment
().
subtract
(
1
,
'weeks'
),
moment
()];
rangesConf
[
I18n
.
daterangepicker_ranges_recent_month
]
=
[
_startDate
,
_endDate
];
$
(
'#filterTime'
).
daterangepicker
({
$
(
'#filterTime'
).
daterangepicker
({
autoApply
:
false
,
autoApply
:
false
,
singleDatePicker
:
false
,
singleDatePicker
:
false
,
...
@@ -14,25 +23,17 @@ $(function () {
...
@@ -14,25 +23,17 @@ $(function () {
timePickerIncrement
:
10
,
// 时间的增量,单位为分钟
timePickerIncrement
:
10
,
// 时间的增量,单位为分钟
timePicker24Hour
:
true
,
timePicker24Hour
:
true
,
opens
:
'left'
,
//日期选择框的弹出位置
opens
:
'left'
,
//日期选择框的弹出位置
ranges
:
{
ranges
:
rangesConf
,
//'最近1小时': [moment().subtract(1, 'hours'), moment()],
'今日'
:
[
moment
().
startOf
(
'day'
),
moment
().
endOf
(
'day'
)],
'昨日'
:
[
moment
().
subtract
(
1
,
'days'
).
startOf
(
'day'
),
moment
().
subtract
(
1
,
'days'
).
endOf
(
'day'
)],
'本月'
:
[
moment
().
startOf
(
'month'
),
moment
().
endOf
(
'month'
)],
'上个月'
:
[
moment
().
subtract
(
1
,
'months'
).
startOf
(
'month'
),
moment
().
subtract
(
1
,
'months'
).
endOf
(
'month'
)],
'最近1周'
:
[
moment
().
subtract
(
1
,
'weeks'
),
moment
()],
'最近1月'
:
[
_startDate
,
_endDate
]
},
locale
:
{
locale
:
{
format
:
'YYYY-MM-DD HH:mm:ss'
,
format
:
'YYYY-MM-DD HH:mm:ss'
,
separator
:
' - '
,
separator
:
' - '
,
customRangeLabel
:
'自定义'
,
customRangeLabel
:
I18n
.
daterangepicker_custom_name
,
applyLabel
:
'确定'
,
applyLabel
:
I18n
.
system_ok
,
cancelLabel
:
'取消'
,
cancelLabel
:
I18n
.
system_cancel
,
fromLabel
:
'起始时间'
,
fromLabel
:
I18n
.
daterangepicker_custom_starttime
,
toLabel
:
'结束时间'
,
toLabel
:
I18n
.
daterangepicker_custom_endtime
,
daysOfWeek
:
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
],
daysOfWeek
:
I18n
.
daterangepicker_custom_daysofweek
.
split
(
','
)
,
// '日', '一', '二', '三', '四', '五', '六'
monthNames
:
[
'一月'
,
'二月'
,
'三月'
,
'四月'
,
'五月'
,
'六月'
,
'七月'
,
'八月'
,
'九月'
,
'十月'
,
'十一月'
,
'十二月'
],
monthNames
:
I18n
.
daterangepicker_custom_monthnames
.
split
(
','
)
,
// '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'
firstDay
:
1
firstDay
:
1
},
},
startDate
:
_startDate
,
startDate
:
_startDate
,
...
@@ -64,7 +65,7 @@ $(function () {
...
@@ -64,7 +65,7 @@ $(function () {
}
else
{
}
else
{
layer
.
open
({
layer
.
open
({
title
:
I18n
.
system_tips
,
title
:
I18n
.
system_tips
,
content
:
(
data
.
msg
||
'调度报表数据加载异常'
),
content
:
(
data
.
msg
||
I18n
.
job_dashboard_report_loaddata_fail
),
icon
:
'2'
icon
:
'2'
});
});
}
}
...
@@ -78,7 +79,7 @@ $(function () {
...
@@ -78,7 +79,7 @@ $(function () {
function
lineChartInit
(
data
)
{
function
lineChartInit
(
data
)
{
var
option
=
{
var
option
=
{
title
:
{
title
:
{
text
:
'日期分布图'
text
:
I18n
.
job_dashboard_date_report
},
},
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
...
@@ -90,7 +91,7 @@ $(function () {
...
@@ -90,7 +91,7 @@ $(function () {
}
}
},
},
legend
:
{
legend
:
{
data
:[
'成功调度次数'
,
'失败调度次数'
]
data
:[
I18n
.
job_dashboard_date_report_suc_count
,
I18n
.
job_dashboard_date_report_fail_count
]
},
},
toolbox
:
{
toolbox
:
{
feature
:
{
feature
:
{
...
@@ -117,16 +118,16 @@ $(function () {
...
@@ -117,16 +118,16 @@ $(function () {
],
],
series
:
[
series
:
[
{
{
name
:
'成功调度次数'
,
name
:
I18n
.
job_dashboard_date_report_suc_count
,
type
:
'line'
,
type
:
'line'
,
stack
:
'
总量
'
,
stack
:
'
Total
'
,
areaStyle
:
{
normal
:
{}},
areaStyle
:
{
normal
:
{}},
data
:
data
.
content
.
triggerDayCountSucList
data
:
data
.
content
.
triggerDayCountSucList
},
},
{
{
name
:
'失败调度次数'
,
name
:
I18n
.
job_dashboard_date_report_fail_count
,
type
:
'line'
,
type
:
'line'
,
stack
:
'
总量
'
,
stack
:
'
Total
'
,
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
true
,
show
:
true
,
...
@@ -150,7 +151,7 @@ $(function () {
...
@@ -150,7 +151,7 @@ $(function () {
function
pieChartInit
(
data
)
{
function
pieChartInit
(
data
)
{
var
option
=
{
var
option
=
{
title
:
{
title
:
{
text
:
'成功比例图'
,
text
:
I18n
.
job_dashboard_rate_report
,
/*subtext: 'subtext',*/
/*subtext: 'subtext',*/
x
:
'center'
x
:
'center'
},
},
...
@@ -161,7 +162,7 @@ $(function () {
...
@@ -161,7 +162,7 @@ $(function () {
legend
:
{
legend
:
{
orient
:
'vertical'
,
orient
:
'vertical'
,
left
:
'left'
,
left
:
'left'
,
data
:
[
'成功调度次数'
,
'失败调度次数'
]
data
:
[
I18n
.
job_dashboard_rate_report_suc_count
,
I18n
.
job_dashboard_rate_report_fail_count
]
},
},
series
:
[
series
:
[
{
{
...
@@ -172,11 +173,11 @@ $(function () {
...
@@ -172,11 +173,11 @@ $(function () {
data
:[
data
:[
{
{
value
:
data
.
content
.
triggerCountSucTotal
,
value
:
data
.
content
.
triggerCountSucTotal
,
name
:
'成功调度次数'
name
:
I18n
.
job_dashboard_rate_report_suc_count
},
},
{
{
value
:
data
.
content
.
triggerCountFailTotal
,
value
:
data
.
content
.
triggerCountFailTotal
,
name
:
'失败调度次数'
name
:
I18n
.
job_dashboard_rate_report_fail_count
}
}
],
],
itemStyle
:
{
itemStyle
:
{
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
浏览文件 @
844f51c5
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论