Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
55da596a
Commit
55da596a
authored
Mar 20, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务&角色管理添加更多操作按钮
parent
6fa8c991
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
17 deletions
+61
-17
ruoyi-admin/src/main/resources/static/css/style.css
+6
-6
ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
+19
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+21
-1
ruoyi-admin/src/main/resources/templates/system/role/role.html
+4
-2
ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java
+3
-4
ruoyi-quartz/src/main/resources/templates/monitor/job/job.html
+8
-4
No files found.
ruoyi-admin/src/main/resources/static/css/style.css
View file @
55da596a
...
...
@@ -763,15 +763,15 @@ body.canvas-menu.mini-navbar nav.navbar-static-side {
}
.btn-default
{
background-color
:
#
c2c2c2
;
border-color
:
#
c2c2c2
;
color
:
#
FFFFFF
;
background-color
:
#
f4f4f4
;
border-color
:
#
ddd
;
color
:
#
444
;
}
.btn-default
:hover
,
.btn-default
:focus
,
.btn-default
:active
,
.btn-default.active
,
.open
.dropdown-toggle.btn-default
{
background-color
:
#
bababa
;
border-color
:
#
bababa
;
color
:
#
FFFFFF
;
background-color
:
#
e7e7e7
;
border-color
:
#
e7e7e7
;
color
:
#
444
;
}
.btn-default
:active
,
.btn-default.active
,
.open
.dropdown-toggle.btn-default
{
...
...
ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
View file @
55da596a
...
...
@@ -1014,6 +1014,25 @@ label {
background-color
:
#F5F5F5
;
}
/** 气泡弹出框样式 **/
.popover
{
font-size
:
13px
;
max-width
:
unset
;
}
.popover-title
{
padding
:
8px
14px
;
margin
:
0
!important
;
font-size
:
14px
;
background-color
:
#f7f7f7
;
border-bottom
:
1px
solid
#ebebeb
;
border-radius
:
5px
5px
0
0
;
}
.popover-content
{
padding
:
5px
;
}
::-webkit-scrollbar
{
width
:
6px
;
height
:
10px
;
...
...
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
55da596a
...
...
@@ -253,7 +253,27 @@ var table = {
table
.
options
.
onLoadSuccess
(
data
);
}
// 浮动提示框特效
$
(
"[data-toggle='tooltip']"
).
tooltip
();
$
(
".table [data-toggle='tooltip']"
).
tooltip
();
// 气泡弹出框特效
$
(
'.table [data-toggle="popover"]'
).
each
(
function
()
{
$
(
this
).
popover
({
trigger
:
"manual"
,
html
:
true
,
animation
:
false
,
container
:
"body"
,
placement
:
"left"
}).
on
(
"mouseenter"
,
function
()
{
var
_this
=
this
;
$
(
this
).
popover
(
"show"
);
$
(
".popover"
).
on
(
"mouseleave"
,
function
()
{
$
(
_this
).
popover
(
'hide'
);
});
}).
on
(
"mouseleave"
,
function
()
{
var
_this
=
this
;
setTimeout
(
function
()
{
if
(
!
$
(
".popover:hover"
).
length
)
$
(
_this
).
popover
(
"hide"
);
},
100
);
});
});
},
// 表格销毁
destroy
:
function
(
tableId
)
{
...
...
ruoyi-admin/src/main/resources/templates/system/role/role.html
View file @
55da596a
...
...
@@ -114,9 +114,11 @@
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="$.operate.edit(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="authDataScope(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-check-square-o"></i>数据权限</a> '
);
actions
.
push
(
'<a class="btn btn-info btn-xs '
+
editFlag
+
'" href="javascript:void(0)" onclick="authUser(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-user"></i>分配用户</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
roleId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
var
more
=
[];
more
.
push
(
"<a class='btn btn-default btn-xs "
+
editFlag
+
"' href='javascript:void(0)' onclick='authDataScope("
+
row
.
roleId
+
")'><i class='fa fa-check-square-o'></i>数据权限</a> "
);
more
.
push
(
"<a class='btn btn-default btn-xs "
+
editFlag
+
"' href='javascript:void(0)' onclick='authUser("
+
row
.
roleId
+
")'><i class='fa fa-user'></i>分配用户</a> "
);
actions
.
push
(
'<a class="btn btn-info btn-xs" data-toggle="popover" data-content="'
+
more
.
join
(
''
)
+
'"><i class="fa fa-chevron-circle-right"></i>更多操作</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java
View file @
55da596a
...
...
@@ -179,12 +179,11 @@ public class SysJobServiceImpl implements ISysJobService
public
void
run
(
SysJob
job
)
throws
SchedulerException
{
Long
jobId
=
job
.
getJobId
();
String
jobGroup
=
job
.
getJobGroup
();
SysJob
properties
=
selectJobById
(
job
.
getJobId
());
SysJob
tmpObj
=
selectJobById
(
job
.
getJobId
());
// 参数
JobDataMap
dataMap
=
new
JobDataMap
();
dataMap
.
put
(
ScheduleConstants
.
TASK_PROPERTIES
,
properties
);
scheduler
.
triggerJob
(
ScheduleUtils
.
getJobKey
(
jobId
,
jobGroup
),
dataMap
);
dataMap
.
put
(
ScheduleConstants
.
TASK_PROPERTIES
,
tmpObj
);
scheduler
.
triggerJob
(
ScheduleUtils
.
getJobKey
(
jobId
,
tmpObj
.
getJobGroup
()
),
dataMap
);
}
/**
...
...
ruoyi-quartz/src/main/resources/templates/monitor/job/job.html
View file @
55da596a
...
...
@@ -124,8 +124,12 @@
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-primary btn-xs '
+
statusFlag
+
'" href="javascript:void(0)" onclick="run(
\'
'
+
row
.
jobId
+
'
\'
,
\'
'
+
row
.
jobGroup
+
'
\'
)"><i class="fa fa-play-circle-o"></i> 执行一次</a> '
);
actions
.
push
(
'<a class="btn btn-warning btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="$.operate.detail(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-search"></i>详细</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
editFlag
+
'" href="#" onclick="$.operate.edit(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-edit"></i>编辑</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
removeFlag
+
'" href="#" onclick="$.operate.remove(
\'
'
+
row
.
jobId
+
'
\'
)"><i class="fa fa-remove"></i>删除</a> '
);
var
more
=
[];
more
.
push
(
"<a class='btn btn-default btn-xs "
+
statusFlag
+
"' href='javascript:void(0)' onclick='run("
+
row
.
jobId
+
")'><i class='fa fa-play-circle-o'></i> 执行一次</a> "
);
more
.
push
(
"<a class='btn btn-default btn-xs "
+
detailFlag
+
"' href='javascript:void(0)' onclick='$.operate.detail("
+
row
.
jobId
+
")'><i class='fa fa-search'></i>任务详细</a> "
);
actions
.
push
(
'<a class="btn btn-info btn-xs" data-toggle="popover" data-content="'
+
more
.
join
(
''
)
+
'"><i class="fa fa-chevron-circle-right"></i>更多操作</a>'
);
return
actions
.
join
(
''
);
}
}]
...
...
@@ -143,9 +147,9 @@
}
/* 立即执行一次 */
function
run
(
jobId
,
jobGroup
)
{
function
run
(
jobId
)
{
$
.
modal
.
confirm
(
"确认要立即执行一次任务吗?"
,
function
()
{
$
.
operate
.
post
(
prefix
+
"/run"
,
{
"jobId"
:
jobId
,
"jobGroup"
:
jobGroup
});
$
.
operate
.
post
(
prefix
+
"/run"
,
{
"jobId"
:
jobId
});
})
}
...
...
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