Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
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
liyang
sts网站
Commits
207a9ce8
Commit
207a9ce8
authored
Sep 27, 2023
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志列表新增IP地址查询
parent
9ced1e97
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
SysOperLogMapper.xml
...tem/src/main/resources/mapper/system/SysOperLogMapper.xml
+3
-0
index.vue
ruoyi-ui/src/views/monitor/operlog/index.vue
+10
-0
No files found.
ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml
View file @
207a9ce8
...
@@ -37,6 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -37,6 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectOperLogList"
parameterType=
"SysOperLog"
resultMap=
"SysOperLogResult"
>
<select
id=
"selectOperLogList"
parameterType=
"SysOperLog"
resultMap=
"SysOperLogResult"
>
<include
refid=
"selectOperLogVo"
/>
<include
refid=
"selectOperLogVo"
/>
<where>
<where>
<if
test=
"operIp != null and operIp != ''"
>
AND oper_ip like concat('%', #{operIp}, '%')
</if>
<if
test=
"title != null and title != ''"
>
<if
test=
"title != null and title != ''"
>
AND title like concat('%', #{title}, '%')
AND title like concat('%', #{title}, '%')
</if>
</if>
...
...
ruoyi-ui/src/views/monitor/operlog/index.vue
View file @
207a9ce8
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"操作地址"
prop=
"operIp"
>
<el-input
v-model=
"queryParams.operIp"
placeholder=
"请输入操作地址"
clearable
style=
"width: 240px;"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"系统模块"
prop=
"title"
>
<el-form-item
label=
"系统模块"
prop=
"title"
>
<el-input
<el-input
v-model=
"queryParams.title"
v-model=
"queryParams.title"
...
@@ -229,6 +238,7 @@ export default {
...
@@ -229,6 +238,7 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
operIp
:
undefined
,
title
:
undefined
,
title
:
undefined
,
operName
:
undefined
,
operName
:
undefined
,
businessType
:
undefined
,
businessType
:
undefined
,
...
...
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