人口基本信息- 放开人口信息脱敏后数据的分页导出Excel

This commit is contained in:
java_cuibaocheng@163.com 2024-01-08 15:33:34 +08:00
parent 4e7e404684
commit 6a13451a57
2 changed files with 42 additions and 2 deletions

View File

@ -1341,6 +1341,9 @@
population_population_info t1
WHERE
t1.is_delete = 0
<if test="tabLevel != null and tabLevel != '' and tabLevel == '特别关注' ">
AND t1.creator = #{creator}
</if>
<if test="creator != null and creator != ''">
AND t1.creator = #{creator}
</if>

View File

@ -22,6 +22,21 @@
#queryTab{
background-color: #FFFFFF;
}
.layui-form-checkbox:nth-of-type(1) span {
background-color: #db4343;
}
.layui-form-checkbox:nth-of-type(2) span {
background-color: #F48208;
}
.layui-form-checkbox:nth-of-type(3) span {
background-color: #F4CF08;
}
.layui-form-checkbox:nth-of-type(4) span {
background-color: #08A7F4;
}
.layui-form-checkbox:nth-of-type(5) span {
background-color: #08F422;
}
</style>
</head>
<body>
@ -114,6 +129,15 @@
<i class="fa fa-lg fa-search"></i> 搜索
</button>
</div>
<div class="layui-form-item">
<div class="layui-input-block layui-form" style="margin-left: 0px;margin-top: 5px;">
<input type="checkbox" name="tabLevel" value="特别关注" title="特别关注">
<input type="checkbox" name="tabLevel" value="及时关注" title="及时关注">
<input type="checkbox" name="tabLevel" value="一般关注" title="一般关注">
<input type="checkbox" name="tabLevel" value="重点关注" title="重点关注">
<input type="checkbox" name="tabLevel" value="日常关注" title="日常关注">
</div>
</div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 -->
<script type="text/html" id="headerToolBar">
@ -355,7 +379,7 @@
id: 'dataTable',
url: top.restAjax.path(tableUrl, []),
width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 90,
height: $win.height() - 145,
defaultToolbar: [],
limit: 20,
limits: [20, 40, 60, 80, 100, 200],
@ -463,6 +487,17 @@
});
}
function getTabLevel() {
var values = new Array();
$('input[name="tabLevel"]:checked').each(function() {
values.push($(this).val()); // 将选中的值添加到数组中
});
if (values.length < 1) {
return "";
}
return values.join(",");
}
// 重载表格
function reloadTable(currentPage) {
var data = getParams();
@ -472,12 +507,14 @@
page: {
curr: currentPage
},
height: $win.height() - 90,
height: $win.height() - 145,
});
}
function getParams() {
var tabLevel = getTabLevel();
var dataParams = {
tabLevel: tabLevel,
name: $('#name').val(),
idcardType: $('#idcardType').val(),
idcard: $('#idcard').val(),