Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
68db58ad
提交
68db58ad
authored
1月 20, 2018
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
国际化定制基本结束
上级
3d72c73e
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
46 行增加
和
32 行删除
+46
-32
message.properties
xxl-job-admin/src/main/resources/i18n/message.properties
+1
-0
message_en.properties
xxl-job-admin/src/main/resources/i18n/message_en.properties
+1
-0
common.macro.ftl
.../src/main/webapp/WEB-INF/template/common/common.macro.ftl
+1
-1
common.1.js
xxl-job-admin/src/main/webapp/static/js/common.1.js
+6
-10
index.js
xxl-job-admin/src/main/webapp/static/js/index.js
+1
-0
jobcode.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js
+4
-0
jobgroup.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobgroup.index.1.js
+11
-1
jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
+11
-11
joblog.index.1.js
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
+10
-1
login.1.js
xxl-job-admin/src/main/webapp/static/js/login.1.js
+0
-8
没有找到文件。
xxl-job-admin/src/main/resources/i18n/message.properties
浏览文件 @
68db58ad
...
...
@@ -29,6 +29,7 @@ system_opt_edit=编辑
system_opt_del
=
删除
system_unvalid
=
非法
system_not_found
=
不存在
system_nav
=
导航
## daterangepicker
daterangepicker_ranges_recent_hour
=
最近一小时
...
...
xxl-job-admin/src/main/resources/i18n/message_en.properties
浏览文件 @
68db58ad
...
...
@@ -29,6 +29,7 @@ system_opt_edit=Edit
system_opt_del
=
Delete
system_unvalid
=
illegal
system_not_found
=
not exist
system_nav
=
Navigation
## daterangepicker
daterangepicker_ranges_recent_hour
=
recent one hour
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/common/common.macro.ftl
浏览文件 @
68db58ad
...
...
@@ -92,7 +92,7 @@
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">
导航
</li>
<li class="header">
${I18n.system_nav}
</li>
<li class="nav-click <#if pageName == "jobinfo">active</#if>" ><a href="${request.contextPath}/jobinfo"><i class="fa fa-circle-o text-aqua"></i><span>${I18n.jobinfo_name}</span></a></li>
<li class="nav-click <#if pageName == "joblog">active</#if>" ><a href="${request.contextPath}/joblog"><i class="fa fa-circle-o text-yellow"></i><span>${I18n.joblog_name}</span></a></li>
<li class="nav-click <#if pageName == "jobgroup">active</#if>" ><a href="${request.contextPath}/jobgroup"><i class="fa fa-circle-o text-green"></i><span>${I18n.jobgroup_name}</span></a></li>
...
...
xxl-job-admin/src/main/webapp/static/js/common.1.js
浏览文件 @
68db58ad
...
...
@@ -2,7 +2,11 @@ $(function(){
// logout
$
(
"#logoutBtn"
).
click
(
function
(){
layer
.
confirm
(
I18n
.
logout_confirm
,
{
icon
:
3
,
title
:
I18n
.
system_tips
},
function
(
index
){
layer
.
confirm
(
I18n
.
logout_confirm
,
{
icon
:
3
,
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_cancel
]
},
function
(
index
){
layer
.
close
(
index
);
$
.
post
(
base_url
+
"/logout"
,
function
(
data
,
status
)
{
...
...
@@ -11,18 +15,10 @@ $(function(){
setTimeout
(
function
(){
window
.
location
.
href
=
base_url
+
"/"
;
},
500
);
/*layer.open({
title: I18n.system_tips ,
content: I18n.logout_success ,
icon: '1',
end: function(layero, index){
window.location.href = base_url + "/";
}
});*/
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_close
],
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
logout_fail
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/index.js
浏览文件 @
68db58ad
...
...
@@ -62,6 +62,7 @@ $(function () {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
job_dashboard_report_loaddata_fail
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js
浏览文件 @
68db58ad
...
...
@@ -39,6 +39,7 @@ $(function() {
if
(
!
glueRemark
)
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_please_input
+
I18n
.
jobinfo_glue_remark
,
icon
:
'2'
});
...
...
@@ -47,6 +48,7 @@ $(function() {
if
(
glueRemark
.
length
<
4
||
glueRemark
.
length
>
100
)
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
jobinfo_glue_remark_limit
,
icon
:
'2'
});
...
...
@@ -66,6 +68,7 @@ $(function() {
if
(
data
.
code
==
200
)
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
I18n
.
system_save
+
I18n
.
system_success
)
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -76,6 +79,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
(
I18n
.
system_save
+
I18n
.
system_fail
)
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/jobgroup.index.1.js
浏览文件 @
68db58ad
...
...
@@ -4,7 +4,11 @@ $(function() {
$
(
'.remove'
).
on
(
'click'
,
function
(){
var
id
=
$
(
this
).
attr
(
'id'
);
layer
.
confirm
(
(
I18n
.
system_ok
+
I18n
.
jobgroup_del
+
'?'
)
,
{
icon
:
3
,
title
:
I18n
.
system_tips
},
function
(
index
){
layer
.
confirm
(
(
I18n
.
system_ok
+
I18n
.
jobgroup_del
+
'?'
)
,
{
icon
:
3
,
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_cancel
]
},
function
(
index
){
layer
.
close
(
index
);
$
.
ajax
({
...
...
@@ -16,6 +20,7 @@ $(function() {
if
(
data
.
code
==
200
)
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
I18n
.
jobgroup_del
+
I18n
.
system_success
),
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -25,6 +30,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
(
I18n
.
jobgroup_del
+
I18n
.
system_fail
)),
icon
:
'2'
});
...
...
@@ -97,6 +103,7 @@ $(function() {
$
(
'#addModal'
).
modal
(
'hide'
);
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_add_suc
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -106,6 +113,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_add_fail
),
icon
:
'2'
});
...
...
@@ -203,6 +211,7 @@ $(function() {
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_update_suc
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -212,6 +221,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_update_fail
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
浏览文件 @
68db58ad
...
...
@@ -204,7 +204,11 @@ $(function() {
var
id
=
$
(
this
).
parent
(
'p'
).
attr
(
"id"
);
layer
.
confirm
(
I18n
.
system_ok
+
typeName
+
'?'
,
{
icon
:
3
,
title
:
I18n
.
system_tips
},
function
(
index
){
layer
.
confirm
(
I18n
.
system_ok
+
typeName
+
'?'
,
{
icon
:
3
,
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_cancel
]
},
function
(
index
){
layer
.
close
(
index
);
$
.
ajax
({
...
...
@@ -219,7 +223,7 @@ $(function() {
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_close
],
btn
:
[
I18n
.
system_ok
],
content
:
typeName
+
I18n
.
system_success
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -232,7 +236,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_close
],
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
typeName
+
I18n
.
system_fail
),
icon
:
'2'
});
...
...
@@ -289,6 +293,7 @@ $(function() {
$
(
'#addModal'
).
modal
(
'hide'
);
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_add_suc
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -299,6 +304,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_add_fail
),
icon
:
'2'
});
...
...
@@ -348,14 +354,6 @@ $(function() {
var
id
=
$
(
this
).
parent
(
'p'
).
attr
(
"id"
);
var
row
=
tableData
[
'key'
+
id
];
/*if (!row) {
layer.open({
title: I18n.system_tips ,
content: ("数据加载失败,请刷新页面"),
icon: '2'
});
return;
}*/
// base data
$
(
"#updateModal .form input[name='id']"
).
val
(
row
.
id
);
...
...
@@ -422,6 +420,7 @@ $(function() {
$
(
'#updateModal'
).
modal
(
'hide'
);
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_update_suc
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -432,6 +431,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_update_fail
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
浏览文件 @
68db58ad
...
...
@@ -21,6 +21,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_api_error
),
icon
:
'2'
});
...
...
@@ -240,7 +241,11 @@ $(function() {
$
(
'#joblog_list'
).
on
(
'click'
,
'.logKill'
,
function
(){
var
_id
=
$
(
this
).
attr
(
'_id'
);
layer
.
confirm
(
(
I18n
.
system_ok
+
I18n
.
joblog_kill_log
+
'?'
),
{
icon
:
3
,
title
:
I18n
.
system_tips
},
function
(
index
){
layer
.
confirm
(
(
I18n
.
system_ok
+
I18n
.
joblog_kill_log
+
'?'
),
{
icon
:
3
,
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
,
I18n
.
system_cancel
]
},
function
(
index
){
layer
.
close
(
index
);
$
.
ajax
({
...
...
@@ -252,6 +257,7 @@ $(function() {
if
(
data
.
code
==
200
)
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
I18n
.
system_opt_suc
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -261,6 +267,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
I18n
.
system_opt_fail
),
icon
:
'2'
});
...
...
@@ -297,6 +304,7 @@ $(function() {
$
(
'#clearLogModal'
).
modal
(
'hide'
);
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
I18n
.
joblog_clean_log
+
I18n
.
system_success
)
,
icon
:
'1'
,
end
:
function
(
layero
,
index
){
...
...
@@ -306,6 +314,7 @@ $(function() {
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
btn
:
[
I18n
.
system_ok
],
content
:
(
data
.
msg
||
(
I18n
.
joblog_clean_log
+
I18n
.
system_fail
)
),
icon
:
'2'
});
...
...
xxl-job-admin/src/main/webapp/static/js/login.1.js
浏览文件 @
68db58ad
...
...
@@ -52,14 +52,6 @@ $(function(){
setTimeout
(
function
(){
window
.
location
.
href
=
base_url
;
},
500
);
/*layer.open({
title: I18n.system_tips,
content: I18n.login_success,
icon: '1',
end: function(layero, index){
window.location.href = base_url;
}
});*/
}
else
{
layer
.
open
({
title
:
I18n
.
system_tips
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论