Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e9566fcb
authored
Jul 28, 2017
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
任务列表页交互优化,更换执行器分组时自动刷新任务列表,新建任务时默认定位在当前执行器位置;
parent
02818b4d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
doc/XXL-JOB官方文档.md
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobInfoController.java
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
doc/XXL-JOB官方文档.md
View file @
e9566fcb
# 《分布
式任务调度平台XXL-JOB》
# 《分布
式任务调度平台XXL-JOB》
...
...
@@ -904,6 +904,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
5、调度中心,DAO层代码精简优化并且新增测试用例覆盖;
-
6、调度中心API服务改为自研RPC形式,统一底层通讯模型;
-
7、新增调度中心API服务测试Demo,方便在调度中心API扩展和测试;
-
8、任务列表页交互优化,更换执行器分组时自动刷新任务列表,新建任务时默认定位在当前执行器位置;
#### TODO LIST
-
1、任务权限管理:执行器为粒度分配权限,核心操作校验权限;
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobInfoController.java
View file @
e9566fcb
...
...
@@ -33,7 +33,7 @@ public class JobInfoController {
private
XxlJobService
xxlJobService
;
@RequestMapping
public
String
index
(
Model
model
)
{
public
String
index
(
Model
model
,
@RequestParam
(
required
=
false
,
defaultValue
=
"-1"
)
int
jobGroup
)
{
// 枚举-字典
model
.
addAttribute
(
"ExecutorRouteStrategyEnum"
,
ExecutorRouteStrategyEnum
.
values
());
// 路由策略-列表
...
...
@@ -44,6 +44,8 @@ public class JobInfoController {
// 任务组
List
<
XxlJobGroup
>
jobGroupList
=
xxlJobGroupDao
.
findAll
();
model
.
addAttribute
(
"JobGroupList"
,
jobGroupList
);
model
.
addAttribute
(
"jobGroup"
,
jobGroup
);
return
"jobinfo/jobinfo.index"
;
}
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
View file @
e9566fcb
...
...
@@ -37,7 +37,7 @@
<span
class=
"input-group-addon"
>
执行器
</span>
<select
class=
"form-control"
id=
"jobGroup"
>
<
#
list
JobGroupList
as
group
>
<option
value=
"${group.id}"
>
${group.title}
</option>
<option
value=
"${group.id}"
<#
if
jobGroup=
=group.id
>
selected
</
#
if>
>${group.title}
</option>
</
#
list>
</select>
</div>
...
...
@@ -110,7 +110,7 @@
<div
class=
"col-sm-4"
>
<select
class=
"form-control"
name=
"jobGroup"
>
<
#
list
JobGroupList
as
group
>
<option
value=
"${group.id}"
>
${group.title}
</option>
<option
value=
"${group.id}"
<#
if
jobGroup=
=group.id
>
selected
</
#
if>
>${group.title}
</option>
</
#
list>
</select>
</div>
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
View file @
e9566fcb
...
...
@@ -167,6 +167,13 @@ $(function() {
jobTable
.
fnDraw
();
});
// jobGroup change
$
(
'#jobGroup'
).
on
(
'change'
,
function
(){
//reload
var
jobGroup
=
$
(
'#jobGroup'
).
val
();
window
.
location
.
href
=
base_url
+
"/jobinfo?jobGroup="
+
jobGroup
;
});
// job operate
$
(
"#job_list"
).
on
(
'click'
,
'.job_operate'
,
function
()
{
var
typeName
;
...
...
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