first commit
This commit is contained in:
594
WebRoot/jsp/msg/msgListrecv4mobile.jsp
Normal file
594
WebRoot/jsp/msg/msgListrecv4mobile.jsp
Normal file
@ -0,0 +1,594 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
||||
<%@ page import="com.sipai.entity.base.ServerObject"%>
|
||||
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security"%>
|
||||
<!DOCTYPE html>
|
||||
<!-- <html lang="zh-CN"> -->
|
||||
<!-- BEGIN HEAD -->
|
||||
<head>
|
||||
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
|
||||
<!-- 引用页头及CSS页-->
|
||||
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
||||
<!-- bootstrap switch -->
|
||||
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js" charset="utf-8"></script>
|
||||
<style type="text/css">
|
||||
.message_s {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.message_s:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
/*以下内容可以根据实际需要进行调整 -----start------*/
|
||||
top: 3px;
|
||||
left: 70px; /*改成:right: -13px; 圆点显示在右侧*/
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background-color:red;
|
||||
/*-----end------*/
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
//模糊查询功能
|
||||
function dosearch(tablename) {
|
||||
$("#"+tablename+"").bootstrapTable('refresh');
|
||||
};
|
||||
|
||||
var redFlag='0';
|
||||
// var newsType='needToDo';
|
||||
|
||||
function getNum(newsType){
|
||||
$.post(ext.contextPath + '/msg/getMsgRecvNum.do', {newsType:newsType} , function(data) {
|
||||
$('#unews').text(data.unews);
|
||||
$('#rnews').text(data.rnews);
|
||||
$('#totalnews').text(data.totalnews);
|
||||
if(newsType=='needToDo'){
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt1').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt1').removeClass("message_s");
|
||||
}
|
||||
}else if(newsType=='alarm'){
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt2').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt2').removeClass("message_s");
|
||||
}
|
||||
}else if(newsType=='system'){
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt3').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt3').removeClass("message_s");
|
||||
}
|
||||
}
|
||||
|
||||
},'json');
|
||||
}
|
||||
|
||||
function getFirstNum(){
|
||||
$.post(ext.contextPath + '/msg/getMsgRecvNum.do', {newsType:'needToDo'} , function(data) {
|
||||
$('#unews').text(data.unews);
|
||||
$('#rnews').text(data.rnews);
|
||||
$('#totalnews').text(data.totalnews);
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt1').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt1').removeClass("message_s");
|
||||
}
|
||||
},'json');
|
||||
$.post(ext.contextPath + '/msg/getMsgRecvNum.do', {newsType:'alarm'} , function(data) {
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt2').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt2').removeClass("message_s");
|
||||
}
|
||||
},'json');
|
||||
$.post(ext.contextPath + '/msg/getMsgRecvNum.do', {newsType:'system'} , function(data) {
|
||||
if(Number(data.unews)>0){
|
||||
$('#tabSt3').addClass("message_s");
|
||||
}else{
|
||||
$('#tabSt3').removeClass("message_s");
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
|
||||
$(function() {
|
||||
initDate();
|
||||
getFirstNum();
|
||||
|
||||
$("#needToDoTable").bootstrapTable({ // 对应table标签的id
|
||||
url: ext.contextPath + '/msg/getMsgrecv.do', // 获取表格数据的url
|
||||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||||
striped: true, //表格显示条纹,默认为false
|
||||
pagination: true, // 在表格底部显示分页组件,默认false
|
||||
pageList: [10, 20], // 设置页面可以显示的数据条数
|
||||
pageSize: 10, // 页面数据条数
|
||||
pageNumber: 1, // 首页页码
|
||||
sidePagination: 'server', // 设置为服务器端分页
|
||||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||||
return {
|
||||
rows: params.limit, // 每页要显示的数据条数
|
||||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||||
sort: params.sort, // 要排序的字段
|
||||
order: params.order,
|
||||
redFlag: redFlag,
|
||||
sdt:beginTimeStore,
|
||||
edt:endTimeStore,
|
||||
newsType:'needToDo',
|
||||
search_content:$('#search_content').val()
|
||||
}
|
||||
},
|
||||
sortName: 'm.insdt', // 要排序的字段
|
||||
sortOrder: 'desc', // 排序规则
|
||||
// onClickRow: function (row) {//单击行事件,执行查看功能
|
||||
// viewFun(row.id);
|
||||
// },
|
||||
columns: [
|
||||
{
|
||||
field: 'typename', // 返回json数据中的name
|
||||
title: '消息类别', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return row.typename.name
|
||||
}
|
||||
},{
|
||||
field: 'content', // 返回json数据中的name
|
||||
title: '消息内容', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle' // 上下居中
|
||||
},{
|
||||
field: 'insdt', // 返回json数据中的name
|
||||
title: '接收时间', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return value.substring(0,16)
|
||||
}
|
||||
},{
|
||||
title: "操作",
|
||||
align: 'center',
|
||||
valign: 'middle',
|
||||
width: 120, // 定义列的宽度,单位为像素px
|
||||
formatter: function (value, row, index) {
|
||||
var str = '';
|
||||
str+='<button class="btn btn-default btn-sm" title="查看" onclick="viewFun(\'' + row.id + '\')"><i class="fa fa-eye"></i><span class="hidden-md hidden-lg"> 查看</span></button>';
|
||||
str+='<button class="btn btn-default btn-sm" title="删除" onclick="deleteFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i><span class="hidden-md hidden-lg"> 删除</span></button>';
|
||||
str='<div class="btn-group" >'+str+'</div>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
],
|
||||
onLoadSuccess: function(){ //加载成功时执行
|
||||
adjustBootstrapTableView("needToDoTable");
|
||||
},
|
||||
onLoadError: function(){ //加载失败时执行
|
||||
console.info("加载数据失败");
|
||||
}
|
||||
})
|
||||
|
||||
$("#alarmTable").bootstrapTable({ // 对应table标签的id
|
||||
url: ext.contextPath + '/msg/getMsgrecv.do', // 获取表格数据的url
|
||||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||||
striped: true, //表格显示条纹,默认为false
|
||||
pagination: true, // 在表格底部显示分页组件,默认false
|
||||
pageList: [10, 20], // 设置页面可以显示的数据条数
|
||||
pageSize: 10, // 页面数据条数
|
||||
pageNumber: 1, // 首页页码
|
||||
sidePagination: 'server', // 设置为服务器端分页
|
||||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||||
return {
|
||||
rows: params.limit, // 每页要显示的数据条数
|
||||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||||
sort: params.sort, // 要排序的字段
|
||||
order: params.order,
|
||||
redFlag: redFlag,
|
||||
sdt:beginTimeStore,
|
||||
edt:endTimeStore,
|
||||
newsType:'ALARM',
|
||||
search_content:$('#search_content').val()
|
||||
}
|
||||
},
|
||||
sortName: 'm.insdt', // 要排序的字段
|
||||
sortOrder: 'desc', // 排序规则
|
||||
// onClickRow: function (row) {//单击行事件,执行查看功能
|
||||
// viewFun(row.id);
|
||||
// },
|
||||
columns: [
|
||||
{
|
||||
field: 'typename', // 返回json数据中的name
|
||||
title: '消息类别', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return row.typename.name
|
||||
}
|
||||
},{
|
||||
field: 'content', // 返回json数据中的name
|
||||
title: '消息内容', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle' // 上下居中
|
||||
},{
|
||||
field: 'insdt', // 返回json数据中的name
|
||||
title: '接收时间', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return value.substring(0,16)
|
||||
}
|
||||
},{
|
||||
title: "操作",
|
||||
align: 'center',
|
||||
valign: 'middle',
|
||||
width: 120, // 定义列的宽度,单位为像素px
|
||||
formatter: function (value, row, index) {
|
||||
var str = '';
|
||||
str+='<button class="btn btn-default btn-sm" title="查看" onclick="viewFun(\'' + row.id + '\')"><i class="fa fa-eye"></i><span class="hidden-md hidden-lg"> 查看</span></button>';
|
||||
str+='<button class="btn btn-default btn-sm" title="删除" onclick="deleteFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i><span class="hidden-md hidden-lg"> 删除</span></button>';
|
||||
str='<div class="btn-group" >'+str+'</div>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
],
|
||||
onLoadSuccess: function(){ //加载成功时执行
|
||||
adjustBootstrapTableView("alarmTable");
|
||||
},
|
||||
onLoadError: function(){ //加载失败时执行
|
||||
console.info("加载数据失败");
|
||||
}
|
||||
})
|
||||
|
||||
$("#systemTable").bootstrapTable({ // 对应table标签的id
|
||||
url: ext.contextPath + '/msg/getMsgrecv.do', // 获取表格数据的url
|
||||
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
|
||||
striped: true, //表格显示条纹,默认为false
|
||||
pagination: true, // 在表格底部显示分页组件,默认false
|
||||
pageList: [10, 20], // 设置页面可以显示的数据条数
|
||||
pageSize: 10, // 页面数据条数
|
||||
pageNumber: 1, // 首页页码
|
||||
sidePagination: 'server', // 设置为服务器端分页
|
||||
queryParams: function (params) { // 请求服务器数据时发送的参数,可以在这里添加额外的查询参数,返回false则终止请求
|
||||
return {
|
||||
rows: params.limit, // 每页要显示的数据条数
|
||||
page: params.offset/params.limit+1, // 每页显示数据的开始页码
|
||||
sort: params.sort, // 要排序的字段
|
||||
order: params.order,
|
||||
redFlag: redFlag,
|
||||
sdt:beginTimeStore,
|
||||
edt:endTimeStore,
|
||||
newsType:'system',
|
||||
search_content:$('#search_content').val()
|
||||
}
|
||||
},
|
||||
sortName: 'm.insdt', // 要排序的字段
|
||||
sortOrder: 'desc', // 排序规则
|
||||
// onClickRow: function (row) {//单击行事件,执行查看功能
|
||||
// viewFun(row.id);
|
||||
// },
|
||||
columns: [
|
||||
{
|
||||
field: 'typename', // 返回json数据中的name
|
||||
title: '消息类别', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return row.typename.name
|
||||
}
|
||||
},{
|
||||
field: 'content', // 返回json数据中的name
|
||||
title: '消息内容', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle' // 上下居中
|
||||
},{
|
||||
field: 'insdt', // 返回json数据中的name
|
||||
title: '接收时间', // 表格表头显示文字
|
||||
align: 'center', // 左右居中
|
||||
valign: 'middle', // 上下居中
|
||||
formatter: function (value, row, index) {
|
||||
return value.substring(0,16)
|
||||
}
|
||||
},{
|
||||
title: "操作",
|
||||
align: 'center',
|
||||
valign: 'middle',
|
||||
width: 120, // 定义列的宽度,单位为像素px
|
||||
formatter: function (value, row, index) {
|
||||
var str = '';
|
||||
str+='<button class="btn btn-default btn-sm" title="查看" onclick="viewFun(\'' + row.id + '\')"><i class="fa fa-eye"></i><span class="hidden-md hidden-lg"> 查看</span></button>';
|
||||
str+='<button class="btn btn-default btn-sm" title="删除" onclick="deleteFun(\'' + row.id + '\')"><i class="fa fa-trash-o"></i><span class="hidden-md hidden-lg"> 删除</span></button>';
|
||||
str='<div class="btn-group" >'+str+'</div>';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
],
|
||||
onLoadSuccess: function(){ //加载成功时执行
|
||||
adjustBootstrapTableView("systemTable");
|
||||
},
|
||||
onLoadError: function(){ //加载失败时执行
|
||||
console.info("加载数据失败");
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
var beginTimeStore = '';
|
||||
var endTimeStore = '';
|
||||
function initDate() {
|
||||
//定义locale汉化插件
|
||||
// beginTimeStore = moment().subtract(7, 'days').format('YYYY-MM-DD');
|
||||
// endTimeStore = moment().subtract(0, 'days').format('YYYY-MM-DD');
|
||||
var locale = {
|
||||
"format": 'YYYY-MM-DD',
|
||||
"separator": " ~ ",
|
||||
"applyLabel": "确定",
|
||||
// "cancelLabel": "取消",
|
||||
"cancelLabel": '清除',
|
||||
"fromLabel": "起始时间",
|
||||
"toLabel": "结束时间'",
|
||||
"customRangeLabel": "自定义",
|
||||
"weekLabel": "W",
|
||||
"daysOfWeek": ["日", "一", "二", "三", "四", "五", "六"],
|
||||
"monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
||||
"firstDay": 1
|
||||
};
|
||||
$('#reservationtime').daterangepicker({
|
||||
"timePicker": true,
|
||||
"timePicker24Hour": true,
|
||||
"linkedCalendars": false,
|
||||
"autoUpdateInput": false,
|
||||
"timePickerIncrement": 10,
|
||||
"locale": locale,
|
||||
//汉化按钮部分
|
||||
ranges: {
|
||||
'今日': [moment(), moment().subtract(-1, 'days')],
|
||||
'昨日': [moment().subtract(1, 'days'), moment()],
|
||||
'最近7日': [moment().subtract(6, 'days'), moment().subtract(-1, 'days')],
|
||||
'本月': [moment().startOf('month'), moment().endOf('month').subtract(-1, 'days')],
|
||||
'上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month').subtract(-1, 'days')]
|
||||
},
|
||||
// startDate: beginTimeStore,
|
||||
// endDate: endTimeStore
|
||||
}, function(start, end, label) {
|
||||
beginTimeStore = start.format(this.locale.format);
|
||||
endTimeStore = end.format(this.locale.format);
|
||||
if(!this.startDate){
|
||||
this.element.val('');
|
||||
}else{
|
||||
this.element.val(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
|
||||
}
|
||||
$('#reservationtime').on('cancel.daterangepicker', function (ev, picker) {
|
||||
$('#reservationtime').val('');
|
||||
searchModel.Start = null;
|
||||
searchModel.End = null;
|
||||
});
|
||||
|
||||
dosearch(tablename);
|
||||
});
|
||||
// $('#reservationtime').val(beginTimeStore + locale.separator + endTimeStore);
|
||||
};
|
||||
|
||||
function viewFun(id){
|
||||
stopBubbleDefaultEvent();
|
||||
$.post(ext.contextPath + '/msg/viewMsgRecv.do', {id:id} , function(data) {
|
||||
$("#subDiv").html(data);
|
||||
openModal('subModal');
|
||||
|
||||
getNum(tablename.replace('Table',''));
|
||||
dosearch(tablename);
|
||||
});
|
||||
}
|
||||
|
||||
var tablename="needToDoTable";
|
||||
function changeTable(st){
|
||||
tablename=st+"Table";
|
||||
getNum(st);
|
||||
dosearch(tablename);
|
||||
}
|
||||
|
||||
function changeRedFlag(st){
|
||||
redFlag=st;
|
||||
if(st=='0'){
|
||||
$('#redFlag1').css('background-color','#ffffff');
|
||||
$('#redFlag2').css('background-color','');
|
||||
$('#redFlag3').css('background-color','');
|
||||
}else if(st=='1'){
|
||||
$('#redFlag1').css('background-color','');
|
||||
$('#redFlag2').css('background-color','#ffffff');
|
||||
$('#redFlag3').css('background-color','');
|
||||
}else if(st=='2'){
|
||||
$('#redFlag1').css('background-color','');
|
||||
$('#redFlag2').css('background-color','');
|
||||
$('#redFlag3').css('background-color','#ffffff');
|
||||
}
|
||||
dosearch(tablename);
|
||||
}
|
||||
|
||||
function doRightSearch(){
|
||||
dosearch(tablename);
|
||||
}
|
||||
|
||||
//标记为已读
|
||||
var updateStatusFun = function() {
|
||||
swal({
|
||||
text: "您确定要全部标记已读?",
|
||||
dangerMode: true,
|
||||
buttons: {
|
||||
cancel: {
|
||||
text: "取消",
|
||||
value: null,
|
||||
visible: true,
|
||||
className: "btn btn-default btn-sm",
|
||||
closeModal: true,
|
||||
},
|
||||
confirm: {
|
||||
text: "确定",
|
||||
value: true,
|
||||
visible: true,
|
||||
className: "btn btn-danger btn-sm",
|
||||
closeModal: true
|
||||
}
|
||||
}
|
||||
})
|
||||
.then(function(willDelete) {
|
||||
if (willDelete) {
|
||||
viewAllMsgRecv();
|
||||
}})
|
||||
};
|
||||
|
||||
function viewAllMsgRecv(){
|
||||
$.post(ext.contextPath + '/msg/updateAllMsgRecvStatus.do', {tablename:tablename.replace('Table','')} , function(data) {
|
||||
getNum(tablename.replace('Table',''));
|
||||
dosearch(tablename);
|
||||
},'json');
|
||||
}
|
||||
|
||||
function deleteFun(id){
|
||||
swal({
|
||||
text: "您确定要删除该条记录?",
|
||||
dangerMode: true,
|
||||
buttons: {
|
||||
cancel: {
|
||||
text: "取消",
|
||||
value: null,
|
||||
visible: true,
|
||||
className: "btn btn-default btn-sm",
|
||||
closeModal: true,
|
||||
},
|
||||
confirm: {
|
||||
text: "确定",
|
||||
value: true,
|
||||
visible: true,
|
||||
className: "btn btn-danger btn-sm",
|
||||
closeModal: true
|
||||
}
|
||||
}
|
||||
})
|
||||
.then(function(willDelete) {
|
||||
if (willDelete) {
|
||||
$.post(ext.contextPath + '/msg/deleteMsg.do', {id:id} , function(data) {
|
||||
getNum(tablename.replace('Table',''));
|
||||
dosearch(tablename);
|
||||
},'json');
|
||||
}})
|
||||
}
|
||||
|
||||
//一键删除
|
||||
var deleteAllMsgRecvFun = function() {
|
||||
swal({
|
||||
text: "您确定要删除所有记录?",
|
||||
dangerMode: true,
|
||||
buttons: {
|
||||
cancel: {
|
||||
text: "取消",
|
||||
value: null,
|
||||
visible: true,
|
||||
className: "btn btn-default btn-sm",
|
||||
closeModal: true,
|
||||
},
|
||||
confirm: {
|
||||
text: "确定",
|
||||
value: true,
|
||||
visible: true,
|
||||
className: "btn btn-danger btn-sm",
|
||||
closeModal: true
|
||||
}
|
||||
}
|
||||
})
|
||||
.then(function(willDelete) {
|
||||
if (willDelete) {
|
||||
deleteAllMsgRecv();
|
||||
}})
|
||||
};
|
||||
|
||||
function deleteAllMsgRecv(){
|
||||
$.post(ext.contextPath + '/msg/deleteAllMsgRecv.do', {tablename:tablename.replace('Table','')} , function(data) {
|
||||
getNum(tablename.replace('Table',''));
|
||||
dosearch(tablename);
|
||||
},'json');
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body class="hold-transition ${cu.themeclass} sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<!-- 引用top -->
|
||||
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
|
||||
<!-- 菜单栏 -->
|
||||
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1 id ="head_title"></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a id ='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>
|
||||
<!-- <li class="active">Here</li> -->
|
||||
</ol>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content container-fluid">
|
||||
<div id="mainAlertdiv"></div>
|
||||
<div id="subDiv"></div>
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-tabs" id="myTab">
|
||||
<li class="active"><a id="tabSt1" href="#tab1" data-toggle="tab"
|
||||
index="0" aria-expanded="true" onclick="changeTable('needToDo');" >待办消息</a></li>
|
||||
<li class=""><a id="tabSt2" href="#tab2" data-toggle="tab" index="1"
|
||||
aria-expanded="true" onclick="changeTable('alarm');" >告警消息</a></li>
|
||||
<li class=""><a id="tabSt3" href="#tab3" data-toggle="tab" index="1"
|
||||
aria-expanded="true" onclick="changeTable('system');" >系统消息</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="btn-group" style="width: 100%;padding-top:10px;padding-bottom:10px;">
|
||||
<div style="float:left;line-height:34px;">
|
||||
<span id="redFlag1" class="fa fa-envelope" style="padding-left: 10px;color:#0AB1DF;cursor: pointer;line-height: 33px;border-radius:10px;background-color: #ffffff;" onclick="changeRedFlag('0');"> 未读:</span></span><span id="unews"></span>
|
||||
<span id="redFlag2" class="fa fa-envelope-o" style="padding-left: 10px;cursor: pointer;line-height: 33px;border-radius:10px;" onclick="changeRedFlag('1');"> 已读:</span><span id="rnews"></span>
|
||||
<span id="redFlag3" class="fa fa-envelope-square" style="padding-left: 10px;cursor: pointer;line-height: 33px;border-radius:10px;" onclick="changeRedFlag('2');"> 总数:</span><span id="totalnews"></span>
|
||||
</div>
|
||||
|
||||
<div style="float:left;width:200px;margin-left:20px;">
|
||||
<input type="text" class="form-control pull-left" autocomplete="off" id="reservationtime" style="width:200px;border-radius:10px;" placeholder="选择日期" readonly>
|
||||
</div>
|
||||
|
||||
<div onclick="deleteAllMsgRecvFun();" style="float:left;width:80px;margin-left:20px;border-radius:15px;text-align: center;line-height: 34px;background-color:#ffffff;cursor: pointer;">
|
||||
全部删除
|
||||
</div>
|
||||
<div onclick="updateStatusFun();" style="float:left;width:80px;margin-left:20px;border-radius:15px;text-align: center;line-height: 34px;background-color:#0AB1DF;color: #ffffff;cursor: pointer;">
|
||||
一键已读
|
||||
</div>
|
||||
|
||||
<div style="float:right;width:270px;margin-left:20px;">
|
||||
<input type="text" class="form-control pull-left" id="search_content" style="width:200px;border-radius:10px;" placeholder="消息内容..." >
|
||||
<button type="button" class="btn btn-default btn-sm" style="margin-left:5px;height: 35px;" onclick="doRightSearch();"><i class="fa fa-search"></i> 查询</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tab-content no-padding">
|
||||
<div class="chart tab-pane active" id="tab1"
|
||||
style="position: relative; padding:5px;">
|
||||
<table id="needToDoTable"></table>
|
||||
</div>
|
||||
<div class=" tab-pane" id="tab2"
|
||||
style="position: relative; padding:5px;">
|
||||
<table id="alarmTable"></table>
|
||||
</div>
|
||||
<div class=" tab-pane" id="tab3"
|
||||
style="position: relative; padding:5px;">
|
||||
<table id="systemTable"></table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
||||
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user