From bc427c64d8c9066eda7a817c7c7926954e39abb0 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期一, 26 一月 2026 14:55:26 +0800
Subject: [PATCH] 删除操作添加日志记录,系统添加定时删除操作日志

---
 fzzy-igdss-web/src/main/resources/templates/monitor/operlog/operlog.html |  382 +++++++++++++++++++++++++++++-------------------------
 1 files changed, 205 insertions(+), 177 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/templates/monitor/operlog/operlog.html b/fzzy-igdss-web/src/main/resources/templates/monitor/operlog/operlog.html
index 0736f09..1f7777a 100644
--- a/fzzy-igdss-web/src/main/resources/templates/monitor/operlog/operlog.html
+++ b/fzzy-igdss-web/src/main/resources/templates/monitor/operlog/operlog.html
@@ -1,188 +1,216 @@
 <!DOCTYPE html>
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
 <head>
-	<th:block th:include="include :: header('鎿嶄綔鏃ュ織鍒楄〃')" />
-	<th:block th:include="include :: bootstrap-select-css" />
+    <th:block th:include="include :: header('鎿嶄綔鏃ュ織鍒楄〃')"/>
+    <th:block th:include="include :: bootstrap-select-css"/>
 </head>
 <body class="gray-bg">
-	<div class="container-div">
-		<div class="row">
-			<div class="col-sm-12 search-collapse">
-				<form id="operlog-form">
-					<div class="select-list">
-						<ul>
-							<li>
-								<label>鎿嶄綔鍦板潃锛�</label><input type="text" name="operIp"/>
-							</li>
-							<li>
-								<label>绯荤粺妯″潡锛� </label><input type="text" name="title"/>
-							</li>
-							<li>
-								<label>鎿嶄綔浜哄憳锛� </label><input type="text" name="operName"/>
-							</li>
-							<li class="select-selectpicker">
-								<label>鎿嶄綔绫诲瀷锛� </label><select id="businessTypes" name="businessTypes" th:with="type=${@dict.getType('sys_oper_type')}" class="selectpicker" data-none-selected-text="璇烽�夋嫨" multiple>
-									<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
-								</select>
-							</li>
-							<li>
-								<label>鎿嶄綔鐘舵�侊細</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}">
-									<option value="">鎵�鏈�</option>
-									<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
-								</select>
-							</li>
-							<li class="select-time">
-								<label>鎿嶄綔鏃堕棿锛� </label>
-								<input type="text" class="time-input" id="startTime" placeholder="寮�濮嬫椂闂�"/>
-								<span>-</span>
-								<input type="text" class="time-input" id="endTime" placeholder="缁撴潫鏃堕棿"/>
-							</li>
-							<li>
-								<a class="btn btn-primary btn-rounded btn-sm" onclick="searchPre()"><i class="fa fa-search"></i>&nbsp;鎼滅储</a>
-								<a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i class="fa fa-refresh"></i>&nbsp;閲嶇疆</a>
-							</li>
-						</ul>
-					</div>
-				</form>
-			</div>
-			
-			<div class="btn-group-sm" id="toolbar" role="group">
-				<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="monitor:operlog:remove">
-		            <i class="fa fa-remove"></i> 鍒犻櫎
-		        </a>
-		        <a class="btn btn-danger" onclick="$.operate.clean()" shiro:hasPermission="monitor:operlog:remove">
-	                <i class="fa fa-trash"></i> 娓呯┖
-	            </a>
-	            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:operlog:export">
-		            <i class="fa fa-download"></i> 瀵煎嚭
-		        </a>
-	        </div>
-	        
-			<div class="col-sm-12 select-table table-striped">
-				<table id="bootstrap-table"></table>
-			</div>
-		</div>
-	</div>
-	
-	<th:block th:include="include :: footer" />
-	<th:block th:include="include :: bootstrap-select-js" />
-	<script th:inline="javascript">
-		var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
-		var datas = [[${@dict.getType('sys_oper_type')}]];
-		var prefix = ctx + "monitor/operlog";
+<div class="container-div">
+    <div class="row">
+        <div class="col-sm-12 search-collapse">
+            <form id="operlog-form">
+                <div class="select-list">
+                    <ul>
+                        <li>
+                            <label>鎿嶄綔鍦板潃锛�</label><input type="text" name="operIp"/>
+                        </li>
+                        <li>
+                            <label>绯荤粺妯″潡锛� </label><input type="text" name="title"/>
+                        </li>
+                        <li class="select-selectpicker">
+                            <label>涓氬姟绫诲瀷锛� </label>
+                            <select id="bizType" name="bizType"
+                                    class="selectpicker" data-none-selected-text="璇烽�夋嫨">
+                                <option value="">鎵�鏈�</option>
+                                <option th:each="dict : ${bizTypeDatas}" th:text="${dict.dictLabel}"
+                                        th:value="${dict.dictValue}"></option>
+                            </select>
+                        </li>
+                        <li>
+                            <label>鎿嶄綔浜哄憳锛� </label><input type="text" name="operName"/>
+                        </li>
+                        <li class="select-selectpicker">
+                            <label>鎿嶄綔绫诲瀷锛� </label><select id="businessTypes" name="businessTypes"
+                                                             th:with="type=${@dict.getType('sys_oper_type')}"
+                                                             class="selectpicker" data-none-selected-text="璇烽�夋嫨"
+                                                             multiple>
+                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
+                                    th:value="${dict.dictValue}"></option>
+                        </select>
+                        </li>
+                        <li>
+                            <label>鎿嶄綔鐘舵�侊細</label><select name="status"
+                                                            th:with="type=${@dict.getType('sys_common_status')}">
+                            <option value="">鎵�鏈�</option>
+                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
+                                    th:value="${dict.dictValue}"></option>
+                        </select>
+                        </li>
+                        <li class="select-time">
+                            <label>鎿嶄綔鏃堕棿锛� </label>
+                            <input type="text" class="time-input" id="startTime" placeholder="寮�濮嬫椂闂�"/>
+                            <span>-</span>
+                            <input type="text" class="time-input" id="endTime" placeholder="缁撴潫鏃堕棿"/>
+                        </li>
+                        <li>
+                            <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPre()"><i
+                                    class="fa fa-search"></i>&nbsp;鎼滅储</a>
+                            <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPre()"><i
+                                    class="fa fa-refresh"></i>&nbsp;閲嶇疆</a>
+                        </li>
+                    </ul>
+                </div>
+            </form>
+        </div>
 
-		$(function() {
-		    var options = {
-		        url: prefix + "/list",
-		        cleanUrl: prefix + "/clean",
-		        detailUrl: prefix + "/detail/{id}",
-		        removeUrl: prefix + "/remove",
-		        exportUrl: prefix + "/export",
-		        queryParams: queryParams,
-		        sortName: "operTime",
-		        sortOrder: "desc",
-		        modalName: "鎿嶄綔鏃ュ織",
-		        escape: true,
-		        showPageGo: true,
-		        rememberSelected: true,
-		        columns: [{
-		        	field: 'state',
-		            checkbox: true
-		        },
-		        {
-		            field: 'operId',
-		            title: '鏃ュ織缂栧彿'
-		        },
-		        {
-		            field: 'title',
-		            title: '绯荤粺妯″潡',
-                    formatter: function(value, row, index) {
+        <div class="btn-group-sm" id="toolbar" role="group">
+            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
+               shiro:hasPermission="monitor:operlog:remove">
+                <i class="fa fa-remove"></i> 鍒犻櫎
+            </a>
+            <a class="btn btn-danger" onclick="$.operate.clean()" shiro:hasPermission="monitor:operlog:remove">
+                <i class="fa fa-trash"></i> 娓呯┖
+            </a>
+            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:operlog:export">
+                <i class="fa fa-download"></i> 瀵煎嚭
+            </a>
+        </div>
+
+        <div class="col-sm-12 select-table table-striped">
+            <table id="bootstrap-table"></table>
+        </div>
+    </div>
+</div>
+
+<th:block th:include="include :: footer"/>
+<th:block th:include="include :: bootstrap-select-js"/>
+<script th:inline="javascript">
+    var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
+    var datas = [[${@dict.getType('sys_oper_type')}]];
+    var bizTypeDatas = [[${bizTypeDatas}]];
+
+    var prefix = ctx + "monitor/operlog";
+
+    $(function () {
+        var options = {
+            url: prefix + "/list",
+            cleanUrl: prefix + "/clean",
+            detailUrl: prefix + "/detail/{id}",
+            removeUrl: prefix + "/remove",
+            exportUrl: prefix + "/export",
+            queryParams: queryParams,
+            sortName: "operTime",
+            sortOrder: "desc",
+            modalName: "鎿嶄綔鏃ュ織",
+            escape: true,
+            showPageGo: true,
+            rememberSelected: true,
+            columns: [{
+                field: 'state',
+                checkbox: true
+            },
+                {
+                    field: 'operId',
+                    title: '鏃ュ織缂栧彿'
+                },
+                {
+                    field: 'title',
+                    title: '绯荤粺妯″潡',
+                    formatter: function (value, row, index) {
                         return $.table.tooltip(value);
                     }
                 },
-		        {
-		            field: 'businessType',
-		            title: '鎿嶄綔绫诲瀷',
-		            align: 'center',
-		            formatter: function(value, row, index) {
-		                return $.table.selectDictLabel(datas, value);
-		            }
-		        },
-		        {
-		            field: 'operName',
-		            title: '鎿嶄綔浜哄憳',
-		            sortable: true
-		        },
-		        {
-		            field: 'deptName',
-		            title: '閮ㄩ棬鍚嶇О'
-		        },
-		        {
-		            field: 'operIp',
-		            title: '鎿嶄綔鍦板潃'
-		        },
-		        {
-		            field: 'operLocation',
-		            title: '鎿嶄綔鍦扮偣'
-		        },
-		        {
-		            field: 'status',
-		            title: '鎿嶄綔鐘舵��',
-		            align: 'center',
-		            formatter: function(value, row, index) {
-		                if (value == 0) {
-		                    return '<span class="badge badge-primary">鎴愬姛</span>';
-		                } else if (value == 1) {
-		                    return '<span class="badge badge-danger">澶辫触</span>';
-		                }
-		            }
-		        },
-		        {
-		            field: 'operTime',
-		            title: '鎿嶄綔鏃堕棿',
-		            sortable: true
-		        },
-		        {
-		            field: 'costTime',
-		            title: '娑堣�楁椂闂�',
-		            sortable: true,
-		            formatter: function(value, row, index) {
-		                return $.common.sprintf("%s姣", value);
-		            }
-		        },
-		        {
-		            title: '鎿嶄綔',
-		            align: 'center',
-		            formatter: function(value, row, index) {
-		                var actions = [];
-		                actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>璇︾粏</a>');
-		                return actions.join('');
-		            }
-		        }]
-		    };
-		    $.table.init(options);
-		});
-		
-		function queryParams(params) {
-			var search = $.table.queryParams(params);
-			search.params = {
-			    beginTime : beginOfTime($("#startTime").val()),
-			    endTime : endOfTime($("#endTime").val())
-			};
-			search.businessTypes = $.common.join($('#businessTypes').selectpicker('val'));
-			return search;
-		}
-		
-		function searchPre() {
-		    $.table.search('operlog-form', 'bootstrap-table');
-		}
-		
-		function resetPre() {
-			resetDate();
-			$("#operlog-form")[0].reset();
-			$("#businessTypes").selectpicker('refresh');
-			$.table.search('operlog-form', 'bootstrap-table', 1);
-		}
-	</script>
+                {
+                    field: 'businessType',
+                    title: '鎿嶄綔绫诲瀷',
+                    align: 'center',
+                    formatter: function (value, row, index) {
+                        return $.table.selectDictLabel(datas, value);
+                    }
+                },
+                {
+                    field: 'bizType',
+                    title: '涓氬姟绫诲瀷',
+                    align: 'center',
+                    formatter: function (value, row, index) {
+                        return $.table.selectDictLabel(bizTypeDatas, value);
+                    }
+                },
+                {
+                    field: 'operName',
+                    title: '鎿嶄綔浜哄憳',
+                    sortable: true
+                },
+                {
+                    field: 'deptName',
+                    title: '閮ㄩ棬鍚嶇О'
+                },
+                {
+                    field: 'operIp',
+                    title: '鎿嶄綔鍦板潃'
+                },
+                {
+                    field: 'operLocation',
+                    title: '鎿嶄綔鍦扮偣'
+                },
+                {
+                    field: 'status',
+                    title: '鎿嶄綔鐘舵��',
+                    align: 'center',
+                    formatter: function (value, row, index) {
+                        if (value == 0) {
+                            return '<span class="badge badge-primary">鎴愬姛</span>';
+                        } else if (value == 1) {
+                            return '<span class="badge badge-danger">澶辫触</span>';
+                        }
+                    }
+                },
+                {
+                    field: 'operTime',
+                    title: '鎿嶄綔鏃堕棿',
+                    sortable: true
+                },
+                {
+                    field: 'costTime',
+                    title: '娑堣�楁椂闂�',
+                    sortable: true,
+                    formatter: function (value, row, index) {
+                        return $.common.sprintf("%s姣", value);
+                    }
+                },
+                {
+                    title: '鎿嶄綔',
+                    align: 'center',
+                    formatter: function (value, row, index) {
+                        var actions = [];
+                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>璇︾粏</a>');
+                        return actions.join('');
+                    }
+                }]
+        };
+        $.table.init(options);
+    });
+
+    function queryParams(params) {
+        var search = $.table.queryParams(params);
+        search.params = {
+            beginTime: beginOfTime($("#startTime").val()),
+            endTime: endOfTime($("#endTime").val())
+        };
+        search.businessTypes = $.common.join($('#businessTypes').selectpicker('val'));
+        return search;
+    }
+
+    function searchPre() {
+        $.table.search('operlog-form', 'bootstrap-table');
+    }
+
+    function resetPre() {
+        resetDate();
+        $("#operlog-form")[0].reset();
+        $("#businessTypes").selectpicker('refresh');
+        $.table.search('operlog-form', 'bootstrap-table', 1);
+    }
+</script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.3