From 207a9ce855452d23e81e9ca8bf253521e0e0d3f9 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 27 九月 2023 15:21:59 +0800 Subject: [PATCH] 操作日志列表新增IP地址查询 --- ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml | 3 +++ ruoyi-ui/src/views/monitor/operlog/index.vue | 10 ++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml index 75593c2..0c3fb69 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -37,6 +37,9 @@ <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> <include refid="selectOperLogVo"/> <where> + <if test="operIp != null and operIp != ''"> + AND oper_ip like concat('%', #{operIp}, '%') + </if> <if test="title != null and title != ''"> AND title like concat('%', #{title}, '%') </if> diff --git a/ruoyi-ui/src/views/monitor/operlog/index.vue b/ruoyi-ui/src/views/monitor/operlog/index.vue index 34a3ce3..988f983 100644 --- a/ruoyi-ui/src/views/monitor/operlog/index.vue +++ b/ruoyi-ui/src/views/monitor/operlog/index.vue @@ -1,6 +1,15 @@ <template> <div class="app-container"> <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-input v-model="queryParams.title" @@ -229,6 +238,7 @@ queryParams: { pageNum: 1, pageSize: 10, + operIp: undefined, title: undefined, operName: undefined, businessType: undefined, -- Gitblit v1.9.2