删除target文件夹里所有文件
parent
1a0a08a9f1
commit
b48853980c
@ -1,5 +0,0 @@
|
||||
#Generated by Maven
|
||||
#Thu Jul 23 15:52:04 CST 2020
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=com.manage
|
||||
artifactId=power-admin
|
@ -1,29 +0,0 @@
|
||||
com\manage\config\CurrentUserResolver.class
|
||||
com\manage\config\WebServiceConfig.class
|
||||
com\manage\controller\Power_NoticeController.class
|
||||
com\manage\controller\LoginController.class
|
||||
com\manage\controller\Power_Sys_DictController.class
|
||||
com\manage\controller\RoleAndUserPowerController.class
|
||||
com\manage\controller\UserController.class
|
||||
com\manage\interfaces\webservice\impl\PowerWebServiceImpl.class
|
||||
com\manage\annotation\RequiresPermissions.class
|
||||
com\manage\controller\Power_MenuController.class
|
||||
com\manage\controller\HasAnyPermission.class
|
||||
com\manage\controller\T_MenuController.class
|
||||
com\manage\controller\LogAopAction.class
|
||||
com\manage\controller\DeptController.class
|
||||
com\manage\controller\ExportExcelController.class
|
||||
com\manage\interfaces\webservice\PowerWebService.class
|
||||
com\manage\controller\PermissionsException.class
|
||||
com\manage\controller\MethodLogQuartz.class
|
||||
com\manage\controller\RoleController.class
|
||||
com\manage\controller\Power_LogController.class
|
||||
com\manage\interfaces\cache\Cache.class
|
||||
com\manage\interfaces\cache\CacheManager.class
|
||||
com\manage\interceptor\LoginInterceptor.class
|
||||
com\manage\controller\PageController.class
|
||||
com\manage\controller\PermissionsController.class
|
||||
com\manage\interfaces\webservice\RoleAndUserTreeWebService.class
|
||||
com\manage\annotation\OptionalLog.class
|
||||
com\manage\controller\FontController.class
|
||||
com\manage\controller\Power_MenuManageController.class
|
@ -1,29 +0,0 @@
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interfaces\webservice\impl\PowerWebServiceImpl.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\config\WebServiceConfig.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\Power_MenuController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\MethodLogQuartz.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\PageController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\annotation\RequiresPermissions.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interfaces\cache\CacheManager.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\FontController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\LogAopAction.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\Power_LogController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\Power_Sys_DictController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interfaces\webservice\RoleAndUserTreeWebService.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\RoleAndUserPowerController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\RoleController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\config\CurrentUserResolver.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\DeptController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\ExportExcelController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\Power_MenuManageController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\HasAnyPermission.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\Power_NoticeController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interfaces\cache\Cache.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\annotation\OptionalLog.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\PermissionsException.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interceptor\LoginInterceptor.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\LoginController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\UserController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\PermissionsController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\controller\T_MenuController.java
|
||||
E:\ideaProject\insurance\power\power-admin\src\main\java\com\manage\interfaces\webservice\PowerWebService.java
|
Binary file not shown.
@ -1,5 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Built-By: Administrator
|
||||
Created-By: IntelliJ IDEA
|
||||
Build-Jdk: 1.8.0_102
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,69 +0,0 @@
|
||||
# \u62E6\u622A\u83DC\u5355\u914D\u7F6E\u6587\u4EF6 ljx 2019-4-27
|
||||
#interceptRequest \u672A\u767B\u5F55\u4E4B\u524D\u653E\u884C\u3002\u9ED8\u8BA4\u4E3Anone
|
||||
#ajaxRequest ajax\u8BF7\u6C42\u6CA1\u6709\u5BF9\u5E94\u6A21\u5757\uFF0C\u9700\u8981\u653E\u884C\u3002 \u9ED8\u8BA4\u4E3Anone
|
||||
releaseRequest = /login,/logout,/services,/font,/refuse,/swagger-ui.html,/webjars,/swagger-resources,/v2
|
||||
ajaxRequest = none
|
||||
|
||||
#session\u8FC7\u671F\u65F6\u95F4
|
||||
TOKEN_EXPIRE_TIME = 1200000
|
||||
|
||||
##################################################\u670D\u52A1\u5668ip##########################################################
|
||||
#\u901A\u7528\u670D\u52A1\u5668IP\u4E0E\u901A\u7528\u670D\u52A1\u5668\u7AEF\u53E3
|
||||
SERVER_IP = 192.168.1.3
|
||||
SERVER_PORT = 8081
|
||||
|
||||
#power\u6743\u9650\u7CFB\u7EDFip
|
||||
POWER_IP = ${SERVER_IP}
|
||||
#\u6743\u9650\u7CFB\u7EDF\u7AEF\u53E3
|
||||
POWER_PORT = ${SERVER_PORT}
|
||||
|
||||
#\u75C5\u6848\u5F52\u6863\u7CFB\u7EDFip
|
||||
EMRMEDICALRECORD_IP = ${SERVER_IP}
|
||||
#\u75C5\u6848\u5F52\u6863\u7CFB\u7EDF\u7AEF\u53E3
|
||||
EMRMEDICALRECORD_PORT = 8082
|
||||
|
||||
#\u75C5\u6848\u7BA1\u7406\u7CFB\u7EDFip
|
||||
EMRRECORD_IP = ${SERVER_IP}
|
||||
#\u75C5\u6848\u7BA1\u7406\u7CFB\u7EDF\u7AEF\u53E3
|
||||
EMRRECORD_PORT = 8083
|
||||
|
||||
#\u75C5\u6848\u590D\u5370\u9884\u7EA6ip
|
||||
EMRAPPLYCOPY_IP = ${SERVER_IP}
|
||||
#\u75C5\u6848\u590D\u5370\u9884\u7EA6\u7AEF\u53E3
|
||||
EMRAPPLYCOPY_PORT = ${SERVER_PORT}
|
||||
|
||||
#\u75C5\u6848\u7B7E\u6536ip
|
||||
EMRFILES_IP = ${SERVER_IP}
|
||||
#\u75C5\u6848\u7B7E\u6536\u7AEF\u53E3
|
||||
EMRFILES_PORT = ${SERVER_PORT}
|
||||
|
||||
#emr_medical_record\u5F52\u6863\u7CFB\u7EDF\u7684\u7CFB\u7EDF\u6807\u8BC6
|
||||
EMRMEDICALRECORD_SYSFLAG = emr_medical_record
|
||||
#emr_medical_record\u5F52\u6863\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
|
||||
EMRMEDICALRECORD_URLHEAD = http://${EMRMEDICALRECORD_IP}:${EMRMEDICALRECORD_PORT}/${EMRMEDICALRECORD_SYSFLAG}
|
||||
|
||||
#emr_record\u75C5\u6848\u7BA1\u7406\u7CFB\u7EDF\u7684\u7CFB\u7EDF\u6807\u8BC6
|
||||
EMRRECORD_SYSFLAG = emr_record
|
||||
#emr_record\u75C5\u6848\u7BA1\u7406\u7CFB\u7EDF\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
|
||||
EMRRECORD_URLHEAD = http://${EMRRECORD_IP}:${EMRRECORD_PORT}/${EMRRECORD_SYSFLAG}
|
||||
|
||||
#emr_apply_copy\u75C5\u6848\u590D\u5370\u9884\u7EA6\u7684\u7CFB\u7EDF\u6807\u8BC6
|
||||
EMRAPPLYCOPY_SYSFLAG = emr_apply_copy
|
||||
#emr_apply_copy\u75C5\u6848\u590D\u5370\u9884\u7EA6\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
|
||||
EMRAPPLYCOPY_URLHEAD = http://${EMRAPPLYCOPY_IP}:${EMRAPPLYCOPY_PORT}/${EMRAPPLYCOPY_SYSFLAG}
|
||||
|
||||
#emr_files\u75C5\u6848\u7B7E\u6536\u7684\u7CFB\u7EDF\u6807\u8BC6
|
||||
EMRFILES__SYSFLAG = emr_files
|
||||
#emr_files\u75C5\u6848\u7B7E\u6536\u7684\u670D\u52A1\u5668\u5730\u5740\u5934
|
||||
EMRFILES_URLHEAD = http://${EMRFILES_IP}:${EMRFILES_PORT}/${EMRFILES__SYSFLAG}
|
||||
#####################################################\u5176\u4ED6##############################################
|
||||
#webSocket\u670D\u52A1\u5668\u5730\u5740
|
||||
WEBSOCKET_URLHEAD = ${POWER_IP}:8088
|
||||
#\u901A\u77E5\u5B57\u7B26\u4E32\u95F4\u9694\u7B26
|
||||
STR_SPLIT = *^:|,.
|
||||
|
||||
#\u65E5\u5FD7\u4FDD\u7559\u5929\u6570
|
||||
log.days = 90
|
||||
|
||||
#\u5B9A\u4E49\u662F\u5426\u4E3A\u957F\u671F\u767B\u5F55\u7528\u6237\u6B21\u6570
|
||||
login.times = 3
|
@ -1,26 +0,0 @@
|
||||
jdbc.driver=com.mysql.jdbc.Driver
|
||||
jdbc.url=jdbc\:mysql\://localhost\:3306/insurance_power?useUnicode\=true&characterEncoding\=utf-8
|
||||
jdbc.username=root
|
||||
jdbc.password=docus702
|
||||
|
||||
#hibernate config
|
||||
hibernate.dialect = org.hibernate.dialect.MySQLDialect
|
||||
hibernate.show_sql = true
|
||||
hibernate.format_sql = true
|
||||
hibernate.hbm2ddl.auto =update
|
||||
#hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
|
||||
hibernate.current_session_context_class=thread
|
||||
|
||||
hibernate.jdbc.batch_size=50
|
||||
hibernate.enable_lazy_load_no_trans=true
|
||||
|
||||
#\u05B4\uFFFD\uFFFD:\uFFFD\u04BC\uFFFD Run As ---->Maven build ---->Goals:mybatis-generator:generate
|
||||
#\uFFFD\uFFFD\uFFFD\u013F\u00BC
|
||||
targetProject=src/main/java
|
||||
#modelPackage,sqlMapperPackage,daoMapperPackage \u0368\uFFFD\uFFFD\u04BB\uFFFD\uFFFD??
|
||||
modelPackage=com.manage.entity
|
||||
daoMapperPackage=com.manage.dao
|
||||
#\uFFFD\uFFFD\uFFFD\u013F\u00BC
|
||||
targetProject2=src/main/resources
|
||||
sqlMapperPackage=mapper
|
||||
|
@ -1,24 +0,0 @@
|
||||
<?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>
|
@ -1,4 +0,0 @@
|
||||
##获取cpu温度cvs文件路径
|
||||
TEMPERATURECVSFILEDIR = D:\\tools\\temperature_stat.htm
|
||||
##cpu温度cvs文件显示温度数据的行数
|
||||
TEMPERATUREROWNUM = 9
|
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
|
||||
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information.
|
||||
-->
|
||||
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">
|
||||
|
||||
<classpath>
|
||||
<dir name="E:/ideaProject/power/power-admin/target/classes">
|
||||
</dir>
|
||||
</classpath>
|
||||
|
||||
<web>
|
||||
<link target="/">
|
||||
<dir name="E:/ideaProject/power/power-admin/src/main/webapp">
|
||||
</dir>
|
||||
</link>
|
||||
</web>
|
||||
|
||||
</application>
|
@ -1,64 +0,0 @@
|
||||
<%@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"%>
|
@ -1,45 +0,0 @@
|
||||
<%@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>
|
@ -1,33 +0,0 @@
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<style>
|
||||
.loading {
|
||||
width: 160px;
|
||||
height: 56px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
line-height: 56px;
|
||||
color: #fff;
|
||||
padding-left: 60px;
|
||||
font-size: 15px;
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
z-index: 9999;
|
||||
-moz-border-radius: 20px;
|
||||
-webkit-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
|
||||
}
|
||||
</style>
|
||||
<div id="loadingModal" class="modal fade" data-keyboard="false"
|
||||
data-backdrop="static" data-role="dialog"
|
||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div id="loading" class="loading">加载中。。。</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
$("#loading").css("background","url("+path+"/static/img/load.gif) no-repeat 10px 50%");
|
||||
$('#loadingModal').modal('show');
|
||||
})
|
||||
</script>
|
@ -1,87 +0,0 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<link rel="stylesheet" href="${path}/static/naranja/css/naranja.min.css"/>
|
||||
<script type="text/javascript" src="${path}/static/naranja/js/naranja.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/naranja/sockjs.js"></script>
|
||||
<script>
|
||||
var powerUrlHead = path;
|
||||
/*********通知操作**********************************************/
|
||||
$(function(){
|
||||
getNoticeCount();
|
||||
})
|
||||
//赋值未通知数量
|
||||
function getNoticeCount(){
|
||||
//赋值未通知数量
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:powerUrlHead+'/notice/getUnReadCount',
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
if(data.code == 100){
|
||||
$("#noticeCount").text(data.extend.unReadCount);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
//每隔1分钟轮询一次未通知数量
|
||||
setInterval(function () {
|
||||
getNoticeCount();
|
||||
}, 60*1000);
|
||||
//每隔1秒钟轮询一次session所剩时间
|
||||
var r = setInterval(function () {
|
||||
$.get(path+'/getSessionRemainingTime',function(data){
|
||||
if(data != null){
|
||||
data /= 1000
|
||||
if(data < 11 && data > 10){
|
||||
toastr.warning("还有10秒将登录超时,将退出登录!")
|
||||
}else if(data < 6 && data > 5){
|
||||
toastr.warning("还有5秒将登录超时,将退出登录!")
|
||||
}else if(data < 0){
|
||||
window.location.href = path + '/login'
|
||||
}
|
||||
}
|
||||
},'json');
|
||||
}, 1000);
|
||||
//跳转到通知
|
||||
function noticeManage1(noticeId){
|
||||
var url = powerUrlHead+"/gatewayPage?noticeId="+noticeId;
|
||||
window.location.href = url;
|
||||
}
|
||||
/*********webSocket**********************************************/
|
||||
var userId = $("#userId").val();
|
||||
var strSplit = $("#strSplit").val();
|
||||
var webSocketUrl = $("#webSocketUrl").val();
|
||||
var ws = new WebSocket("ws://"+webSocketUrl);
|
||||
ws.onopen = function(){
|
||||
ws.send("power_"+userId);
|
||||
console.log("连接...")
|
||||
}
|
||||
|
||||
//处理服务器发送来的数据
|
||||
ws.onmessage = function(e){
|
||||
var msg = e.data.split(strSplit);
|
||||
narn('warn',msg[0],msg[1],msg[2]);
|
||||
}
|
||||
|
||||
ws.onclose = function(){
|
||||
console.log("连接关闭");
|
||||
}
|
||||
|
||||
ws.onerror = function(){
|
||||
console.log('连接失败');
|
||||
}
|
||||
|
||||
function narn (type,title,text,noticeId) {
|
||||
debugger
|
||||
naranja()[type]({
|
||||
title: title,
|
||||
text: text,
|
||||
timeout: 1000*60,
|
||||
buttons: [{
|
||||
text: '查看详情',
|
||||
click: function (e) {
|
||||
noticeManage1(noticeId);
|
||||
}
|
||||
}]
|
||||
})
|
||||
}
|
||||
</script>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue