Commit 8d1f77f9 by yanru

系统管理权限查询页面

parent b3fe09dc
package com.xzxtshiro.controller.admin;
import com.xzxtshiro.pojo.BaseModel;
import com.xzxtshiro.pojo.SysUser;
import com.xzxtshiro.pojo.TbYwZcxzLly;
import com.xzxtshiro.pojo.TbYwZczlLly;
import com.xzxtshiro.service.SearchService;
import com.xzxtshiro.service.SysDictitemService;
import com.xzxtshiro.service.SysRoleService;
import com.xzxtshiro.service.SysUserService;
import com.xzxtshiro.util.ZtreeDataUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.annotation.MultipartConfig;
/**
* Created by wsy on 2018/10/16.
*/
@Controller
@RequestMapping(value = "/admin/search")
@MultipartConfig
public class SearchController {
@Autowired
SearchService searchService;
@Autowired
private SysUserService userService;
@Autowired
private SysRoleService roleService;
@Autowired
private SysDictitemService dictitemService;
/**
* 地市/县级管理员(页面跳转)
*/
@RequestMapping(value = "/dsxjglyListIndex",method = RequestMethod.GET)
public String search(Model model){
//获取unit字典码数据
setZtreeData(model,userService,dictitemService,roleService);
return "admin/search/dsxjglyList";
}
/**
* 地市/县级管理员list
* @return
*/
@ResponseBody
@RequestMapping(value = "/dsxjglyList",method = RequestMethod.GET)
public BaseModel dsxjglyList(SysUser user){
user = SysUserController.setQueryParam(user);
return searchService.selectDsxjglyPage(user);
}
/**
* 专项业务省厅负责人(审批人)页面跳转
* @return
*/
@RequestMapping(value = "/zxywstfzrIndex",method = RequestMethod.GET)
public String zxywstfzrIndex(Model model){
//获取unit字典码数据
setZtreeData(model,userService,dictitemService,roleService);
return "admin/search/zxywstfzrList";
}
/**
* 专项业务省厅负责人(审批人)List
* @return
*/
@ResponseBody
@RequestMapping(value = "/zxywstfzrList",method = RequestMethod.GET)
public BaseModel zxywstfzrList(SysUser user) {
user = SysUserController.setQueryParam(user);
return searchService.selectZxastfzrUserPage(user);
}
/**
* 侦查指令联络员页面跳转
* @return
*/
@RequestMapping(value = "/zczlLlyIndex",method = RequestMethod.GET)
public String zczlLlyIndex(Model model){
//设置unit标志,区分CODE_UNIT和CODE_XZUNIT
model.addAttribute("flag","刑侦UNIT");
//获取unit字典码数据
setZtreeData(model,userService,dictitemService,roleService);
return "admin/search/zczlLlyList";
}
/**
* 侦查指令联络员List
* @return
*/
@ResponseBody
@RequestMapping(value = "/zczlLlyList",method = RequestMethod.GET)
public BaseModel zczlLlyList(TbYwZczlLly tbYwZczlLly) {
return searchService.selectZczlLlyPage(tbYwZczlLly);
}
/**
* 侦查协作联络员页面跳转
* @return
*/
@RequestMapping(value = "/zcxzLlyIndex",method = RequestMethod.GET)
public String zcxzLlyIndex(Model model){
//获取unit字典码数据
setZtreeData(model,userService,dictitemService,roleService);
return "admin/search/zcxzLlyList";
}
/**
* 侦查协作联络员List
* @return
*/
@ResponseBody
@RequestMapping(value = "/zcxzLlyList",method = RequestMethod.GET)
public BaseModel zcxzLlyList(TbYwZcxzLly tbYwZcxzLly) {
return searchService.selectZcxzLlyPage(tbYwZcxzLly);
}
/**
* 技术维护人员页面跳转
* @return
*/
@RequestMapping(value = "/jswhryIndex",method = RequestMethod.GET)
public String jswhryIndex(){
return "admin/search/jswhryList";
}
/**
* 设置添加用户页面所需要的角色和单位代码数据
*/
private static void setZtreeData(Model model,SysUserService userService,SysDictitemService dictitemService, SysRoleService roleService) {
new ZtreeDataUtil().setUnitAndRole(model,dictitemService,userService,roleService);
}
}
package com.xzxtshiro.dao;
import com.xzxtshiro.pojo.SysUser;
import com.xzxtshiro.pojo.TbYwZcxzLly;
import com.xzxtshiro.pojo.TbYwZczlLly;
import java.util.List;
/**
* Created by admin on 2018/10/19.
*/
public interface SearchDao {
//地市县级管理员
//山西特殊情况
List<SysUser> selectSxDsxjglyListByCondition(SysUser user);
Integer selectSxDsxjglyListCountByCondition(SysUser user);
//其他省份
List<SysUser> selectDsxjglyListByCondition(SysUser user);
Integer selectDsxjglyListCountByCondition(SysUser user);
//专项业务省厅负责人
List<SysUser> selectZxajstfzrUserByCondition(SysUser user);
Integer selectZxajstfzrUserCountByCondition(SysUser user);
//侦查指令联络员
List<TbYwZczlLly> selectZczlLlyByCondition(TbYwZczlLly tbYwZczlLly);
Integer selectZczlLlyCountByCondition(TbYwZczlLly tbYwZczlLly);
//侦查协作联络员
List<TbYwZcxzLly> selectZcxzLlyByCondition(TbYwZcxzLly tbYwZcxzLly);
Integer selectZcxzLlyCountByCondition(TbYwZcxzLly tbYwZcxzLly);
}
package com.xzxtshiro.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j;
import java.io.Serializable;
/**
* Created by wsy on 2018/10/23.
* 侦查协作联络员
*/
@Data
@Log4j
@NoArgsConstructor
@AllArgsConstructor
public class TbYwZcxzLly extends BaseModel implements Serializable {
private static final long serialVersionUID = 1L;
protected String xxzjbh;//信息主键编号
protected String username;//用户账号
protected String unitcode;//单位代码
protected String unitname;//单位名称
protected String policemanid;//用户警号
protected String truename;//用户姓名
protected String telephone;//联系电话
}
package com.xzxtshiro.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j;
import java.io.Serializable;
/**
* Created by wsy on 2018/10/23.
* 侦查指令联络员
*/
@Data
@Log4j
@NoArgsConstructor
@AllArgsConstructor
public class TbYwZczlLly extends BaseModel implements Serializable {
private static final long serialVersionUID = 1L;
protected String xxzjbh;//信息主键编号
protected String username;//用户账号
protected String unitcode;//单位代码
protected String unitname;//单位名称
protected String policemanid;//用户警号
protected String truename;//用户姓名
protected String telephone;//联系电话
}
package com.xzxtshiro.service;
import com.xzxtshiro.pojo.BaseModel;
import com.xzxtshiro.pojo.SysUser;
import com.xzxtshiro.pojo.TbYwZcxzLly;
import com.xzxtshiro.pojo.TbYwZczlLly;
/**
* Created by wsy on 2018/10/19.
*/
public interface SearchService {
BaseModel selectDsxjglyPage(SysUser user);//地市县级管理员
BaseModel selectZxastfzrUserPage(SysUser user);//专项案件省厅负责人
BaseModel selectZczlLlyPage(TbYwZczlLly tbYwZczlLly);//侦查指令联络员
BaseModel selectZcxzLlyPage(TbYwZcxzLly tbYwZcxzLly);//侦查协作联络员
}
package com.xzxtshiro.service.imp;
import com.xzxtshiro.dao.SearchDao;
import com.xzxtshiro.pojo.BaseModel;
import com.xzxtshiro.pojo.SysUser;
import com.xzxtshiro.pojo.TbYwZcxzLly;
import com.xzxtshiro.pojo.TbYwZczlLly;
import com.xzxtshiro.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by wsy on 2018/10/19.
*/
@Service
public class SearchServiceImpl implements SearchService {
@Autowired
SearchDao searchDao;
@Override
public BaseModel selectDsxjglyPage(SysUser user) {
String dw = user.getUnitcode();
List<SysUser> data = null;
Integer count = null;
if(dw!=null&&!"".equals(dw)){
if("14".equals(dw.substring(0,2))){
data = searchDao.selectSxDsxjglyListByCondition(user);
count = searchDao.selectSxDsxjglyListCountByCondition(user);
}else {
data = searchDao.selectDsxjglyListByCondition(user);
count = searchDao.selectDsxjglyListCountByCondition(user);
}
}
BaseModel userPage = new BaseModel();
userPage.setCount(count);
userPage.setData(data);
return userPage;
}
@Override
public BaseModel selectZxastfzrUserPage(SysUser user){
List<SysUser> data = searchDao.selectZxajstfzrUserByCondition(user);
Integer count = searchDao.selectZxajstfzrUserCountByCondition(user);
BaseModel userPage = new BaseModel();
userPage.setCount(count);
userPage.setData(data);
return userPage;
}
@Override
public BaseModel selectZczlLlyPage(TbYwZczlLly tbYwZczlLly) {
List<TbYwZczlLly> data = searchDao.selectZczlLlyByCondition(tbYwZczlLly);
Integer count = searchDao.selectZczlLlyCountByCondition(tbYwZczlLly);
BaseModel zczlLlyPage = new BaseModel();
zczlLlyPage.setCount(count);
zczlLlyPage.setData(data);
return zczlLlyPage;
}
@Override
public BaseModel selectZcxzLlyPage(TbYwZcxzLly tbYwZcxzLly) {
List<TbYwZcxzLly> data = searchDao.selectZcxzLlyByCondition(tbYwZcxzLly);
Integer count = searchDao.selectZcxzLlyCountByCondition(tbYwZcxzLly);
BaseModel zcxzLlyPage = new BaseModel();
zcxzLlyPage.setCount(count);
zcxzLlyPage.setData(data);
return zcxzLlyPage;
}
}
......@@ -49,7 +49,11 @@ public class ZtreeDataUtil {
String unitStr = user.getUnitcode();
String usergrade = user.getGrade();
SysDictitem dictitem = new SysDictitem();
if(model.containsAttribute("flag")) {//如果含有flag标志,说明是groupid是CODE_ZCUNIT
dictitem.setGroupid("CODE_XZUNIT");
}else {
dictitem.setGroupid("SHIRO_UNIT");
}
dictitem.setCodeStr(unitStr.substring(0,2)+"%");
XzxtRestResult xzxtRestResult=new XzxtRestResult();
//从缓存中取内容
......
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>系统管理权限查询界面</title>
<jsp:include page="search_header.jsp"></jsp:include>
</head>
<body>
<div class="back">
<jsp:include page="search_common.jsp"></jsp:include>
<article class="main-cen-box">
<div class="cxtj">
<fieldset>
<legend>地市/县级管理员</legend>
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12 searchDiv">
<div class="layui-form-mid">
<label class="layui-form-label">姓名:</label>
<div class="layui-input-inline">
<input type="text" name="trueName" id="trueName" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">警号:</label>
<div class="layui-input-inline">
<input type="text" name="policemanid" id="policemanid" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label" style="width:auto;">手机号:</label>
<div class="layui-input-inline">
<input type="text" name="telephone" id="telephone" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">单位:</label>
<div class="layui-input-inline">
<input type="text" name="unitname" autocomplete="off" id="unitname" lay-verify="required"
class="layui-input code-icon" onclick="checkTree('myUnitTree');">
<input type="text" id="unitcode" Name="unitcode" style="display: none;">
<div id="myUnitTree" style="display: none">
<div class="ISearch">
<input type="text" autocomplete="off">
<span class="layui-btn layui-btn-normal inpSearch">搜索</span>
<span class="layui-btn layui-btn-normal clearSer">清空</span>
<span class="layui-btn layui-btn-normal entSelect">确定</span>
</div>
<ul id="unit" class="ztree"></ul>
</div>
</div>
</div>
<div class="layui-form-mid">
<div class="layui-input-inline">
<input type="radio" name="grade" class="radio_inp" checked value="D">地市
<input type="radio" name="grade" class="radio_inp" value="X">县级
<input type="hidden" id="grade" value="">
</div>
</div>
<div class="layui-form-item" style="display: inline-block;width:100%;text-align: center;">
<div class="layui-form-item demoTable">
<button class="layui-btn layui-btn-normal queryUserList" data-type="reload" style="margin-left: 20px;">查询</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 20px;" onclick="reset();">清空</button>
</div>
</div>
<table class="layui-table" id="userTable"
lay-filter="user">
</table>
</div>
</div>
</div>
</fieldset>
</div>
<div class="main-table-div"></div>
</article>
</div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script>
layui.use(['table', 'element','jquery'], function () {
$('.demoTable .layui-btn').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
//弹出层
var msg = "${msg}";
if (msg.length != "") {
layer.msg(msg, {icon: 6});
$("#msg").text("");
}
var data = ${unit};
var zNodes =[];
for (var i=0;i<data.length;i++){
zNodes.push({id:data[i].codeStr,pId:data[i].pid,name:data[i].name,open:false,file:"core/simpleData"});
}
setTree(zNodes,"unit","nocheck","unitcode","unitname","");
});
</script>
<script>
$(document).ready(function() {
$('input[type=radio][name=grade]').change(function() {
$('#grade').attr("value",this.value);
});
});
layui.use('table', function(){
var table = layui.table;
//方法级渲染
table.render({
elem: '#userTable',
limit: 10,//默认采用10
url: '${pageContext.request.contextPath}/admin/search/dsxjglyList',
cols: [[
{field:'rn',title:'序号',align:'center', width:60},
{field:'trueName',title:'姓名',align:'center', width:90, sort: true},
{field:'policemanid',title:'警号', align:'center',width:100, sort: true},
{field:'telephone', title:'手机号',align:'center',width:260, sort: true},
{field:'unitname',title:'单位', align:'center',width:250, sort: true}
]],
id: 'testReload',
page: true,
done: function(res, curr, count){
$("[data-field='id']").css('display','none');
},
// height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开
});
var $ = layui.$, active = {
reload: function(){
var trueName = cheNull($('#trueName').val());
var policemanid = cheNull($('#policemanid').val());
var telephone = cheNull($('#telephone').val());
var unitcode = cheNull($('#unitcode').val());
var grade = cheNull($('#grade').val());
table.reload('testReload', {
where: {
trueName: trueName,
policemanid:policemanid,
telephone:telephone,
unitcode:unitcode,
grade:grade
},
page: {
curr: 1 //重新从第 1 页开始
},
done: function(res, curr, count){
this.where={};
}
});
}
};
$('.queryUserList').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
});
function cheNull(str) {
if (str==""){
return undefined;
}else{
return str;
}
}
</script>
</body>
</html>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>技术维护人员</title>
<jsp:include page="search_header.jsp"></jsp:include>
</head>
<body>
<div class="back">
<jsp:include page="search_common.jsp"></jsp:include>
<article class="main-cen-box">
<div class="cxtj">
<fieldset>
<legend>技术维护人员</legend>
<div class="main-table-div" style="margin: 10px">
<div class="layui-form">
<table class="layui-table">
<colgroup>
<col width="150">
<col width="150">
<col width="300">
<col>
</colgroup>
<thead>
<tr>
<th>序号</th>
<th>姓名</th>
<th>负责模块</th>
<th>服务电话</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>闫茹</td>
<td>专项案件</td>
<td rowspan="3">15810117980</td>
</tr>
<tr>
<td>2</td>
<td>曹崟</td>
<td>侦查协作、侦查指令</td>
</tr>
<tr>
<td>3</td>
<td>王焱</td>
<td>后台服务器、数据维护</td>
</tr>
</tbody>
</table>
</div>
</div>
</fieldset>
</div>
<div class="main-table-div"></div>
</article>
</div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
</body>
</html>
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<header class="heade-box"><h1 class="page-title">系统管理权限查询界面</h1></header>
<aside class="left-menu-box">
<ul class="left-list">
<li class="left-list-ttitle">
<i class="fa fa-user"></i> <a href="${pageContext.request.contextPath}/admin/search/dsxjglyListIndex">地市/县级管理员</a>
</li>
<li class="left-list-ttitle">
<i class="fa fa-sitemap"></i> <a href="${pageContext.request.contextPath}/admin/search/zxywstfzrIndex">专项业务省厅负责人(审批人)</a>
</li>
<li class="left-list-ttitle">
<i class="fa fa-tag"></i> <a href="${pageContext.request.contextPath}/admin/search/zczlLlyIndex">侦查指令联络员</a>
</li>
<li class="left-list-ttitle">
<i class="fa fa-assistive-listening-systems"></i> <a href="${pageContext.request.contextPath}/admin/search/zcxzLlyIndex">侦查协作联络员</a>
</li>
<li class="left-list-ttitle">
<i class="fa fa-bug"></i> <a href="${pageContext.request.contextPath}/admin/search/jswhryIndex">技术维护人员</a>
</li>
</ul>
</aside>
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
.layui-form-item{
display: inline;
}
.layui-form-item>.layui-input-block>input{
width: 20%;
}
.searchDiv label{padding:3px 15px;}
</style>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layui/css/layui.css" media="all">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/common/css/common.css" media="all">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/mycss/style.css" media="all">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/ztree/metroStyle/metroStyle.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/font-awesome/css/font-awesome.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/h-ui/css/new-wrap.css" media="all">
<script src="${pageContext.request.contextPath}/resources/jquery-3.1.0.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/layui/laydate/laydate.js"></script>
<script src="${pageContext.request.contextPath}/resources/ztree/ztree/jquery.ztree.core.js"></script>
<script src="${pageContext.request.contextPath}/resources/ztree/ztree/jquery.ztree.excheck.js"></script>
<script src="${pageContext.request.contextPath}/resources/ztree/ztree/jquery.ztree.exhide.js"></script>
<script src="${pageContext.request.contextPath}/resources/common/common.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/search/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/search/css/font-awesome.min.css">
<link rel="stylesheet" href="${pagoeCntext.request.contextPath}/resources/search/css/base_initialize.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/resources/search/css/style.css">
\ No newline at end of file
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>侦查协作联络员</title>
<jsp:include page="search_header.jsp"></jsp:include>
</head>
<body>
<div class="back">
<jsp:include page="search_common.jsp"></jsp:include>
<article class="main-cen-box">
<div class="cxtj">
<fieldset>
<legend>侦查协作联络员</legend>
<div class="layui-container">
<!--
作者:yuton.yao@qq.com
时间:2017-09-01
描述:引入公共html
--><%--
<jsp:include page="inc.jsp"></jsp:include>--%>
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12 searchDiv">
<div class="layui-form-mid">
<label class="layui-form-label">姓名:</label>
<div class="layui-input-inline">
<input type="text" name="truename" id="truename" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">警号:</label>
<div class="layui-input-inline">
<input type="text" name="policemanid" id="policemanid" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label" style="width:auto;">手机号:</label>
<div class="layui-input-inline">
<input type="text" name="telephone" id="telephone" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">单位:</label>
<div class="layui-input-inline">
<input type="text" name="unitname" autocomplete="off" id="unitname" lay-verify="required"
class="layui-input code-icon" onclick="checkTree('myUnitTree');">
<input type="text" id="unitcode" Name="unitcode" style="display: none;">
<%--<span class="layui-btn" id="checkPer" onclick="checkTree('myUnitTree');">选择单位</span>--%>
<div id="myUnitTree" style="display: none">
<div class="ISearch">
<input type="text" autocomplete="off">
<span class="layui-btn layui-btn-normal inpSearch">搜索</span>
<span class="layui-btn layui-btn-normal clearSer">清空</span>
<span class="layui-btn layui-btn-normal entSelect">确定</span>
</div>
<ul id="unit" class="ztree"></ul>
</div>
</div>
</div>
<div class="layui-form-item" style="display: inline-block;width:100%;text-align: center;">
<div class="layui-form-item demoTable">
<button class="layui-btn layui-btn-normal queryUserList" data-type="reload" style="margin-left: 20px;">查询</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 20px;" onclick="reset();">清空</button>
</div>
</div>
<table class="layui-table" id="userTable"
lay-filter="user">
</table>
</div>
</div>
</div>
</fieldset>
</div>
<div class="main-table-div"></div>
</article>
</div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script>
layui.use(['table', 'element','jquery'], function () {
$('.demoTable .layui-btn').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
//弹出层
var msg = "${msg}";
if (msg.length != "") {
layer.msg(msg, {icon: 6});
$("#msg").text("");
}
var data = ${unit};
var zNodes =[];
for (var i=0;i<data.length;i++){
zNodes.push({id:data[i].codeStr,pId:data[i].pid,name:data[i].name,open:false,file:"core/simpleData"});
}
setTree(zNodes,"unit","nocheck","unitcode","unitname","");
});
</script>
<script>
layui.use('table', function(){
var table = layui.table;
//方法级渲染
table.render({
elem: '#userTable',
limit: 10,//默认采用10
url: '${pageContext.request.contextPath}/admin/search/zcxzLlyList',
cols: [[
{field:'rn',title:'序号',align:'center', width:60},
{field:'truename',title:'姓名',align:'center', width:90, sort: true},
{field:'policemanid',title:'警号', align:'center',width:100, sort: true},
{field:'telephone', title:'手机号',align:'center',width:260, sort: true},
{field:'unitname',title:'单位', align:'center',width:250, sort: true}
]],
id: 'testReload',
page: true,
done: function(res, curr, count){
$("[data-field='id']").css('display','none');
},
// height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开
});
var $ = layui.$, active = {
reload: function(){
var truename = cheNull($('#truename').val());
var policemanid = cheNull($('#policemanid').val());
var telephone = cheNull($('#telephone').val());
var unitcode = cheNull($('#unitcode').val());
table.reload('testReload', {
where: {
truename: truename,
policemanid:policemanid,
telephone:telephone,
unitcode:unitcode
},
page: {
curr: 1 //重新从第 1 页开始
},
done: function(res, curr, count){
this.where={};
}
});
}
};
$('.queryUserList').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
});
function cheNull(str) {
if (str==""){
return undefined;
}else{
return str;
}
}
</script>
</body>
</html>
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>侦查指令联络员</title>
<jsp:include page="search_header.jsp"></jsp:include>
</head>
<body>
<div class="back">
<jsp:include page="search_common.jsp"></jsp:include>
<article class="main-cen-box">
<div class="cxtj">
<fieldset>
<legend>侦查指令联络员</legend>
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12 searchDiv">
<div class="layui-form-mid">
<label class="layui-form-label">姓名:</label>
<div class="layui-input-inline">
<input type="text" name="truename" id="truename" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">警号:</label>
<div class="layui-input-inline">
<input type="text" name="policemanid" id="policemanid" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label" style="width:auto;">手机号:</label>
<div class="layui-input-inline">
<input type="text" name="telephone" id="telephone" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">单位:</label>
<div class="layui-input-inline">
<input type="text" name="unitname" autocomplete="off" id="unitname" lay-verify="required"
class="layui-input code-icon" onclick="checkTree('myUnitTree');">
<input type="text" id="unitcode" Name="unitcode" style="display: none;">
<%--<span class="layui-btn" id="checkPer" onclick="checkTree('myUnitTree');">选择单位</span>--%>
<div id="myUnitTree" style="display: none">
<div class="ISearch">
<input type="text" autocomplete="off">
<span class="layui-btn layui-btn-normal inpSearch">搜索</span>
<span class="layui-btn layui-btn-normal clearSer">清空</span>
<span class="layui-btn layui-btn-normal entSelect">确定</span>
</div>
<ul id="unit" class="ztree"></ul>
</div>
</div>
</div>
<div class="layui-form-item" style="display: inline-block;width:100%;text-align: center;">
<div class="layui-form-item demoTable">
<button class="layui-btn layui-btn-normal queryUserList" data-type="reload" style="margin-left: 20px;">查询</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 20px;" onclick="reset();">清空</button>
</div>
</div>
<table class="layui-table" id="userTable"
lay-filter="user">
</table>
</div>
</div>
</div>
</fieldset>
</div>
<div class="main-table-div"></div>
</article>
</div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script>
layui.use(['table', 'element','jquery'], function () {
$('.demoTable .layui-btn').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
//弹出层
var msg = "${msg}";
if (msg.length != "") {
layer.msg(msg, {icon: 6});
$("#msg").text("");
}
var data = ${unit};
var zNodes =[];
for (var i=0;i<data.length;i++){
zNodes.push({id:data[i].codeStr,pId:data[i].pid,name:data[i].name,open:false,file:"core/simpleData"});
}
setTree(zNodes,"unit","nocheck","unitcode","unitname","");
});
</script>
<script>
layui.use('table', function(){
var table = layui.table;
//方法级渲染
table.render({
elem: '#userTable',
limit: 10,//默认采用10
url: '${pageContext.request.contextPath}/admin/search/zczlLlyList',
cols: [[
{field:'rn',title:'序号',align:'center', width:60},
{field:'truename',title:'姓名',align:'center', width:90, sort: true},
{field:'policemanid',title:'警号', align:'center',width:100, sort: true},
{field:'telephone', title:'手机号',align:'center',width:260, sort: true},
{field:'unitname',title:'单位', align:'center',width:250, sort: true}
]],
id: 'testReload',
page: true,
done: function(res, curr, count){
$("[data-field='id']").css('display','none');
},
// height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开
});
var $ = layui.$, active = {
reload: function(){
var truename = cheNull($('#truename').val());
var policemanid = cheNull($('#policemanid').val());
var telephone = cheNull($('#telephone').val());
var unitcode = cheNull($('#unitcode').val());
table.reload('testReload', {
where: {
truename: truename,
policemanid:policemanid,
telephone:telephone,
unitcode:unitcode
},
page: {
curr: 1 //重新从第 1 页开始
},
done: function(res, curr, count){
this.where={};
}
});
}
};
$('.queryUserList').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
});
function cheNull(str) {
if (str==""){
return undefined;
}else{
return str;
}
}
</script>
</body>
</html>
<%--
Created by IntelliJ IDEA.
User: wsy
Date: 2018/10/23
Time: 12:10
To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>系统管理权限查询界面</title>
<jsp:include page="search_header.jsp"></jsp:include>
</head>
<body>
<div class="back">
<jsp:include page="search_common.jsp"></jsp:include>
<article class="main-cen-box">
<div class="cxtj">
<fieldset>
<legend>专项业务省厅负责人</legend>
<div class="layui-container">
<div class="layui-row">
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12 searchDiv">
<div class="layui-form-mid">
<label class="layui-form-label">姓名:</label>
<div class="layui-input-inline">
<input type="text" name="trueName" id="trueName" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">警号:</label>
<div class="layui-input-inline">
<input type="text" name="policemanid" id="policemanid" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label" style="width:auto;">手机号:</label>
<div class="layui-input-inline">
<input type="text" name="telephone" id="telephone" lay-verify="required"
class="layui-input">
</div>
</div>
<div class="layui-form-mid">
<label class="layui-form-label">单位:</label>
<div class="layui-input-inline">
<input type="text" name="unitname" autocomplete="off" id="unitname" lay-verify="required"
class="layui-input code-icon" onclick="checkTree('myUnitTree');">
<input type="text" id="unitcode" Name="unitcode" style="display: none;">
<%--<span class="layui-btn" id="checkPer" onclick="checkTree('myUnitTree');">选择单位</span>--%>
<div id="myUnitTree" style="display: none">
<div class="ISearch">
<input type="text" autocomplete="off">
<span class="layui-btn layui-btn-normal inpSearch">搜索</span>
<span class="layui-btn layui-btn-normal clearSer">清空</span>
<span class="layui-btn layui-btn-normal entSelect">确定</span>
</div>
<ul id="unit" class="ztree"></ul>
</div>
</div>
</div>
<div class="layui-form-mid">
<div class="layui-input-inline">
<input type="radio" name="type" class="radio_inp" value="B01">命案
<input type="radio" name="type" class="radio_inp" value="B02">未知名尸体
<input type="radio" name="type" class="radio_inp" value="B03">失踪人员
<input type="radio" name="type" class="radio_inp" value="B04">涉枪
<input type="radio" name="type" class="radio_inp" value="B05">拐卖
<input type="hidden" id="type" value="">
</div>
</div>
<div class="layui-form-item" style="display: inline-block;width:100%;text-align: center;">
<div class="layui-form-item demoTable">
<button class="layui-btn layui-btn-normal queryUserList" data-type="reload" style="margin-left: 20px;">查询</button>
<button class="layui-btn layui-btn-normal" style="margin-left: 20px;" onclick="reset();">清空</button>
</div>
</div>
<table class="layui-table" id="userTable"
lay-filter="user">
</table>
</div>
</div>
</div>
</fieldset>
</div>
<div class="main-table-div"></div>
</article>
</div>
<script src="${pageContext.request.contextPath}/resources/layui/layui.js"></script>
<script>
layui.use(['table', 'element','jquery'], function () {
$('.demoTable .layui-btn').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
//弹出层
var msg = "${msg}";
if (msg.length != "") {
layer.msg(msg, {icon: 6});
$("#msg").text("");
}
var data = ${unit};
var zNodes =[];
for (var i=0;i<data.length;i++){
zNodes.push({id:data[i].codeStr,pId:data[i].pid,name:data[i].name,open:false,file:"core/simpleData"});
}
setTree(zNodes,"unit","nocheck","unitcode","unitname","");
});
</script>
<script>
$(document).ready(function() {
$('input[type=radio][name=type]').change(function() {
$('#type').attr("value",this.value);
});
});
layui.use('table', function(){
var table = layui.table;
//方法级渲染
table.render({
elem: '#userTable',
limit: 10,//默认采用10
url: '${pageContext.request.contextPath}/admin/search/zxywstfzrList',
cols: [[
{field:'rn',title:'序号',align:'center', width:60},
{field:'trueName',title:'姓名',align:'center', width:90, sort: true},
{field:'policemanid',title:'警号', align:'center',width:100, sort: true},
{field:'telephone', title:'手机号',align:'center',width:260, sort: true},
{field:'unitname',title:'单位', align:'center',width:250, sort: true}
]],
id: 'testReload',
page: true,
done: function(res, curr, count){
$("[data-field='id']").css('display','none');
},
// height: 480 //添加这个高度后,出现了滚动条,导致表头和表格体的竖格现对不齐,后期有需要再放开
});
var $ = layui.$, active = {
reload: function(){
var trueName = cheNull($('#trueName').val());
var policemanid = cheNull($('#policemanid').val());
var telephone = cheNull($('#telephone').val());
var unitcode = cheNull($('#unitcode').val());
var type = cheNull($('#type').val());
table.reload('testReload', {
where: {
trueName: trueName,
policemanid:policemanid,
telephone:telephone,
unitcode:unitcode,
type:type
},
page: {
curr: 1 //重新从第 1 页开始
},
done: function(res, curr, count){
this.where={};
}
});
}
};
$('.queryUserList').on('click', function(){
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
});
function cheNull(str) {
if (str==""){
return undefined;
}else{
return str;
}
}
</script>
</body>
</html>
\ No newline at end of file
@charset "UTF-8";
/*css 初始化 */
html,
body,
ul,
li,
ol,
dl,
dd,
dt,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
legend,
img {
margin: 0;
padding: 0;
}
fieldset,
img,
input,
button {
border: none;
padding: 0;
margin: 0;
outline-style: none;
}
/*清除边框外发光 */
ul,
ol {
list-style: none;
/* 清除左侧小圆点标注 */
}
input {
padding-top: 0;
padding-bottom: 0;
font-family: "SimSun", "宋体";
}
select,
input {
vertical-align: middle;
}
select,
input,
textarea {
font-size: 12px;
margin: 0;
}
textarea {
resize: none;
/*防止拖动*/
}
img {
border: 0;
vertical-align: middle;
/* 去掉图片底部默认的3像素空白缝隙*/
}
table {
border-collapse: collapse;
/* 边框合并 */
}
body {
font: 12px/150% helvetica, Verdana, "\5b8b\4f53";
/* 宋体 */
color: #333;
background: #fff
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
/* 清除浮动 */
}
.clearfix:after {
clear: both;
/* 清除浮动 */
}
.clearfix {
*zoom: 1;
/*IE/7/6*/
}
a {
color: #666;
text-decoration: none;
/* 清除下划线 */
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-decoration: none;
font-weight: normal;
font-size: 100%;
}
s,
i,
em {
font-style: normal;
text-decoration: none;
}
.col-red {
color: #C81623!important;
}
/*公共类*/
.w {
width: 1210px;
margin: 0 auto;
/*版心 提取 */
}
.fl {
float: left
}
.fr {
float: right
}
.al {
text-align: left
}
.ac {
text-align: center
}
.ar {
text-align: right
}
.hide {
display: none
}
.show{
display: block;
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
html,body{
/*height: 100%;*/
/*overflow: hidden;*/
margin: 0;
padding: 0;
}
body{
/*overflow: auto;*/
}
a:hover{
color: #56AADC;
text-decoration: none;
cursor: pointer;
}
a:visited {
color: #56AADC;
text-decoration: none;
}
.back{
background:url(../img/ocean.jpg) no-repeat center;
height: 100%;
overflow: hidden;
}
.heade-box{
position: relative;
height: 65px;
z-index: 1;
border-bottom: 1px solid #98bebb;
}
.page-title{
position: absolute;
top: 50%;
left: 45px;
font-size: 28px;
margin-top: -12px;
font-weight: bold;
font-family: helvetica;
text-align:center;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#b5b5b5), to(#fff)); /* 背景色渐变 */
-webkit-background-clip: text; /* 规定背景的划分区域 */
-webkit-text-fill-color: transparent; /* 防止字体颜色覆盖 */
}
.left-menu-box{
position: fixed;
width: 230px;
height: 100%;
overflow: auto;
top: 0;
left: 0px;
padding-top: 70px;
}
.main-cen-box{
/* padding: 0 10px; */
margin-left: 230px;
background-color: #fff;
height: 100%;
overflow: auto;
padding-bottom: 80px;
}
/* 左侧菜单栏 */
.left-list ul{
margin-left: 40px;
}
.left-list .left-list-ttitle{
height: 32px;
line-height: 32px;
font-family: helvetica;
padding-left: 13px;
color: #e5e5e5;
font-size: 14px;
}
.left-list li.active{
background-color: rgba(0, 0, 0, 0.3);
}
.left-list li:hover{
background-color: rgba(0, 0, 0, 0.1);
}
.left-list-ttitle a{
color: #e5e5e5;
}
.left-list-ftitle .fa{
font-size: 14px;
margin-right: 10px;
}
.necessary{
color: #f60;
}
/* 左侧收缩2 */
/* .left-sh{
width:100px;
height:0;
border-width:37px 0 37px 100px;
border-style:none solid solid;
border-color:red transparent red transparent;
} */
/* 右侧 */
.cxtj legend{
height: 36px;
line-height: 36px;
padding-left: 10px;
font-size: 14px;
background-color: #f1f1f1;
border: 1px solid #ccc;
border-bottom: 1px dashed #ccc;
color: #666;
font-weight: bold;
}
.cxtj table{
border: 1px solid #ccc;
border-top: none;
width: 100%;
/* color:#0066CC; */
color:#333;
font-size: 14px;
}
.cxtj table tr{
border: 1px dashed #f2f2f2;
}
.cxtj table td{
margin-top: -1px;
height: 34px;
line-height: 34px;
}
.cxtj table .textbox ,.layout_table .textbox{
display: inline-block;
height: 28px;
line-height: 28px;
border: 1px solid #ccc;
border-radius: 4px;
width: 80%;
}
.cxtj table .textbox-3{
width:92.5%;
}
.cxtj table input,.layout_table input{
height: 26px;
line-height: 26px;
margin-top: 0px;
width: 80%;
}
.cxtj table input[type=file],.layout_table input[type=file]{
border: 1px solid #ccc;
}
.radil_td{
color:#333;
font-size: 12px;
}
.cxtj table input.radio_inp{
width: 15px;
margin-left: 3px;
}
.cxtj table textarea{
resize: vertical;
border: 1px solid #ccc;
width: 95.5%;
}
.btn_a{
padding: 5px 12px;
color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
margin-right: 10px;
}
.btn_a:hover{
color: #fff;
}
.btn_search{
background-color: #3692C6;
border-color: #217cb1;
}
.btn_search:hover{
background-color: #217cb1;
}
.btn_empty{
background-color: #f60;
border-color: #d45602;
}
.btn_empty:hover{
background-color: #d45602;
}
.main-table-div{
margin-top: 10px;
}
.st-span{
border-radius: 10px;
padding: 3px 5px;
background-color: #f60;
color: #fff;
}
input[type=radio]{
margin: auto!important;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
// 左侧切换菜单
var left_list_ttitle = document.querySelectorAll(".left-list-ttitle");
var main_cen_box = document.querySelectorAll(".main-cen-box");
for(var i=0;i<left_list_ttitle.length;i++){
left_list_ttitle[i].index=i;
left_list_ttitle[i].onclick=function(){
for(var j=0;j<left_list_ttitle.length;j++){
left_list_ttitle[j].className="left-list-ttitle";
main_cen_box[j].style.display="none";
}
this.className="left-list-ttitle active";
main_cen_box[this.index].style.display="block";
}
}
// 左侧二级菜单展开
/*
var left_title_as = document.querySelectorAll(".left-list-ftitle");
var tr_hides = document.querySelectorAll(".tr_hide");
var arrow_span0 = document.getElementById("arrow_span0");
var arrow_span1 = document.getElementById("arrow_span1");
for (var i = 0; i < left_title_as.length; i++) {
left_title_as[i].onclick = function () {
var spans = this.children[1];
var is = spans.children[0];
var ics = is.classList.contains("fa-sort-down");
if (ics) {
is.className = "fa fa-sort-up";
spans.style.top = 3 + "px";
} else {
is.className = "fa fa-sort-down";
spans.style.top = -2 + "px";
}
// this.nextElementSibling.classList.toggle("hide");
$(this).next().slideToggle(300);
}
}*/
// 左侧收缩菜单栏
/*function animate(obj, target, speed) {
clearInterval(obj.timer);
var speed = obj.offsetLeft < target ? speed : (-speed);
obj.timer = setInterval(function () {
var resule = target - obj.offsetLeft;
obj.style.left = obj.offsetLeft + speed + "px";
if (Math.abs(resule) <= Math.abs(speed)) {
clearInterval(obj.timer)
obj.style.left = target + "px";
}
}, 20);
}
var left_min_menu = document.querySelector(".left-min-menu");
var left_menu_box = document.querySelector(".left-menu-box");
left_min_menu.onmouseenter = function () {
animate(left_menu_box, 0, 10);
}
left_menu_box.onmouseleave = function () {
animate(left_menu_box, -230, 10);
}*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment