() {});
- String permStrs = "";
- if(null != result.getPowerMenuList() && !result.getPowerMenuList().isEmpty()){
- for (Power_Menu p: result.getPowerMenuList()) {
- if(StringUtils.isNoneBlank(p.getMenuName())){
- permStrs+=p.getMenuName() + ",";
- }
- }
- }
- Power_User powerUser = result.getPowerUser();
- if(powerUser != null){
- Power_User admin = (Power_User)SecurityUtils.getSubject().getPrincipal();
- UserToken userToken = new UserToken(powerUser.getUserName(),powerUser.getUserPwd(),true,powerUser.getRoleId(),permStrs);
- Subject subject = SecurityUtils.getSubject();
- subject.login(userToken);
- }
- String msg = "";
- if (error != null) {//出错了,返回登录页面
- return "redirect://http:192.168.1.3:8080/login";
- }
- }
-}
diff --git a/power-admin/src/main/webapp/WEB-INF/views/deptDir/blood.jsp b/power-admin/src/main/webapp/WEB-INF/views/deptDir/blood.jsp
deleted file mode 100644
index d7e727e..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/deptDir/blood.jsp
+++ /dev/null
@@ -1,225 +0,0 @@
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-<%@ include file="/WEB-INF/jspf/confirmJsp.jspf" %>
-
-
- 部门管理
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<%@ include file="/WEB-INF/jspf/importExcelJsp.jspf" %>
-
-
\ No newline at end of file
diff --git a/power-admin/src/main/webapp/WEB-INF/views/dictDir/dict1.jsp b/power-admin/src/main/webapp/WEB-INF/views/dictDir/dict1.jsp
deleted file mode 100644
index f23aa4d..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/dictDir/dict1.jsp
+++ /dev/null
@@ -1,210 +0,0 @@
-<%--
- Created by IntelliJ IDEA.
- User: HJL Date: 2019/4/6
- Time: 16:57
- 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" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-
-
- 归属管理(医院、系统)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login1.jsp b/power-admin/src/main/webapp/WEB-INF/views/loginDir/login1.jsp
deleted file mode 100644
index 81d74ac..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login1.jsp
+++ /dev/null
@@ -1,82 +0,0 @@
-<%@ page import="java.net.URLDecoder" %>
-<%@ page import="com.manage.encrypt.Base64" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-<%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- String password="";
- String userName="";
- String checked="";
- Cookie[] cookies = request.getCookies(); //取出cookie对象组
- for(int i = 0; cookies != null && i < cookies.length;i++){
- Cookie cookie = cookies[i]; // 取出其中的一个对象,含有name ,value
- if(cookie != null && "name".equals(cookie.getName())){ //获取第一个cookie对象的name
- userName = URLDecoder.decode(cookie.getValue(), "UTF-8");//进行解码
- checked = "checked";
- }
- if(cookie != null && "password".equals(cookie.getName())){
- password = cookie.getValue();
- password = Base64.decodeBase64(password);
- }
- }
-%>
-
-
- 嘉时软件
-
-
-
-
-
-
-
-
-
-
- 嘉时 广东省脐带血造血干细胞库档案管理系统
-
-
-
-

-
-
-
-
-
-
-
-
-
diff --git a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login174.jsp b/power-admin/src/main/webapp/WEB-INF/views/loginDir/login174.jsp
deleted file mode 100644
index 1f75d0f..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login174.jsp
+++ /dev/null
@@ -1,83 +0,0 @@
-<%@ page import="java.net.URLDecoder" %>
-<%@ page import="com.manage.encrypt.Base64" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-<%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- String password="";
- String userName="";
- String checked="";
- Cookie[] cookies = request.getCookies(); //取出cookie对象组
- for(int i = 0; cookies != null && i < cookies.length;i++){
- Cookie cookie = cookies[i]; // 取出其中的一个对象,含有name ,value
- if(cookie != null && "name".equals(cookie.getName())){ //获取第一个cookie对象的name
- userName = URLDecoder.decode(cookie.getValue(), "UTF-8");//进行解码
- checked = "checked";
- }
- if(cookie != null && "password".equals(cookie.getName())){
- password = cookie.getValue();
- password = Base64.decodeBase64(password);
- }
- }
-%>
-
-
- 嘉时软件
-
-
-
-
-
-
-
-
-
-
-
- <%--

--%>
-
-
-
-
-
-
-
-
-
diff --git a/power-admin/src/main/webapp/WEB-INF/views/otherManage/backupDatabase.jsp b/power-admin/src/main/webapp/WEB-INF/views/otherManage/backupDatabase.jsp
index 3c3828d..dcaaf58 100644
--- a/power-admin/src/main/webapp/WEB-INF/views/otherManage/backupDatabase.jsp
+++ b/power-admin/src/main/webapp/WEB-INF/views/otherManage/backupDatabase.jsp
@@ -73,11 +73,10 @@
}
/**查询按钮组*/
- .btnsDiv {
- width: 100%;
- height: 32px;
+ .btns{
text-align: right;
- padding-top: 5px;
+ margin-top: 5px;
+ margin-right: 15px;
}
/**表格div*/
@@ -98,7 +97,7 @@
-
+
@@ -106,7 +105,7 @@
-
+
@@ -114,7 +113,7 @@
-
+
@@ -122,17 +121,17 @@
-
+
-
+
-
+
diff --git a/power-admin/src/main/webapp/WEB-INF/views/roleDir/roleNotDown.jsp b/power-admin/src/main/webapp/WEB-INF/views/roleDir/roleNotDown.jsp
deleted file mode 100644
index fb86912..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/roleDir/roleNotDown.jsp
+++ /dev/null
@@ -1,210 +0,0 @@
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-<%@ include file="/WEB-INF/jspf/confirmJsp.jspf" %>
-
-
- 角色管理
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<%@ include file="/WEB-INF/jspf/importExcelJsp.jspf" %>
-
-
\ No newline at end of file
diff --git a/power-admin/src/main/webapp/WEB-INF/views/userDir/user1.jsp b/power-admin/src/main/webapp/WEB-INF/views/userDir/user1.jsp
deleted file mode 100644
index c82d334..0000000
--- a/power-admin/src/main/webapp/WEB-INF/views/userDir/user1.jsp
+++ /dev/null
@@ -1,316 +0,0 @@
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<%@ include file="/WEB-INF/jspf/common.jspf" %>
-<%@ include file="/WEB-INF/jspf/confirmJsp.jspf" %>
-
-
- 用户管理
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<%@ include file="/WEB-INF/jspf/importExcelJsp.jspf" %>
-
-
\ No newline at end of file
diff --git a/power-admin/src/main/webapp/WEB-INF/web.xml b/power-admin/src/main/webapp/WEB-INF/web.xml
index a712bef..c9f5487 100644
--- a/power-admin/src/main/webapp/WEB-INF/web.xml
+++ b/power-admin/src/main/webapp/WEB-INF/web.xml
@@ -46,14 +46,13 @@
org.springframework.web.context.ContextLoaderListener
-
+
+ webAppRootKey
+ power.root
+
+
+ org.springframework.web.util.WebAppRootListener
+
dispatcherServlet
diff --git a/power-admin/src/main/webapp/static/js/blood.js b/power-admin/src/main/webapp/static/js/blood.js
deleted file mode 100644
index 75f23ad..0000000
--- a/power-admin/src/main/webapp/static/js/blood.js
+++ /dev/null
@@ -1,407 +0,0 @@
-var form = ''
-var pageNumber = 1;
-$(function(){
- var columns = [];
- columns.push({
- checkbox:true
- },
- {
- title:'序号',
- field:'no',
- formatter: function (value, row, index) {
- //获取每页显示的数量
- var pageSize = $('#bootstrapTable').bootstrapTable('getOptions').pageSize;
- //获取当前是第几页
- if(pageNumber == 1){
- pageNumber = $('#bootstrapTable').bootstrapTable('getOptions').pageNumber;
- }
- //返回序号,注意index是从0开始的,所以要加上1
- return pageSize * (pageNumber - 1) + index + 1;
- }
- },
- {
- title:'部门名',
- field:'deptName',
- });
- var roleId = $("#roleId").val();
- if(roleId == 0){
- columns.push({
- title:'所属医院',
- field:'hospitalName',
- });
- }
- columns.push(
- {
- title:'是否有效',
- field:'effective',
- formatter: function (value, row, index) {
- if(value ==1){
- return '是'
- }else if(value ==0){
- return '否'
- }
- }
- },
- {
- title:'创建时间',
- field:'createDate',
- },
- {
- title:'创建人',
- field:'creater',
- },
- {
- title:'修改时间',
- field:'updateDate',
- },
- {
- title:'修改人',
- field:'updater',
- },
- {
- title:'操作',
- field:'deptId', formatter: function(value,row,index){
- var editanddrop = '';
- if(row.isUpdate == 1){
- editanddrop += '';
- }
- if(row.isDelete == 1){
- editanddrop += '';
- }
- return editanddrop;
- }
- });
- $('#myModal').modal('hide');
- loadDict();
- //先销毁表格
- $('#bootstrapTable').bootstrapTable({
- //表格高度
- height: getHeight(),
- method : 'get',
- url :path+ "/dept/pageList",//请求路径
- striped : true, //是否显示行间隔色
- pageNumber : 1, //初始化加载第一页
- pagination : true,//是否分页
- sidePagination : 'server',//server:服务器端分页|client:前端分页
- pageSize : 10,//单页记录数
- pageList : [ 5, 10, 20, 30 ],//可选择单页记录数
- cache: false,
- paginationPreText : '上一页',
- paginationNextText : '下一页',
- queryParams : function(params) {//上传服务器的参数
- var temp = {//如果是在服务器端实现分页,limit、offset这两个参数是必须的
- limit : params.limit, // 每页显示数量
- offset : params.offset, // SQL语句起始索引
- page : (params.offset / params.limit) + 1, //当前页码
- deptName:$("#dept_name").val(),
- dictId:$("#dict_id option:selected").val(),
- effective:$("#effective option:selected").val(),
- creater:$("#creater").val(),
- };
- return temp;
- },
- columns : columns,
- onLoadSuccess: function(){ //加载成功时执行
- $(".page-list").show();
- $("th").css({'text-align':'center','vertical-align':'middle'})
- $("td").css({'text-align':'center','vertical-align':'middle'})
- },
- //监听分页点击事件
- onPageChange: function(num, type) {
- pageNumber = num;
- },
- //选中单个复选框
- onCheck:function(row){
- var checks = $("#checks").val();
- $("#checks").val(checks+=row.deptId + ",");
- },
- //取消单个复选框
- onUncheck:function(row){
- var checks = $("#checks").val();
- checks = checks.replace(row.deptId + ",","");
- $("#checks").val(checks);
- },
- //全选
- onCheckAll:function(rows){
- $("#checks").val("");
- var checks = '';
- for(var i=0;i' + comment['hospitalName']
- + '';
- });
- $('#dict_id').append(html);
- $('#re_dictId').append(html);
- }
- }
- });
-}
-//验证部门名不能重复
-$("#re_deptName").blur(function(){
- var deptId = $("#re_deptId").val();
- var deptName = $("#re_deptName").val();
- if(deptId == '' && deptName != ''){
- var dictId = $("#re_dictId").val();
- $.ajax({
- type:'get',
- url:path+'/dept/checkDeptName',
- data:{deptName:deptName,dictId:dictId},
- dataType:'json',
- success:function(data){
- if(data.code == 200){
- toastr.warning("部门名已存在");
- $("#re_deptName").val("");
- $("#re_deptName").focus();
- }
- }
- })
- }
-
-})
-//编辑框回显
-function edit(id){
- $("#myModalLabel").text("编辑");
- $.ajax({
- type: "post",
- url: path+ "/dept/selectDept",
- data:{
- deptId:id
- },
- dataType:"json",
- success: function(data){
- $("#re_deptId").val(data.deptId);
- $("#re_deptName").val(data.deptName);
- $("#re_dictId").find("option[value='"+data.dictId+"']").attr("selected",true);
- $("#re_effective").find("option[value='"+data.effective+"']").attr("selected",true);
- $("#re_remark").val(data.remark);
- }
- });
- $('#myModal').modal('show')
-}
-//删除
-function drop(id) {
- Common.confirm({
- title: "提示",
- message: "确定是否删除这条记录",
- operate: function (reselt) {
- if (reselt) {
- $.ajax({
- type: "post",
- url: path + "/dept/delete",
- data: {
- deptId: id
- },
- async: false,
- success: function (data) {
- if ("success" == data.msg) {
- toastr.success("删除成功!");
- $("#checks").val("");
- backToPage();
- }
- },
- error: function () {
- window.confirm("删除失败");
- }
- })
- }
- }
- })
-}
-//新增框
-function add() {
- initable();
- $("#myModalLabel").text('增加');
- $('#myModal').modal('show');
- $("#re_dictId").empty();
- loadDict();
-}
-//提交更改
-$('#btn_submit').click(function () {
- var deptName = $("#re_deptName").val();
- var dictId = $("#re_dictId").val();
- if(deptName != ''){
- if(dictId != ''){
- var btype = $("#myModalLabel").text();
- if(btype=='编辑'){
- $.ajax({
- type: "post",
- url: path+ "/dept/update",
- data:$("#updateaddform").serialize(),
- dataType:"json",
- success: function(data){
- if("success"==data.msg){
- toastr.success("修改成功!");
- backToPage();
- $('#myModal').modal('hide');
- }else{
- toastr.warning(data.msg);
- }
- }
- })
- }else if(btype =='增加'){
- $.ajax({
- type: "post",
- url:path+ "/dept/add",
- data:$("#updateaddform").serialize(),
- dataType:"json",
- success: function(data){
- if("success"==data.msg){
- toastr.success("添加成功!");
- setTimeout(function(){
- window.location.reload();
- },500)
- $('#myModal').modal('hide');
- }else{
- toastr.warning(data.msg);
- }
- }
- })
- }
- }else{
- toastr.warning("所属医院不能为空!");
- }
- }else{
- toastr.warning("部门名称不能为空!");
- }
-})
-//初始化模态框
-function initable(){
- $("#re_deptId").val("");
- $("#updateaddform")[0].reset();
-}
-//导出excel功能
-function exportExcel(){
- var roleId = $("#roleId").val();
- var url = '';
- var checks = $("#checks").val();
- if(checks != '') {
- checks = checks.substring(0, checks.length - 1);
- if(roleId == 0){
- url = path+"/dept/exportBlood?deptName="+$("#dept_name").val()+"&dictId="+$("#dict_id").val()+"&effective="+$("#effective").val()+"&creater="+$("#creater").val()+"&checks="+checks;
- }else{
- url = path+"/dept/exportBlood?deptName="+$("#dept_name").val()+"&effective="+$("#effective").val()+"&creater="+$("#creater").val()+"&checks="+checks;
- }
- window.location.href = url;
- }else{
- Common.confirm({
- title: "提示",
- message: "没有选中,您确定要按搜索栏条件导出?",
- operate: function (reselt) {
- if (reselt) {
- if (roleId == 0) {
- url = path + "/dept/export?deptName=" + $("#dept_name").val() + "&dictId=" + $("#dict_id").val() + "&effective=" + $("#effective").val() + "&creater=" + $("#creater").val() + "&checks=" + checks;
- } else {
- url = path + "/dept/export?deptName=" + $("#dept_name").val() + "&effective=" + $("#effective").val() + "&creater=" + $("#creater").val() + "&checks=" + checks;
- }
- window.location.href = url;
- }
- }
- })
- }
-}
-//搜索
-$('#queryBtn').click(function () {
- $("#checks").val("");
- refresh();
-})
-//获取table的高度
-function getHeight() {
- return $(window).height() * 0.8;
-}
-//刷新表格
-function refresh() {
- $('#bootstrapTable').bootstrapTable('refresh',{
- url :path+ '/dept/pageList'
- })
-}
-//清空
-function clearForm(){
- $("#updateaddform")[0].reset();
-}
-//监听关闭模态框刷新事件
-$('#myModal1').on('hide.bs.modal', function () {
- window.location.reload();
-});
\ No newline at end of file
diff --git a/power-admin/src/main/webapp/static/js/roleNotDown.js b/power-admin/src/main/webapp/static/js/roleNotDown.js
deleted file mode 100644
index ba3d4c4..0000000
--- a/power-admin/src/main/webapp/static/js/roleNotDown.js
+++ /dev/null
@@ -1,293 +0,0 @@
-/**
- * Created by ly on 2019/4/25.
- */
-var pageNumber = 1;
-var form = '';
-$(function(){
- $('#myModal').modal('hide');
- //先销毁表格
- $('#bootstrapTable').bootstrapTable({
- //表格高度
- height: getHeight(),
- method : 'get',
- url : path+ "/role/pageList",//请求路径
- striped : true, //是否显示行间隔色
- pageNumber : 1, //初始化加载第一页
- pagination : true,//是否分页
- sidePagination : 'server',//server:服务器端分页|client:前端分页
- pageSize : 10,//单页记录数
- pageList : [ 5, 10, 20, 30 ],//可选择单页记录数
- cache: false,
- paginationPreText : '上一页',
- paginationNextText : '下一页',
- queryParams : function(params) {//上传服务器的参数
- var temp = {//如果是在服务器端实现分页,limit、offset这两个参数是必须的
- limit : params.limit, // 每页显示数量
- offset : params.offset, // SQL语句起始索引
- page : (params.offset / params.limit) + 1, //当前页码
- roleId:$("#role_id").val(),
- roleName:$("#role_name").val(),
- effective : $("#effective option:selected").val(),
- creater:$("#creater").val(),
- };
- return temp;
- },
- columns : [{
- checkbox:true
- },
- {
- title:'序号',
- field:'no',
- formatter: function (value, row, index) {
- //获取每页显示的数量
- var pageSize = $('#bootstrapTable').bootstrapTable('getOptions').pageSize;
- //获取当前是第几页
- if(pageNumber == 1){
- pageNumber = $('#bootstrapTable').bootstrapTable('getOptions').pageNumber;
- }
- //返回序号,注意index是从0开始的,所以要加上1
- return pageSize * (pageNumber - 1) + index + 1;
- }
- },
- {
- title:'角色名',
- field:'roleName',
- },
- {
- title:'备注',
- field:'remark',
- formatter:function (value,row,index) {
- if(value ==null){
- return "";
- }else{
- return value;
- }
- }
- },
- {
- title:'是否有效',
- field:'effective',
- formatter: function (value, row, index) {
- if(value ==1){
- return '是'
- }else if(value ==0){
- return '否'
- }
- }
- },
- {
- title:'创建时间',
- field:'createDate',
- },
- {
- title:'创建人',
- field:'creater',
- },
-
- {
- title:'操作',
- field:'roleId', formatter: function(value,row,index){
- var editanddrop = '';
- if(row.isUpdate == 1){
- editanddrop += '';
- }
- if(row.isDelete == 1){
- editanddrop += '';
- }
- return editanddrop;
- }
- }
- ],
- onLoadSuccess: function(){ //加载成功时执行
- $(".page-list").show();
- $("th").css({'text-align':'center','vertical-align':'middle'})
- $("td").css({'text-align':'center','vertical-align':'middle'})
- },
- //监听分页点击事件
- onPageChange: function(num, type) {
- pageNumber = num;
- },
- //选中单个复选框
- onCheck:function(row){
- var checks = $("#checks").val();
- $("#checks").val(checks+=row.roleId + ",");
- },
- //取消单个复选框
- onUncheck:function(row){
- var checks = $("#checks").val();
- checks = checks.replace(row.roleId + ",","");
- $("#checks").val(checks);
- },
- //全选
- onCheckAll:function(rows){
- $("#checks").val("");
- var checks = '';
- for(var i=0;i编辑';
- }
- if(row.isDelete == 1){
- editanddrop += '';
- }
- return editanddrop;
- }
- }
- ],
- onLoadSuccess: function(){ //加载成功时执行
- $(".page-list").show();
- $("th").css({'text-align':'center','vertical-align':'middle'})
- $("td").css({'text-align':'center','vertical-align':'middle'})
- },
- //监听分页点击事件
- onPageChange: function(num, type) {
- pageNumber = num;
- },
- //选中单个复选框
- onCheck:function(row){
- var checks = $("#checks").val();
- var userNames = $("#userNames").val();
- $("#checks").val(checks+=row.userId + ",");
- $("#userNames").val(userNames+=row.userName + ",");
- },
- //取消单个复选框
- onUncheck:function(row){
- var checks = $("#checks").val();
- var userNames = $("#userNames").val();
- checks = checks.replace(row.userId + ",","");
- userNames = userNames.replace(row.userName + ",","");
- $("#checks").val(checks);
- $("#userNames").val(userNames);
- },
- //全选
- onCheckAll:function(rows){
- $("#checks").val("");
- $("#userNames").val("");
- var checks = '';
- var userNames = '';
- for(var i=0;i'+value+''
- return value;
-}
-
-
-//验证表单
-//验证用户名不重复
-$("#re_userName").blur(function(){
- var userId = $("#userId").val();
- var userName = $("#re_userName").val();
- if(userId == '' && userName != ''){
- $.ajax({
- type:'get',
- url:path+'/user/checkUserName?userName='+userName,
- dataType:'json',
- success:function(data){
- if(data.code == 200){
- toastr.warning(data.msg);
- $("#re_userName").val("");
- $("#re_userName").focus();
- }
- }
- })
- }
-})
-//验证密码长度不少于6位
-$("#re_userPwd").blur(function(){
- var password = $("#re_userPwd").val();
- if(password != '' && password.length < 6){
- toastr.warning("密码长度不能少于6位!");
- }
-})
-/*//验证手机号
-$("#re_userTel").blur(function(){
- var tel = $("#re_userTel").val();
- if(tel != ''){
- if(!tel.match(/^1[34578]\d{9}$/)){
- toastr.warning("移动电话格式不正确!");
- $("#re_userTel").val("");
- $("#re_userTel").focus();
- }
- }
-})
-//验证邮箱
-$("#re_userEmail").blur(function(){
- var email = $("#re_userEmail").val();
- if(email != ''){
- if(!email.match(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/)){
- toastr.warning("邮箱地址格式不正确!");
- $("#re_userEmail").val("");
- $("#re_userEmail").focus();
- }
- }
-})*/
-//所属科室多选树形
-function showMenu1() {
- var cityObj = $('#txtTreeSelect1');
- var cityOffset = cityObj.offset();
- $("#menuContent1").css({ left: cityOffset.left + "px", top: cityOffset.top + cityObj.outerHeight() + "px" }).slideDown("fast");
- $("body").bind("mousedown", onBodyDown1);
-}
-function onBodyDown1(event) {
- if (!(event.target.id == "menuBtn" || event.target.id == "menuContent1" || $(event.target).parents("#menuContent1").length > 0)) {
- hideMenu1();
- }
-}
-function hideMenu1() {
- $("#menuContent1").fadeOut("name");
- $("body").unbind("mousedown", onBodyDown1);
-}
-//加载角色
-function loadRole(){
- $.ajax({
- type: "GET",
- url: path+"/role/selectList",
- dataType: "json",
- success: function(data){
- var html = '';
- $.each(data, function(commentIndex, comment){
- html += '';
- });
- $('#re_roleId').append(html);
- $('#roleId').append(html);
- }
- });
-}
-function loadDept(){
- $.ajax({
- type: "GET",
- url: path+"/dept/selectList",
- dataType: "json",
- success: function(data){
- var html = '';
- for(var i = 0;i < data.extend.list.length;i++){
- html += '';
- }
- $('#dept_id').append(html);
- }
- });
-}
-//搜索
-$('#queryBtn').click(function () {
- $("#checks").val("");
- refresh();
-})
-//编辑框回显
-function edit(id){
- $("#re_userName").prop("readOnly",true);
- $("#passwordDiv").hide();
- $("#myModalLabel").text("编辑");
- $.ajax({
- type: "post",
- url: path+"/user/selectUser",
- data:{
- userId:id
- },
- dataType:"json",
- success: function(data){
- $("#userId").val(data.userId);
- $("#re_userName").val(data.userName);
- $("#name").val(data.name);
- var deptIds = data.deptId;
- var deptArr = deptIds.split(",");
- $('#deptId').selectpicker('val', deptArr);
- if(data.userSex == 1){
- $("#re_userSex").val("1");
- }else{
- $("#re_userSex").val("0");
- }
- $("#re_userAge").val(data.userAge);
- $("#re_userTel").val(data.userTel);
- $("#re_userEmail").val(data.userEmail);
- $("#re_userPosition").val(data.userPosition);
- $("#txtTreeSelect1").val(data.powerDepts);
- $("#deptIds").val(data.deptId);
- $("#re_roleId").find("option[value='"+data.roleId+"']").attr("selected",true);
- $("#re_effective").find("option[value='"+data.effective+"']").attr("selected",true);
- $("#re_remark").val(data.remark);
- /*loadTree();
- var deptIds = data.deptId;
- if(deptIds != ''){
- var deptIdSplit =deptIds.split(",");
- for (var i = 0;i < deptIdSplit.length;i++){
- if(deptIdSplit[i] != ''){
- //选中节点
- treeSelectNode(deptIdSplit[i]);
- }
- }
- }*/
- }
- });
- $('#myModal').modal('show');
-}
-//删除
-function drop(id) {
- Common.confirm({
- title: "提示",
- message: "确定是否删除这条记录",
- operate: function (reselt) {
- if (reselt) {
- $.ajax({
- type: "post",
- url: path + "/user/delete",
- data: {
- userId: id
- },
- async: false,
- success: function (data) {
- if ("success" == data.msg) {
- toastr.success("删除成功!");
- $("#checks").val("");
- $("#userNames").val("");
- backToPage();
- } else {
- toastr.error(data.msg);
- }
- },
- error: function () {
- window.confirm("删除失败");
- }
- })
- }
- }
- })
-}
-//新增框
-function add() {
- $("#re_userName").prop("readOnly",false);
- clearForm();
- $("#userId").val("");
- $("#deptIds").val("");
- $('.selectpicker').selectpicker('val','1');
- $('#myModal').modal('show');
- $("#passwordDiv").show();
-}
-//清空
-function clearForm(){
- $("#updateaddform")[0].reset();
- //loadTree();
- $("#deptIds").val("");
-}
-//提交更改
-$('#btn_submit').click(function () {
- var reUserTel = $("#re_userTel").val();
- if(reUserTel != ''){
- if(!reUserTel.match(/^1[34578]\d{9}$/)){
- toastr.warning("移动电话格式不正确!");
- $("#re_userTel").val("");
- $("#re_userTel").focus();
- return false;
- }
- }
- var reUserEmail = $("#re_userEmail").val();
- if(reUserEmail != ''){
- if(!reUserEmail.match(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/)){
- toastr.warning("邮箱地址格式不正确!");
- $("#re_userEmail").val("");
- $("#re_userEmail").focus();
- return false;
- }
- }
- var userName = $("#re_userName").val();
- var userPwd = $("#re_userPwd").val();
- var deptIds = $("#deptIds").val();
- var roleId = $("#re_roleId").val();
- if(userName != ''){
- if(userPwd != '' || $("#userId").val() != ''){
- if(userPwd.length >= 6 || $("#userId").val() != ''){
- if(deptIds != ''){
- if(roleId != ''){
- saveForm();
- }else{
- toastr.warning("所属角色不能为空,如未显示角色请到角色管理添加角色!");
- }
- }else{
- toastr.warning("所属科室不能为空!");
- }
- }else{
- toastr.warning("密码长度不能少于6位!");
- }
- }else{
- toastr.warning("密码不能为空!");
- }
- }else{
- toastr.warning("用户名不能为空!");
- }
-})
-
-function saveForm(){
- var userId = $("#userId").val();
- if(userId != ''){
- $.ajax({
- type: "post",
- url:path+ "/user/update",
- data:$("#updateaddform").serialize(),
- dataType:"json",
- success: function(data){
- if("success"==data.msg){
- toastr.success("修改成功!");
- $('#myModal').modal('hide');
- backToPage();
- }else{
- toastr.warning(data.msg);
- }
- }
- })
- }else if(userId == ''){
- $.ajax({
- type: "post",
- url:path+ "/user/add",
- data:$("#updateaddform").serialize(),
- dataType:"json",
- success: function(data){
- if("success"==data.msg){
- toastr.success("添加成功!");
- setTimeout(function(){
- window.location.reload();
- },500)
- }else{
- toastr.warning(data.msg);
- }
- }
- })
- }
-}
-//获取table的高度
-function getHeight() {
- return $(window).height() - 190;
-}
-//刷新表格
-function refresh() {
- $('#bootstrapTable').bootstrapTable('refresh',{
- url : path+'/user/pageList'
- })
-}
-//重置密码
-function resetPassword(){
- var checks = $("#checks").val();
- var userNames = $("#userNames").val();
- if(checks != ''){
- var ids = checks.split(",");
- var userName = userNames.split(",");
- if(ids.length == 2){
- Common.confirm({
- title: "提示",
- message: '确定是否重置用户名'+userName[0]+'的密码为000000',
- operate: function (reselt) {
- if (reselt) {
- $.ajax({
- type: 'post',
- url: path + '/user/resetPassword',
- data: {userId: ids[0]},
- dataType: 'json',
- success: function (data) {
- if (data.code == 100) {
- toastr.success("重置成功!");
- $("#checks").val("");
- $("#userNames").val("");
- backToPage();
- } else {
- toastr.error("重置失败,请联系系统管理员!")
- }
- }
- })
- }
- }
- })
- }else{
- toastr.warning("以防重置密码误选择,只允许一次重置一个!")
- }
- }else{
- toastr.warning("请至少选中一条记录!")
- }
-}
-//导出excel功能
-function exportExcel(){
- var checks = $("#checks").val();
- if(checks != '') {
- checks = checks.substring(0, checks.length - 1);
- var url = path+"/user/export1?checks="+checks;
- window.location.href = url;
- }else{
- Common.confirm({
- title: "提示",
- message: "没有选中,您确定要按搜索栏条件导出?",
- operate: function (reselt) {
- if (reselt) {
- var url = path+"/user/export?userName="+$("#user_name").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val();
- window.location.href = url;
- }
- }
- })
- /* if(confirm('没有选中,您确定要按搜索栏条件导出?')) {
- var url = path+"/user/export?userName="+$("#user_name").val()+"&userEmail="+$("#user_email").val()+"&searchRoleId="+$("#roleId").val()+"&deptId="+$("#dept_id").val()+"&effective="+$("#effective").val()+"&checks="+checks;
- window.location.href = url;
- }*/
- }
-
-}
-/**树操作*/
-/*var setting = {
- view: {
- showIcon: true,//设置 zTree 是否显示节点的图标。默认值:true
- showLine: true//设置 zTree 是否显示节点之间的连线。默认值:true
- },
- data: {
- simpleData: {
- chkStyle: "checkbox",
- enable: true,
- idKey: "id",
- pIdKey: "parentId"
- }
- },
- check:{
- enable:true
- },
- callback: {
- onCheck:onCheck
- }
-};
-function onCheck(e, treeId, treeNode) {
- var treeObj=$.fn.zTree.getZTreeObj("treeDemo"),
- nodes=treeObj.getCheckedNodes(true);
- var deptIds = '';
- var deptNames = '';
- //父节点必须一样
- var parentId = new Array();
- for (var i = 0; i < nodes.length; i++) {
- if(nodes[i].level == 0){
- var id = nodes[i].id;
- parentId.push(id);
- }
- if(nodes[i].level == 1){
- var deptId = nodes[i].selfId;
- deptIds += deptId + ",";
- deptNames += nodes[i].name + ",";
- }
- }
- if(parentId.length > 1) {
- toastr.warning("科室必须全部属于同一医院!");
- treeObj.checkNode(treeNode,false,true);
- }else{
- if(deptIds != ''){
- deptIds = deptIds.substring(0,deptIds.length-1);
- deptNames = deptNames.substring(0,deptNames.length-1);
- }
- $("#txtTreeSelect1").val(deptNames);
- $("#deptIds").val(deptIds);
- }
-}
-var zNodes = [];
-function loadTree() {
- $.ajax({
- type: "GET",
- url: path + "/dept/selectDeptTreeByUserId",
- dataType: "json",
- async: false,
- success: function (data) {
- $.fn.zTree.init($("#treeDemo"), setting, data);
- zTree = $.fn.zTree.getZTreeObj("treeDemo");
- var nodes = zTree.getNodes();
- for (var i = 0; i < nodes.length; i++) { //设置节点展开
- zTree.expandNode(nodes[i], true, false, true);
- }
- }
- });
-}
-//加载树
-$(function(){
- $("#re_userName").val("");
- $("#updateaddform")[0].reset();
- loadTree();
-})
-//选中节点 selfId
-function treeSelectNode(selfId){
- var zTree = $.fn.zTree.getZTreeObj("treeDemo");
- var node = zTree.getNodeByParam("selfId",selfId);
- if(node != null){
- zTree.checkNode(node, true, true);
- }
-}*/
-
-//监听关闭模态框刷新事件
-$('#myModal1').on('hide.bs.modal', function () {
- window.location.reload();
-});
\ No newline at end of file
diff --git a/power-api/pom.xml b/power-api/pom.xml
deleted file mode 100644
index 5dca49d..0000000
--- a/power-api/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
- power
- com.manage
- 1.0-SNAPSHOT
-
- 4.0.0
-
- power-api
-
-
-
- UTF-8
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.1
-
-
- 1.8
- 1.8
- UTF-8
- true
- true
- true
-
- 1.3
- 128m
- 512m
-
-
-
-
- power-api
-
-
diff --git a/power-foundaton/pom.xml b/power-foundaton/pom.xml
index af50070..f4d8ead 100644
--- a/power-foundaton/pom.xml
+++ b/power-foundaton/pom.xml
@@ -46,6 +46,11 @@
bcprov-jdk14
compile
+
+
+ org.slf4j
+ slf4j-log4j12
+
- http://www.example.com
-
-
- UTF-8
- 1.7
- 1.7
-
-
- power_web
-
-
diff --git a/power_web/src/main/webapp/WEB-INF/web.xml b/power_web/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 9f88c1f..0000000
--- a/power_web/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- Archetype Created Web Application
-
diff --git a/power_web/src/main/webapp/index.jsp b/power_web/src/main/webapp/index.jsp
deleted file mode 100644
index c38169b..0000000
--- a/power_web/src/main/webapp/index.jsp
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-Hello World!
-
-