From 9091882ecfd8365c37fd6eda9e59ad3d66b88bca Mon Sep 17 00:00:00 2001
From: "jian.wang" <824612544@qq.com>
Date: Thu, 20 Jun 2024 09:33:02 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=97=85=E6=A1=88=E6=B5=8F?=
=?UTF-8?q?=E8=A7=88=E6=97=A5=E5=BF=97=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/otherManage/recordLogList.jsp | 170 ++++++++++++++
.../static/js/otherManage/recordLogList.js | 209 ++++++++++++++++++
2 files changed, 379 insertions(+)
create mode 100644 src/main/webapp/WEB-INF/views/otherManage/recordLogList.jsp
create mode 100644 src/main/webapp/static/js/otherManage/recordLogList.js
diff --git a/src/main/webapp/WEB-INF/views/otherManage/recordLogList.jsp b/src/main/webapp/WEB-INF/views/otherManage/recordLogList.jsp
new file mode 100644
index 0000000..14480a8
--- /dev/null
+++ b/src/main/webapp/WEB-INF/views/otherManage/recordLogList.jsp
@@ -0,0 +1,170 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+
+<%@ include file="/WEB-INF/jspf/common.jspf" %>
+
+
+
+
+ 其他管理
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
+
+
+
--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
--%>
+
+
+
+
+
+
diff --git a/src/main/webapp/static/js/otherManage/recordLogList.js b/src/main/webapp/static/js/otherManage/recordLogList.js
new file mode 100644
index 0000000..9ec23f0
--- /dev/null
+++ b/src/main/webapp/static/js/otherManage/recordLogList.js
@@ -0,0 +1,209 @@
+var pageNumber;
+$('#mytab').bootstrapTable({
+ toolbar: '#toolbar', //工具按钮用哪个容器
+ striped: true, //是否显示行间隔色
+ cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+ pagination: true, //是否显示分页(*)
+ sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
+ paginationPreText : '上一页',
+ paginationNextText : '下一页',
+ pageNumber: 1, //初始化加载第一页,默认第一页
+ pageSize: 10, //每页的记录行数(*)
+ pageList: [5,10,15,20,50,1000],//可供选择的每页的行数(*)
+ height: $(window).height()-109, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度
+ columns:[
+ {
+ title:'全选',
+ field:'select',
+ checkbox:true,
+ width:25,
+ align:'center',
+ valign:'middle'
+ },
+ {
+ field: 'no',
+ title: '序号',
+ sortable: true,
+ formatter: function (value, row, index) {
+ //获取每页显示的数量
+ var pageSize=$('#mytab').bootstrapTable('getOptions').pageSize;
+ //获取当前是第几页
+ var pageNumber=$('#mytab').bootstrapTable('getOptions').pageNumber;
+ //返回序号,注意index是从0开始的,所以要加上1
+ return pageSize * (pageNumber - 1) + index + 1;
+ }
+ },
+ {
+ title:'操作人账号',
+ field:'creater',
+ },
+ {
+ title:'日志主题',
+ field:'logTitle',
+ },
+ {
+ title:'日志内容',
+ field:'logContent',
+ },
+ {
+ title:'病案号',
+ field:'remark',
+ },
+ {
+ title:'操作时间',
+ field:'createDate',
+ },
+ {
+ title:'操作',
+ field:'id',
+ formatter: function(value,row,index){
+ var deleteOper = row.deleteOper;
+ if(deleteOper == 1){
+ var editanddrop = '';
+ return editanddrop;
+ }
+ }
+ }
+ ],
+ locale:'zh-CN',//中文支持,
+ url:path+'/otherManage/getLogList',//排序方式
+ queryParams: function (params) {
+ return{
+ limit : params.limit, // 每页显示数量
+ offset : params.offset, // SQL语句起始索引
+ page : (params.offset / params.limit) + 1, //当前页码,
+ startTime:$("#startTime1").val(),
+ endTime:$("#endTime1").val(),
+ creater:$("#creater").val(),
+ logTitle: "病案浏览",
+ logContent:$("#logContent").val()
+ }
+ },
+ //选中单个复选框
+ onCheck:function(row){
+ var checks = $("#checks").val();
+ $("#checks").val(checks+=row.logId + ",");
+ },
+ //取消单个复选框
+ onUncheck:function(row){
+ var checks = $("#checks").val();
+ checks = checks.replace(row.logId + ",");
+ $("#checks").val(checks);
+ },
+ //全选
+ onCheckAll:function(rows){
+ $("#checks").val("");
+ var checks = '';
+ for(var i=0;i