From 2f9afa02b6abdbebf711f087550937397b265ff9 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Tue, 18 Apr 2023 14:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E6=9F=A5=E8=AF=A2=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/views/modules/sys/logList.html | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/modules/core/src/main/resources/views/modules/sys/logList.html b/modules/core/src/main/resources/views/modules/sys/logList.html index 7fd85248..0cf3eb2e 100644 --- a/modules/core/src/main/resources/views/modules/sys/logList.html +++ b/modules/core/src/main/resources/views/modules/sys/logList.html @@ -114,29 +114,45 @@ $('#dataGrid').dataGrid({ return js.getDictLabel(${@DictUtils.getDictListJson('sys_log_type')}, val, '未知', true); }}, {header:'${text("操作用户")}', name:'createByName', index:'a.create_by_name', width:100, align:"center", formatter: function(val, obj, row, act){ - return ''+ row.createByName; + return ''+(val||'')+''; }}, {header:'${text("异常")}', name:'isException', index:'a.is_exception', width:60, align:"center", formatter: function(val, obj, row, act){ return js.getDictLabel(${@DictUtils.getDictListJson('sys_yes_no')}, val, '未知', true); }}, - {header:'${text("业务类型")}', name:'bizType', index:'a.biz_type', width:90, align:"center"}, - {header:'${text("业务主键")}', name:'bizKey', index:'a.biz_key', width:90, align:"center"}, + {header:'${text("业务类型")}', name:'bizType', index:'a.biz_type', width:90, align:"center", formatter: function(val, obj, row, act){ + return ''+(val||'')+''; + }}, + {header:'${text("业务主键")}', name:'bizKey', index:'a.biz_key', width:90, align:"center", formatter: function(val, obj, row, act){ + return ''+(val||'')+''; + }}, {header:'${text("操作时间")}', name:'createDate', index:'a.create_date', width:100, align:"center"}, - {header:'${text("客户端IP")}', name:'remoteAddr', index:'a.remote_addr', width:100, align:"center"}, + {header:'${text("客户端IP")}', name:'remoteAddr', index:'a.remote_addr', width:100, align:"center", formatter: function(val, obj, row, act){ + return ''+(val||'')+''; + }}, {header:'${text("设备名称")}', name:'deviceName', index:'a.device_name', width:100, align:"center"}, {header:'${text("浏览器名")}', name:'browserName', index:'a.browser_name', width:100, align:"center"}, {header:'${text("响应时间")}', name:'executeTimeFormat', index:'a.execute_time', width:100, align:"center"}/* , {header:'${text("操作")}', name:'actions', width:130, formatter: function(val, obj, row, act){ - var actions = []; - //<% if(hasPermi('sys:log:edit')){ %> - actions.push(' '); - //<% } %> - return actions.join(''); + return ' '; }} */ ], // 加载成功后执行事件 ajaxSuccess: function(data){ } +}).on('click', '.search', function(){ + var $this = $(this), + cid = $this.data('cid'), + cval = $this.data('cval') || $this.text(), + nid = $this.data('nid'), + nval = $this.data('nval') || $this.text(); + if (cid) { + $('#' + cid).val(cval); + } + if (nid) { + $('#' + nid).val(nval); + } + $('#searchForm').submit(); }); \ No newline at end of file