强制跳转修改密码
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE configuration
|
||||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<settings>
|
||||
<!-- 列自动映射 -->
|
||||
<setting name="mapUnderscoreToCamelCase" value="true"/>
|
||||
<!--<setting name="logImpl" value="STDOUT_LOGGING"/>-->
|
||||
</settings>
|
||||
|
||||
<typeAliases>
|
||||
<package name="com.manage.entity"/>
|
||||
</typeAliases>
|
||||
|
||||
<plugins>
|
||||
<!-- com.github.pagehelper为PageHelper类所在包名 -->
|
||||
<plugin interceptor="com.github.pagehelper.PageInterceptor">
|
||||
<!--分页参数合理化-->
|
||||
<property name="reasonable" value="true"/>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
</configuration>
|
@ -0,0 +1,64 @@
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@taglib prefix="pm" uri="/WEB-INF/taglib/guardtag.tld"%>
|
||||
|
||||
<link rel="stylesheet" href="${path}/static/css/comm.css"/>
|
||||
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/font-awesome/css/font-awesome.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/Ionicons/css/ionicons.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/dist/css/AdminLTE.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/dist/css/skins/_all-skins.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"/>
|
||||
<link rel="stylesheet" href="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.min.css">
|
||||
<link rel="stylesheet" href="${path}/static/css/bootstrap-select.min.css">
|
||||
<link rel="stylesheet" href="${path}/static/js/toastr.min.css" type="text/css">
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
|
||||
|
||||
|
||||
<!-- 引入Jquery -->
|
||||
<script type="text/javascript" src="${path}/static/js/jquery-3.3.1.js"></script>
|
||||
<!-- jQuery UI 1.11.4 -->
|
||||
<script src="${path}/static/js/jquery-ui.min.js"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<!-- datepicker -->
|
||||
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="${path}/static/bootstrap-3.3.7/dist/js/adminlte.min.js"></script>
|
||||
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/bootstrap-table.js"></script>
|
||||
<script src="${path}/static/bootstrap-3.3.7/bower_components/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="${path}/static/js/bootstrap-select.min.js"></script>
|
||||
<script src="${path}/static/js/toastr.min.js"></script>
|
||||
<script src="${path}/static/js/jquery.form.js"></script>
|
||||
<script>
|
||||
toastr.options.positionClass = 'toast-top-right';
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
var path = "${path}";
|
||||
//回跳表格页码
|
||||
function backToPage(){
|
||||
refresh();
|
||||
setTimeout(function(){
|
||||
var pageSize=$('#bootstrapTable').bootstrapTable('getOptions').pageSize;
|
||||
var rows=$('#bootstrapTable').bootstrapTable("getOptions").totalRows;
|
||||
if((pageSize*(pageNumber-1)) == rows && pageNumber != 1){
|
||||
pageNumber -= 1;
|
||||
}
|
||||
$('#bootstrapTable').bootstrapTable('selectPage', pageNumber);
|
||||
},100)
|
||||
}
|
||||
function toPage() {
|
||||
var pageNum = $("#pageNum").val();
|
||||
if (pageNum) {
|
||||
$('#bootstrapTable').bootstrapTable('selectPage', parseInt(pageNum));
|
||||
}
|
||||
setTimeout(function(){
|
||||
$("#pageNum").val(pageNum)
|
||||
},500)
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/WEB-INF/jspf/confirmJsp.jspf"%>
|
@ -0,0 +1,45 @@
|
||||
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<link rel="stylesheet" href="${path}/static/js/jquery-confirm.min.css">
|
||||
<script src="${path}/static/js/jquery-confirm.min.js"></script>
|
||||
<input type="hidden" id="common_confirm_btn" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#common_confirm_model">
|
||||
<div id="common_confirm_model" class="modal" style="z-index: 99999">
|
||||
<div class="modal-dialog modal-sm">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> <span class="title"></span></h5>
|
||||
</div>
|
||||
<div class="modal-body small">
|
||||
<p ><span class="message"></span></p>
|
||||
</div>
|
||||
<div class="modal-footer" >
|
||||
<button type="button" class="btn btn-primary ok" data-dismiss="modal">确认</button>
|
||||
<button type="button" class="btn btn-default cancel" data-dismiss="modal">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var Common = {
|
||||
confirm:function(params){
|
||||
var model = $("#common_confirm_model");
|
||||
model.find(".title").html(params.title)
|
||||
model.find(".message").html(params.message)
|
||||
|
||||
$("#common_confirm_btn").click()
|
||||
//每次都将监听先关闭,防止多次监听发生,确保只有一次监听
|
||||
model.find(".cancel").off("click")
|
||||
model.find(".ok").off("click")
|
||||
|
||||
model.find(".ok").on("click",function(){
|
||||
params.operate(true)
|
||||
})
|
||||
|
||||
model.find(".cancel").on("click",function(){
|
||||
params.operate(false)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
@ -0,0 +1,151 @@
|
||||
<%@ 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" %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>角色菜单权限</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<link rel="stylesheet" href="${path}/static/zTree_v3-master/css/demo.css" type="text/css">
|
||||
<link rel="stylesheet" href="${path}/static/zTree_v3-master/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
||||
<script src="${path}/static/zTree_v3-master/js/jquery.ztree.all.js"></script>
|
||||
<script src="${path}/static/zTree_v3-master/js/jquery.ztree.exhide.js"></script>
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.widget-header{
|
||||
height:26px;
|
||||
background-color: #1D9ED7;
|
||||
}
|
||||
.searcDiv{
|
||||
margin-top: 5px;
|
||||
height: 30px;
|
||||
}
|
||||
.form-group{
|
||||
margin-bottom: 0!important;
|
||||
}
|
||||
.form-control{
|
||||
margin: 0 auto;
|
||||
}
|
||||
.treeBtn{
|
||||
margin-top:10px;
|
||||
padding-left:19%;
|
||||
}
|
||||
.btn{
|
||||
margin-left:8%;
|
||||
}
|
||||
.ztree{
|
||||
border: 0px!important;
|
||||
background-color: #fff!important;
|
||||
overflow: auto!important;
|
||||
font-size: 14rem!important;
|
||||
height:75%!important;
|
||||
width: 100%!important;
|
||||
}
|
||||
.zTreeDemo{
|
||||
margin-left:10%;
|
||||
}
|
||||
.buttonDiv{
|
||||
width: 10%;
|
||||
height: 10%;
|
||||
position: fixed;
|
||||
right: 3%;
|
||||
bottom: 10%;
|
||||
}
|
||||
.restore{
|
||||
width:100px!important;
|
||||
}
|
||||
/*h1{
|
||||
margin-left:-80%;
|
||||
}*/
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<%--<div class="row">
|
||||
<h1>
|
||||
授权管理/角色分配菜单
|
||||
</h1>
|
||||
</div>--%>
|
||||
<div class="row">
|
||||
<input type="hidden" id="roleId" name="roleId">
|
||||
<input type="hidden" id="sysFlag" name="sysFlag">
|
||||
<input type="hidden" id="menus" name="menus">
|
||||
<input type="hidden" id="methods">
|
||||
<%--<div class="row">
|
||||
<h1 style="text-align:left">
|
||||
基本管理/用户管理
|
||||
</h1>
|
||||
</div>--%>
|
||||
<!--节点menuId-->
|
||||
<input type="hidden" id="divIndex">
|
||||
<!--角色树-->
|
||||
<div class="col-sm-3">
|
||||
<div class="">
|
||||
<div class="widget-header">
|
||||
<h2> </h2>
|
||||
</div>
|
||||
<div class="searcDiv">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-9 control-label"><input type="text" class="form-control input-sm" id="key" maxlength="16" placeholder="角色名"></label>
|
||||
<div class="col-sm-3">
|
||||
<button type="button" class="btn btn-sm btn-primary left" onclick="reloadTree()">搜索</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="treeBtn">
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="expandAll();">全部展开</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="collapseAll();">全部折叠</button>
|
||||
</div>
|
||||
<div class="zTreeDemo">
|
||||
<ul id="ztree" class="ztree"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--菜单树-->
|
||||
<div class="col-sm-3">
|
||||
<div class="">
|
||||
<div class="widget-header">
|
||||
<h2> </h2>
|
||||
</div>
|
||||
<div class="searcDiv">
|
||||
<input type="text" id="key1" value="" class="form-control input-sm"
|
||||
placeholder="菜单名称" maxlength="16" style="width:80%"/><br/>
|
||||
</div>
|
||||
<div class="treeBtn">
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="expandAll1();">全部展开</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="collapseAll1();">全部折叠</button>
|
||||
</div>
|
||||
<div class="zTreeDemo">
|
||||
<ul id="ztree1" class="ztree"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--方法区-->
|
||||
<div class="col-sm-6" >
|
||||
<div class="">
|
||||
<div class="widget-header">
|
||||
<h2> </h2>
|
||||
</div>
|
||||
<div class="widget-body">
|
||||
<div class="widget-main">
|
||||
<div id="block">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="buttonDiv">
|
||||
<pm:myPermissions permissions="/menuPower/addRoleMenu">
|
||||
<button type="button" class="btn btn-primary btn-sm restore" onclick="addMenu()">保存</button>
|
||||
</pm:myPermissions>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.main-container -->
|
||||
<script src="${path}/static/js/menu/rolePowerList.js"></script>
|
||||
<script src="${path}/static/js/menu/userAndRoleComment.js"></script>
|
||||
<script src="${path}/static/js/menu/fuzzysearch.js"></script>
|
||||
<%@ include file="/WEB-INF/jspf/loading.jspf" %>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,40 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: ljx
|
||||
Date: 2019/5/13
|
||||
Time: 17:02
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>修改密码</title>
|
||||
<%@ include file="/WEB-INF/jspf/common.jspf" %>
|
||||
</head>
|
||||
<style>
|
||||
|
||||
img{
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -122px;
|
||||
margin-left: -109px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<fieldset>
|
||||
<legend style="text-align: center;font-weight: bold;font-size: 25px">修改密码</legend>
|
||||
</fieldset>
|
||||
<div class="flexbox">
|
||||
<img src="../static/img/login/厦门中山医院修改密码.png" >
|
||||
</div>
|
||||
</body>
|
||||
<script src="${path}/static/js/updatePassword.js?t=1"></script>
|
||||
</html>
|
@ -0,0 +1,95 @@
|
||||
/**
|
||||
* @author: YL
|
||||
* @version: v1.0.0
|
||||
*/
|
||||
!function ($) {
|
||||
'use strict';
|
||||
$.extend($.fn.bootstrapTable.defaults, {
|
||||
treeShowField: null,
|
||||
idField: 'id',
|
||||
parentIdField: 'pid',
|
||||
onGetNodes: function (row, data) {
|
||||
var that = this;
|
||||
var nodes = [];
|
||||
$.each(data, function (i, item) {
|
||||
if (row[that.options.idField] === item[that.options.parentIdField]) {
|
||||
nodes.push(item);
|
||||
}
|
||||
});
|
||||
return nodes;
|
||||
},
|
||||
onCheckRoot: function (row, data) {
|
||||
var that = this;
|
||||
return !row[that.options.parentIdField];
|
||||
}
|
||||
});
|
||||
|
||||
var BootstrapTable = $.fn.bootstrapTable.Constructor,
|
||||
_initRow = BootstrapTable.prototype.initRow,
|
||||
_initHeader = BootstrapTable.prototype.initHeader;
|
||||
|
||||
// td
|
||||
BootstrapTable.prototype.initHeader = function () {
|
||||
var that = this;
|
||||
_initHeader.apply(that, Array.prototype.slice.apply(arguments));
|
||||
var treeShowField = that.options.treeShowField;
|
||||
if (treeShowField) {
|
||||
$.each(this.header.fields, function (i, field) {
|
||||
if (treeShowField === field) {
|
||||
that.treeEnable = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var initTr = function (item, idx, data, parentDom) {
|
||||
var that = this;
|
||||
var nodes = that.options.onGetNodes.apply(that, [item, data]);
|
||||
item._nodes = nodes;
|
||||
parentDom.append(_initRow.apply(that, [item, idx, data, parentDom]));
|
||||
|
||||
// init sub node
|
||||
var len = nodes.length - 1;
|
||||
for (var i = 0; i <= len; i++) {
|
||||
var node = nodes[i];
|
||||
node._level = item._level + 1;
|
||||
node._parent = item;
|
||||
if (i === len)
|
||||
node._last = 1;
|
||||
// jquery.treegrid.js
|
||||
that.options.rowStyle = function (item, idx) {
|
||||
var id = item[that.options.idField] ? item[that.options.idField] : 0;
|
||||
var pid = item[that.options.parentIdField] ? item[that.options.parentIdField] : 0;
|
||||
return {
|
||||
classes: 'treegrid-' + id + ' treegrid-parent-' + pid
|
||||
};
|
||||
};
|
||||
initTr.apply(that, [node, $.inArray(node, data), data, parentDom]);
|
||||
}
|
||||
};
|
||||
|
||||
// tr
|
||||
BootstrapTable.prototype.initRow = function (item, idx, data, parentDom) {
|
||||
var that = this;
|
||||
if (that.treeEnable) {
|
||||
// init root node
|
||||
if (that.options.onCheckRoot.apply(that, [item, data])) {
|
||||
if (item._level === undefined) {
|
||||
item._level = 0;
|
||||
}
|
||||
// jquery.treegrid.js
|
||||
that.options.rowStyle = function (item, idx) {
|
||||
var x = item[that.options.idField] ? item[that.options.idField] : 0;
|
||||
return {
|
||||
classes: 'treegrid-' + x
|
||||
};
|
||||
};
|
||||
initTr.apply(that, [item, idx, data, parentDom]);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return _initRow.apply(that, Array.prototype.slice.apply(arguments));
|
||||
};
|
||||
}(jQuery);
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 197 B |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 982 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 178 B |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 231 B |
After Width: | Height: | Size: 1.4 KiB |