Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/maintenance/repairStatistics.jsp
2026-01-16 14:13:44 +08:00

835 lines
27 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.sipai.entity.maintenance.MaintenanceDetail"%>
<%@page import="com.sipai.entity.maintenance.MaintenanceCommString"%>
<%@ 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"%>
<%String contextPath = request.getContextPath();%>
<%request.setAttribute("Status_Start",MaintenanceDetail.Status_Start);%>
<%request.setAttribute("Status_Finish",MaintenanceDetail.Status_Finish);%>
<%request.setAttribute("MAINTENANCE_TYPE_MAINTAIN",MaintenanceCommString.MAINTENANCE_TYPE_MAINTAIN);%>
<%request.setAttribute("MAINTENANCE_TYPE_REPAIR",MaintenanceCommString.MAINTENANCE_TYPE_REPAIR);%>
<%request.setAttribute("MAINTENANCE_TYPE_DEFECT",MaintenanceCommString.MAINTENANCE_TYPE_DEFECT);%>
<!DOCTYPE html>
<!-- <html lang="zh-CN"> -->
<!-- BEGIN HEAD -->
<head>
<title><%= ServerObject.atttable.get("TOPTITLE")%></title>
<!-- 引用页头及CSS页-->
<jsp:include page="/jsp/inc.jsp"></jsp:include>
<style type="text/css">
#div_top{
width: 100%;
height: 50%;
margin: 0px 0px 0px 0px;
float: left;
}
#div_below{
width: 100%;
height: 50%;
margin: 0px 0px 0px 0px;
float: left;
}
.allDiv{
height:100%;float:left;display:table-cell;vertical-align:middle;text-align:center;
}
.leftDiv{
display:inline-block;width:97%;height:96%;border-radius:7px;border:1px solid #DDDDDD;margin: 0px 0px 0px 0px;background-color:#FFFFFF;
}
/*
.centerDiv{
display:inline-block;width:100%;height:96%;border-radius:7px;border:1px solid #DDDDDD;margin: 0px 0px 0px 0px;background-color:#686868;
}
*/
.rightDiv{
display:inline-block;width:98%;height:96%;border-radius:7px;border:1px solid #DDDDDD;margin: 0px 2% 0px 0px;background-color:#FFFFFF;
}
.titleDiv{
width: 100%;
height: 12%;
background-color:#E3E4E6;
}
.divContent{
width: 100%;
height: 88%;
/* background-color:pink; */
}
/*
根据不同分辨率显示不同px的文字大小
*/
@media (min-width: 400px) and (min-height: 300px) {
/* 标题样式 */
.titleText{
color:#000000;
font-size:10px;
}
}
@media (min-width: 768px) and (min-height: 432px) {
/* 标题样式 */
.titleText{
color:#000000;
font-size:12px;
}
}
@media (min-width: 992px) and (min-height: 558px) {
/* 标题样式 */
.titleText{
color:#000000;
font-size:14px;
}
}
@media (min-width: 1200px) and (min-height: 675px) {
/* 标题样式 */
.titleText{
color:#000000;
font-size:16px;
}
}
@media (min-width: 1400px) and (min-height: 875px) {
/* 标题样式 */
.titleText{
color:#000000;
font-size:16px;
}
}
body{
background-color:#FFFFFF;
}
</style>
<!-- 文件上传-->
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/css/fileinput.min.css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/fileinput.min.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/locales/zh.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/echarts/echarts.4.1.0.min.js" charset="utf-8"></script>
<script type="text/javascript">
/*
年度故障趋势
*/
function echart1(container,bizid,textSize2,dateType,selectDate){
var EleId = document.getElementById(container);
$.ajax({
type:'GET',
url:ext.contextPath + '/maintenance/getRepairData.do?&&math='+Math.random()+'&bizid='+bizid+'&dateType='+dateType+'&selectDate='+selectDate+'&type='+${type},
async: true,
globle:false,
error: function(){
return false;
},
success: function(data){
var data=eval('(' + data + ')');
var mychart=echarts.init(EleId);
var xdata = new Array();//X轴数据 [0,1,2,3,4,5]
var ydata = new Array();//Y轴数据 [0,1,2,3,4,5]
for (var i = 0; i < data.length; i++) {
xdata[i] = (i+1);
ydata[i] = data[i].count;
}
var option = {
tooltip : {
trigger: 'axis',
axisPointer : {// 坐标轴指示器,坐标轴触发有效
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
top: '6%',
containLabel: true
},
xAxis: {
type: 'category',
data: xdata,
boundaryGap: false,//折线图下方阴影
axisLabel: {
interval:0, //0为显示所有标签 1为隔一个显示一个
margin: 10,
textStyle: {
fontSize:textSize2,
color: '#000000'//月份文字颜色 ---切换主题需修改
}
}
},
yAxis: {
type: 'value',
axisLabel : {
formatter: '{value}',
textStyle: {
fontSize:textSize2,
color: '#000000'//Y轴数量颜色---切换主题需修改
}
}
//name: '数量'
},
series: [
{
name: '故障数',
//type: 'bar',
barWidth:22,
type: 'line',
stack: '总量',
label: {
normal: {
show: false,//柱状图上显示数值
position: 'insideRight',
color:'#4169E1',
}
},
data: ydata,
itemStyle:{
normal:{
color:'#8DD34C', //#44CD4B,#81FA9D
}
},
areaStyle: {
//color:'FFFBF3'
}
}
]
};
mychart.clear();
mychart.setOption(option);
mychart.resize();//主动调用resize达到区域更新的效果,用于自动刷新区域大小
}
});
}
/*
故障设备占比
*/
function echart2(container,bizid,textSize1,textSize2,dateType,selectDate){
var EleId = document.getElementById(container);
$.ajax({
type:'GET',
url:ext.contextPath + '/maintenance/getRepairRatio.do?&&math='+Math.random()+'&bizid='+bizid+'&dateType='+dateType+'&selectDate='+selectDate,
async: true,
globle:false,
error: function(){
return false;
},
success: function(data){
var data=eval('(' + data + ')');
var mychart=echarts.init(EleId);
var str = [];
for (var o in data) {
str.push({
value: data[o].repaircount,
name: data[o].classname,
});
}
var option = {
title: {
text:'',
left:'center',
top:'32%',
//padding:[24,0],
textStyle:{
color:'#FFFFFF',
fontSize:textSize1,
align:'center'
}
},
/*legend: {
orient: 'horizontal',//vertical 横向 纵向
left: 'center',
bottom:'bottom',
itemWidth: 14,//legend的图标的宽度
itemHeight: 10,
itemGap: 10,
data: ['分离设备'],
textStyle:{
color:'#FFFFFF',
fontSize:textSize2
}
},*/
tooltip: {
show: true,
trigger: 'item',
formatter: '{a} <br/>{b}: {c} ({d}%)'
},
series : [
{
name: '',
type: 'pie',
radius: ['0%','75%'],//调整大小
center: ['50%', '50%'],
itemStyle : {
normal : {
label : {
show : true,
textStyle: {
fontSize:'12', //改变标示文字的大小
color: '#000000' // 改变标示文字的颜色
}
},
labelLine : {
show : true,
length:2, // 改变标示线的长度
lineStyle: {
color: "#000000" // 改变标示线的颜色
}
}
},
},
data:str,
itemStyle:{
normal:{
label:{
show: true,
formatter: '{b} : {c} 次({d}%)'
},
labelLine :{show:true}
}
}
}
]
};
mychart.clear();
mychart.setOption(option);
mychart.resize();//主动调用resize达到区域更新的效果,用于自动刷新区域大小
//饼图点击事件
mychart.on('click', function (params) {
getRankList(bizid,dateType,selectDate,params.name);//排名列表
var rankText = '('+params.name+')&nbsp;&nbsp;';
$('#rankText').html(rankText);//显示点击的名称
$('#rankTextBack').html('清除条件&nbsp;&nbsp;');//显示点击的名称
});
}
});
}
/*
工单列表
*/
function getWorkList(bizid,dateType,selectDate){
//获取div的高度
var hei = $(window).height();
var heightstr = (hei-40)*0.5*0.96;
$('#workTable').bootstrapTable('destroy');
$("#workTable").bootstrapTable({ // 对应table标签的id
url: ext.contextPath + '/maintenance/getWorkList.do', // 获取表格数据的url
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
pageList: [10], // 设置页面可以显示的数据条数
pageSize: 10, // 页面数据条数
pageNumber: 1, // 首页页码
height: heightstr-43,
sidePagination: 'server', // 设置为服务器端分页
queryParams: function (params) { // 请求服务器数据时发送的参数可以在这里添加额外的查询参数返回false则终止请求
return {
rows: params.limit, // 每页要显示的数据条数
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
sort: params.sort, // 要排序的字段
order: params.order,
search_name: $('#search_name').val(),
search_code: bizid,
type:'${type}',
dateType: dateType,
bizid:bizid,
selectDate: selectDate
}
},
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
onClickRow:function(row){
viewFun(row.id);
},
columns: [
{
field: 'companyName', // 返回json数据中的name
title: '厂区', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'10%',
formatter: function (value, row, index) {
//新数据直接保存维护公司信息,老数据只含有运维信息
if (row.company != null) {
return row.company.name;
} else if (row.maintenance != null) {
return row.maintenance.company.name;
} else {
return "--";
}
}
},{
field: 'equipmentNames', // 返回json数据中的name
title: '设备名称', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'13%',
formatter: function (value, row, index) {
return row.equipmentNames;
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.equipmentNames + "'>" + row.equipmentNames + "</span>";
}
}, {
field: 'equipmentCardIds', // 返回json数据中的name
title: '设备编号', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'15%',
formatter: function (value, row, index) {
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.equipmentCardIds + "'>" + row.equipmentCardIds + "</span>";
}
}, {
field: 'problemcontent', // 返回json数据中的name
title: '问题描述', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle', // 上下居中
width:'24%',
formatter: function (value, row, index) {
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.problemcontent + "'>" + row.problemcontent + "</span>";
}
}, {
field: 'insdt', // 返回json数据中的name
title: '发起时间', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'14%',
formatter: function (value, row, index) {
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + value.substring(0, 19) + "'>" + value.substring(0, 19) + "</span>";
}
}, {
field: 'type', // 返回json数据中的name
title: '类型', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle', // 上下居中
width:'6%',
formatter: function (value, row, index) {
switch (value) {
case '${MAINTENANCE_TYPE_MAINTAIN}':
return '保养';
case '${MAINTENANCE_TYPE_REPAIR}':
return '维修';
case '${MAINTENANCE_TYPE_DEFECT}':
return '缺陷';
default:
return '';
}
}
}, {
field: 'status', // 返回json数据中的name
title: '问题状态', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle', // 上下居中
width:'10%',
formatter: function (value, row, index) {
switch (value) {
case '${Status_Start}':
return '已下发';
case '${Status_Finish}':
return '已完成';
default:
return value;
}
}
}, {
title: "操作",
align: 'center',
valign: 'middle',
width:'8%',
formatter: function (value, row, index) {
var str = "";
str += '<button class="btn btn-default btn-sm" onclick="viewFun(\'' + row.id + '\')" data-toggle="tooltip" title="查看详情"><i class="fa fa-eye "></i><span class="hidden-md hidden-lg"> 查看详情</span></button>'
str = '<div class="btn-group" >' + str + '</div>';
return str;
}
}
],
onLoadSuccess: function () { //加载成功时执行
adjustBootstrapTableView("workTable");
},
onLoadError: function () { //加载失败时执行
console.info("加载数据失败");
}
})
};
//维修单
var viewFun = function(id){
$.post(ext.contextPath + '/maintenance/viewMaintain.do', {id:id} , function(data) {
$("#subDiv").html(data);
openModal('subRepairModal');
});
}
/*
设备风险排名列表
*/
function getRankList(bizid,dateType,selectDate,className){
//获取div的高度
var hei = $(window).height();
var heightstr = (hei-40)*0.5*0.96;
$('#rankTable').bootstrapTable('destroy');
$("#rankTable").bootstrapTable({ // 对应table标签的id
url: ext.contextPath + '/maintenance/getRankList.do', // 获取表格数据的url
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //表格显示条纹默认为false
pagination: true, // 在表格底部显示分页组件默认false
pageList: [10], // 设置页面可以显示的数据条数
pageSize: 10, // 页面数据条数
pageNumber: 1, // 首页页码
height: heightstr-43,
sidePagination: 'server', // 设置为服务器端分页
queryParams: function (params) { // 请求服务器数据时发送的参数可以在这里添加额外的查询参数返回false则终止请求
return {
rows: params.limit, // 每页要显示的数据条数
page: params.offset / params.limit + 1, // 每页显示数据的开始页码
sort: params.sort, // 要排序的字段
order: params.order,
search_name: $('#search_name').val(),
search_code: bizid,
type:'${type}',
dateType: dateType,
bizid: bizid,
selectDate: selectDate,
className: className
}
},
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
onClickRow:function(row){
viewFun4Rank(row._equipmentId);
},
columns: [
{
field: 'index', // 返回json数据中的name
title: '排名', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'6%',
formatter: function (value, row, index) {
return index + 1;
}
}, {
field: '_eqcardname', // 返回json数据中的name
title: '设备名称', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'37%',
formatter: function (value, row, index) {
return row._eqcardname;
}
}, {
field: '_eqcardid', // 返回json数据中的name
title: '设备编号', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'37%',
formatter: function (value, row, index) {
return row._eqcardid;
}
}, {
field: '_repaircount', // 返回json数据中的name
title: '故障次数', // 表格表头显示文字
align: 'center', // 左右居中
valign: 'middle',
width:'10%',
formatter: function (value, row, index) {
return row._repaircount;
}
}, {
title: "操作",
align: 'center',
valign: 'middle',
width:'10%',
formatter: function (value, row, index) {
var str = "";
str += '<button class="btn btn-default btn-sm" onclick="viewFun4Rank(\'' + row._equipmentId + '\')" data-toggle="tooltip" title="查看详情"><i class="fa fa-eye "></i><span class="hidden-md hidden-lg"> 查看详情</span></button>'
str = '<div class="btn-group" >' + str + '</div>';
return str;
}
}
],
onLoadSuccess: function () { //加载成功时执行
adjustBootstrapTableView("rankTable");
},
onLoadError: function () { //加载失败时执行
console.info("加载数据失败");
}
})
};
//维修单
var viewFun4Rank = function(equipmentId){
var unitId = unitId;
var dateType = $('#dateType').val();//查询类型 0:月 1:年
var selectDate = $('#selectDate').val();//查询的日期
$.post(ext.contextPath + '/maintenance/showList4Equipment.do', {equipmentId:equipmentId,unitId:unitId,dateType:dateType,selectDate:selectDate} , function(data) {
$("#subDivRank").html(data);
openModal('subModalMaintenanceList');
});
}
/*
根据月查询
*/
function domonth(){
$("#yeartimeId").val('');//点月的时候把年的值置为空
$("#monthButtonId").css({//高亮月 去除年高亮色
"background-color":"#238AE5"
});
$("#yearButtonId").css({
"background-color":"#FFFFFF"
});
$("#yearDiv").attr("style","width:120px;height:100%;float:left;margin:5px 5px 5px 15px;display:none;");//隐藏div
$("#monthDiv").attr("style","width:120px;height:100%;float:left;margin:5px 5px 5px 15px;display:block;");//显示div
$("#dateType").val('0');//dateType为日期类型 0为查看月 1为查看年
}
/*
根据年查询
*/
function doyear(){
$("#monthtimeId").val('');//点年的时候把月的值置为空
$("#yearButtonId").css({//高亮年 去除月高亮色
"background-color":"#238AE5"
});
$("#monthButtonId").css({
"background-color":"#FFFFFF"
});
$("#monthDiv").attr("style","width:120px;height:100%;float:left;margin:5px 5px 5px 15px;display:none;");//隐藏div
$("#yearDiv").attr("style","width:120px;height:100%;float:left;margin:5px 5px 5px 15px;display:block;");//显示div
$("#dateType").val('1');//dateType为日期类型 0为查看月 1为查看年
}
function chaDate(ev){
var dateType = $('#dateType').val();//dateType为日期类型 0为查看月 1为查看年
var datestr = '';
if(dateType=='1'){
datestr = $('#yeartimeId').val();
}else{
datestr = $('#monthtimeId').val();
}
$("#selectDate").val(datestr);//selectDate为查询时间
initMenu();//加载所有方法
}
function initMenu(){
var dateType = $('#dateType').val();//查询类型 0:月 1:年
var selectDate = $('#selectDate').val();//查询的日期
var bizid = unitId;
//根据分辨率自适应
var wid = $(window).width();
var hei = $(window).height();
$('#divbottom').height(hei-40);//顶部工具栏固定30px 其余为下面div高度
$('#monthtimeId').datepicker({
format: 'yyyy-mm',
weekStart: 1,
autoclose: true,
startView: 2,
minViewMode: 1,
maxViewMode: 2,
forceParse: false,
language: 'cn'
}).on('changeDate',chaDate);
$('#yeartimeId').datepicker({
format: 'yyyy',
weekStart: 1,
autoclose: true,
startView: 2,
minViewMode: 2,
maxViewMode: 2,
forceParse: false,
language: 'cn'
}).on('changeDate',chaDate);
var textSize1 = 0;//环形图里面的数字/百分比大小
var textSize2 = 0;//标签类 如ABCD类/白班/晚班 的大小
if(wid>0 && hei>0){
textSize1 = 12;
textSize2 = 8;
}
if(wid>768 && hei>432){
textSize1 = 12;
textSize2 = 12;
}
if(wid>992 && hei>558){
textSize1 = 16;
textSize2 = 12;
}
if(wid>1200 && hei>675){
textSize1 = 16;
textSize2 = 14;
}
echart1('container1',bizid,textSize1,dateType,selectDate);//折线图
echart2('container2',bizid,textSize1,textSize2,dateType,selectDate);//圆环图
getWorkList(bizid,dateType,selectDate);//工单列表
getRankList(bizid,dateType,selectDate,'');//排名列表
}
window.onresize = function(){
initMenu();
}
/*
清除条件
*/
function backRank(){
var bizid = unitId;
var dateType = $('#dateType').val();//查询类型 0:月 1:年
var selectDate = $('#selectDate').val();//查询的日期
getRankList(bizid,dateType,selectDate,'');//排名列表
$('#rankText').html('');//显示点击的名称
$('#rankTextBack').html('');//显示点击的名称
}
</script>
</head>
<body onload="initMenu()" style="overflow:hidden;">
<div style="width:100%;height:30;">
<input type="hidden" name="bizid" id="bizid" value="${bizidstr}">
<input type="hidden" name="dateType" id="dateType" value="1">
<input type="hidden" name="selectDate" id="selectDate" value="${datestr}">
<div id="subDiv"></div>
<div id="subDivRank"></div>
<div id="subDivDetail"></div>
<div style="width:1%;height:100%;float:left;"></div>
<div style="width:1%;height:100%;float:left;"></div>
<div style="width:120px;height:100%;float:left;margin:5px 0px;display:none;" id="monthDiv">
<div class="input-group" >
<input class="form-control date-picker" id="monthtimeId" autocomplete="off"
type="text" placeholder="点击选择" style="background-color:#FFFFFF;height:100%;" value=""/>
<span class="input-group-addon">
<i class="fa fa-calendar bigger-110"></i>
</span>
</div>
</div>
<div style="width:120px;height:100%;float:left;margin:5px 5px 5px 15px;" id="yearDiv">
<div class="input-group" >
<input class="form-control date-picker" id="yeartimeId" name="yeartimeId" autocomplete="off"
type="text" placeholder="点击选择" style="background-color:#FFFFFF;height:100%;" value="${datestr}"/>
<span class="input-group-addon">
<i class="fa fa-calendar bigger-110"></i>
</span>
</div>
</div>
<div style="width:1%;height:100%;float:left;"></div>
<div style="width:120px;height:100%;float:left;margin:3px 5px 6px 0px">
<div class="btn-group" role="group" aria-label="...">
<button id="yearButtonId" type="button" class="btn btn-default" style="height:100%;background-color:#238AE5;" onclick="doyear();">
</button>
<button id="monthButtonId" type="button" class="btn btn-default" style="height:100%;background-color:#D4D4D4;" onclick="domonth();">
</button>
</div>
</div>
</div>
<div style="width:100%;" id="divbottom">
<!--上面div-->
<div id="div_top">
<div class="allDiv" style="width:60%;">
<div class="leftDiv">
<div class="titleDiv">
<!-- <span class="titleTextDiv">2019年设备故障趋势图</span> -->
<table style="font-size: 12px;border-left: 1px solid #e4e4e4;border-right: 1px solid #e4e4e4;table-layout: fixed;border-collapse: collapse;width:100%;height:100%;background: #E3E4E6;" cellspacing="0">
<tr style="border-bottom: 1px solid #e4e4e4;padding-bottom:5px;height:10%;">
<td align="left" class="titleText">&nbsp;&nbsp;设备故障趋势图</td>
</tr>
</table>
</div>
<div class="divContent">
<div id="container1" style="width:100%; height:100%;"></div>
</div>
</div>
</div>
<div class="allDiv" style="width:40%;">
<div class="rightDiv">
<div class="titleDiv">
<!-- <span class="titleTextDiv">设备风险图</span> -->
<table style="font-size: 12px;border-left: 1px solid #e4e4e4;border-right: 1px solid #e4e4e4;table-layout: fixed;border-collapse: collapse;width:100%;height:100%;background: #E3E4E6;" cellspacing="0">
<tr style="border-bottom: 1px solid #e4e4e4;padding-bottom:5px;height:10%;">
<td align="left" class="titleText">&nbsp;&nbsp;设备风险图</td>
</tr>
</table>
</div>
<div class="divContent">
<div id="container2" style="width:100%; height:100%;"></div>
</div>
</div>
</div>
</div>
<!--下面div-->
<div id="div_below">
<div class="allDiv" style="width:60%;">
<div class="leftDiv">
<div class="titleDiv">
<!-- <span class="titleTextDiv">维修工单</span> -->
<table style="font-size: 12px;border-left: 1px solid #e4e4e4;border-right: 1px solid #e4e4e4;table-layout: fixed;border-collapse: collapse;width:100%;height:100%;background: #E3E4E6;" cellspacing="0">
<tr style="border-bottom: 1px solid #e4e4e4;padding-bottom:5px;height:10%;">
<td align="left" class="titleText">&nbsp;&nbsp;维修工单</td>
<!-- <td align="right" class="titleText"><button type="button" onclick="selectMore()">更多</button>&nbsp;&nbsp;</td> -->
</tr>
</table>
</div>
<div class="divContent">
<table id="workTable" style="table-layout:fixed;"></table>
</div>
</div>
</div>
<div class="allDiv" style="width:40%;">
<div class="rightDiv">
<div class="titleDiv">
<table style="font-size: 12px;border-left: 1px solid #e4e4e4;border-right: 1px solid #e4e4e4;table-layout: fixed;border-collapse: collapse;width:100%;height:100%;background: #E3E4E6;" cellspacing="0">
<tr style="border-bottom: 1px solid #e4e4e4;padding-bottom:5px;height:10%;">
<td align="left" class="titleText">&nbsp;&nbsp;<span style="cursor:pointer;" >设备风险排行</span>&nbsp;
<span id="rankText" style="color:red;cursor:pointer"></span>
<span id="rankTextBack" style="font-size:8px;cursor:pointer" onclick="backRank()" ></span>
</td>
</tr>
</table>
</div>
<div class="divContent">
<table id="rankTable"></table>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- bootstrap switch -->
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-switch/dist/js/bootstrap-switch.min.js" charset="utf-8"></script>
</html>