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
3a44c4e7
Commit
3a44c4e7
authored
Nov 14, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志详细优化
parent
0c5da2cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
7 deletions
+25
-7
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+15
-5
ruoyi-admin/src/main/resources/templates/monitor/operlog/detail.html
+10
-2
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
3a44c4e7
...
...
@@ -416,22 +416,32 @@
$
.
operate
.
submit
(
url
,
"post"
,
"json"
,
data
);
},
// 详细信息
detail
:
function
(
id
)
{
detail
:
function
(
id
,
width
,
height
)
{
var
_url
=
$
.
common
.
isEmpty
(
id
)
?
$
.
table
.
_option
.
detailUrl
:
$
.
table
.
_option
.
detailUrl
.
replace
(
"{id}"
,
id
);
var
_width
=
$
.
common
.
isEmpty
(
width
)
?
"800"
:
width
;
var
_height
=
$
.
common
.
isEmpty
(
height
)
?
(
$
(
window
).
height
()
-
50
)
:
height
;
//如果是移动端,就使用自适应大小弹窗
if
(
navigator
.
userAgent
.
match
(
/
(
iPhone|iPod|Android|ios
)
/i
))
{
_width
=
'auto'
;
_height
=
'auto'
;
}
layer
.
open
({
type
:
2
,
area
:
[
'800px'
,
(
$
(
window
).
height
()
-
50
)
+
'px'
],
area
:
[
_width
+
'px'
,
_height
+
'px'
],
fix
:
false
,
//不固定
maxmin
:
true
,
shade
:
0.3
,
title
:
$
.
table
.
_option
.
modalName
+
"详细"
,
content
:
_url
,
btn
:
[
'<i class="fa fa-close"></i> 关闭'
]
,
btn
:
'关闭'
,
// 弹层外区域关闭
shadeClose
:
true
,
cancel
:
function
(
index
)
{
return
true
;
success
:
function
(
layer
)
{
layer
[
0
].
childNodes
[
3
].
childNodes
[
0
].
attributes
[
0
].
value
=
'layui-layer-btn1'
;
},
btn1
:
function
(
index
)
{
layer
.
close
(
index
);
}
});
},
...
...
ruoyi-admin/src/main/resources/templates/monitor/operlog/detail.html
View file @
3a44c4e7
...
...
@@ -28,8 +28,7 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
请求参数:
</label>
<div
class=
"form-control-static"
th:text=
"${operLog.operParam}"
>
</div>
<div
class=
"form-control-static"
><pre
id=
"operParam"
></pre></div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
状态:
</label>
...
...
@@ -44,5 +43,13 @@
</form>
</div>
<div
th:include=
"include :: footer"
></div>
<script
th:inline=
"javascript"
>
$
(
function
()
{
var
text
=
[[
$
{
operLog
.
operParam
}]];
var
result
=
JSON
.
stringify
(
JSON
.
parse
(
text
),
null
,
2
);
$
(
"#operParam"
).
html
(
result
);
});
</script>
</body>
</html>
\ No newline at end of file
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