作者 RuoYi

操作日志列表新增IP地址查询

@@ -37,6 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -37,6 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
37 <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> 37 <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
38 <include refid="selectOperLogVo"/> 38 <include refid="selectOperLogVo"/>
39 <where> 39 <where>
  40 + <if test="operIp != null and operIp != ''">
  41 + AND oper_ip like concat('%', #{operIp}, '%')
  42 + </if>
40 <if test="title != null and title != ''"> 43 <if test="title != null and title != ''">
41 AND title like concat('%', #{title}, '%') 44 AND title like concat('%', #{title}, '%')
42 </if> 45 </if>
1 <template> 1 <template>
2 <div class="app-container"> 2 <div class="app-container">
3 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> 3 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
  4 + <el-form-item label="操作地址" prop="operIp">
  5 + <el-input
  6 + v-model="queryParams.operIp"
  7 + placeholder="请输入操作地址"
  8 + clearable
  9 + style="width: 240px;"
  10 + @keyup.enter.native="handleQuery"
  11 + />
  12 + </el-form-item>
4 <el-form-item label="系统模块" prop="title"> 13 <el-form-item label="系统模块" prop="title">
5 <el-input 14 <el-input
6 v-model="queryParams.title" 15 v-model="queryParams.title"
@@ -229,6 +238,7 @@ export default { @@ -229,6 +238,7 @@ export default {
229 queryParams: { 238 queryParams: {
230 pageNum: 1, 239 pageNum: 1,
231 pageSize: 10, 240 pageSize: 10,
  241 + operIp: undefined,
232 title: undefined, 242 title: undefined,
233 operName: undefined, 243 operName: undefined,
234 businessType: undefined, 244 businessType: undefined,