<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<title>大屏</title>
|
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/desktop.css">
|
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
|
<link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
|
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/plugins/jquery.portal.js"></script>
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
|
<script type="text/javascript" src="static/plugins/echarts/echarts.min.js"></script>
|
<script type="text/javascript" src="static/scripts/customResize.js"></script>
|
|
<!-- 弹窗加载组件 -->
|
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
|
|
<!-- echarts组件 -->
|
<script src="static/plugins/echarts/echarts.min.js"></script>
|
<script src="static/plugins/echarts/echarts.common.min.js"></script>
|
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
|
<!--[if lt IE 9]>
|
<script type="text/javascript" src="static/plugins/json2.js"></script>
|
<![endif]-->
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
|
<style>
|
body {
|
background: url(static/styles/images/input.png);
|
background: #1b3269; /* 深蓝灰色背景 */
|
color: #e2e8f0; /* 浅灰蓝色文字 */
|
}
|
|
html, body {
|
height: 100%;
|
}
|
|
.desktop2 {
|
height: 100%;
|
overflow-x: hidden;
|
background: #0f172a;
|
}
|
|
.panel-body {
|
/*background: #e6ecf5;*/
|
background: linear-gradient(145deg, #1e293b, #0f172a); /* 渐变背景 */
|
border-radius: 8px;
|
box-shadow: 0 4px 20px rgba(0, 195, 255, 0.15);
|
}
|
|
.desktop2 {
|
padding: 10px 0;
|
}
|
|
.monoploy {
|
overflow: hidden;
|
}
|
|
.portal-p {
|
/*background: #fff;*/
|
background: rgba(30, 41, 59, 0.7);
|
}
|
|
.portal {
|
padding: 0;
|
margin: 0;
|
overflow: hidden !important;
|
}
|
|
.panel {
|
margin-bottom: 10px;
|
/*background: #fff;*/
|
background: linear-gradient(221deg, #6787bb, #01050e);
|
border-radius: 8px;
|
border: 1px solid rgba(100, 150, 255, 0.5);
|
box-shadow: 0 4px 15px rgba(0, 100, 255, 0.1);
|
}
|
|
.panel-icon {
|
left: 16px;
|
margin-top: -5px;
|
/*color: #808080;*/
|
color: #60a5fa; /* 科技蓝 */
|
}
|
|
.panel-header {
|
height: 38px;
|
line-height: 38px;
|
padding: 0 16px 0 22px;
|
/*background: none;*/
|
background: rgba(15, 23, 42, 0.7);
|
/*border: 0 none;*/
|
/*border-bottom: 2px solid #f5f5f5;*/
|
border-bottom: 2px solid rgba(7, 151, 241, 0.3);
|
border-radius: 8px 8px 0 0;
|
}
|
|
.panel-body {
|
overflow-x: hidden;
|
border: 0 none;
|
}
|
|
.spacing {
|
/*background: #fff;*/
|
background: rgba(30, 41, 59, 0.5);
|
}
|
|
.panel-title {
|
font-size: 14px;
|
font-weight: bold;
|
/*color: #808080;*/
|
color: #93c5fd; /* 浅蓝色标题 */
|
line-height: 38px;
|
height: 38px;
|
background: none;
|
}
|
|
.panel-tool {
|
right: 16px;
|
}
|
|
.tablecon {
|
padding: 10px;
|
width: 100%;
|
height: 100%;
|
}
|
|
.d-list3 li {
|
/*color: #8a8a8a;*/
|
color: #cbd5e1; /* 中灰蓝色 */
|
}
|
|
.d-list3 li a {
|
width: 60%;
|
color: #93c5fd;
|
transition: all 0.3s ease;
|
}
|
|
.d-list3 li i {
|
margin-right: 6px;
|
color: #3b82f6;
|
}
|
</style>
|
|
</head>
|
|
<body class="easyui-layout">
|
<div class="desktop2" region="center" id="desk" border="false" style="background:
|
<c:if test="${layout.backgroundColor!=''}">${layout.backgroundColor};</c:if>
|
<c:if test="${layout.backgroundPicture!=''}">url('${layout.backgroundPicture}');</c:if>">
|
<c:set var="layoutStr" value=""/>
|
<c:forEach var="row" items="${rowList}" varStatus="staturs">
|
<div class="monoploy">
|
<c:set var="ratio" value="${fn:split(row.ratio,':')}"/>
|
<c:forEach var="col" begin="0" end="${row.column-1}" step="1">
|
<div style="width:${ratio[col]}0%;">
|
<c:forEach var="subrow" items="${row.desktopParts}" varStatus="staturs">
|
<c:set var="part" value="${subrow.items[col]}"/>
|
<c:if test="${part.partId!='' && !fn:contains(part.partId, 'id_')}">
|
<c:set var="partCfg" value="${part.getDesktopPart()}"/>
|
<c:if test="${partCfg.renderType != 1}">
|
<c:set var="getPartContentScriptStr"
|
value='${getPartContentScriptStr}getPartContent("${part.partId}"); '/>
|
</c:if>
|
<div
|
<c:if test="${partCfg.enableHideTitleBar==null || !partCfg.enableHideTitleBar}">title="${part.partName}<c:if test='${partCfg.enableTotal!=null && partCfg.enableTotal}'>(<span id='${partCfg.totalId}'>-</span>)</c:if>"
|
</c:if>
|
id="${part.partId}" style="height:${partCfg.partHeight}px;"
|
data-options="<c:if test="${partCfg.enableIcon}">iconCls:'${partCfg.icon}',</c:if>tools:'#toolbar_${part.partId}'">
|
<div id="toolbar_${part.partId}" style="display: none">
|
<c:if test="${partCfg.enableAdd}">
|
<a onclick="addOnclick('${partCfg.addUrl}','${part.partName}','${part.partId}');"
|
title="新增" class="panel-plus"></a>
|
</c:if>
|
<c:if test="${partCfg.enableRefresh}">
|
<c:if test="${partCfg.renderType != 1}">
|
<a title="刷新" onclick="getPartContent('${part.partId}');"
|
class="panel-refesh"></a>
|
</c:if>
|
<c:if test="${partCfg.renderType == 1}">
|
<a title="刷新" onclick="refreshData('${part.partId}');"
|
class="panel-refesh"></a>
|
</c:if>
|
</c:if>
|
<c:if test="${partCfg.enableMore}">
|
<a onclick="openTab('${partCfg.moreUrl}','${part.partName}');"
|
class="panel-more" title="<c:if test="${partCfg.moreTips ==''}">
|
更多
|
</c:if>
|
<c:if test="${partCfg.moreTips !=''}">
|
${partCfg.moreTips}
|
</c:if>"> </a>
|
</c:if>
|
</div>
|
<c:if test="${partCfg.dataSourcesType == 0 && partCfg.renderType == 1}">
|
<div id="div_${part.partId}">
|
<table id="dg_${part.partId}"
|
style="width:100%;height:${partCfg.partHeight-48}px "></table>
|
</div>
|
${part.generateDataGrid(partCfg)}
|
</c:if>
|
</div>
|
</c:if>
|
<c:if test="${part.partId==''}">
|
<div title="" id="" collapsible="true" closable="true" style="height:200px;"></div>
|
</c:if>
|
</c:forEach>
|
</div>
|
</c:forEach>
|
</div>
|
</c:forEach>
|
</div>
|
</body>
|
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
|
<script type="text/javascript">
|
$(function () {
|
${getPartContentScriptStr};
|
|
|
$(document).ready(function () {
|
$('#dg_1433992357438554114').datagrid({
|
fitColumns: true
|
});
|
});
|
$('.monoploy').portal({
|
border: false,
|
fit: false,
|
isResize: true
|
});
|
|
})
|
|
function getPartContent(partId) {
|
var url = "desktop/getPartContent?partId=" + partId;
|
wcp.ui.setBusy("#" + partId, wcp.ajax({
|
url: url
|
}).done(function (result) {
|
$("#" + partId).html(result.content);
|
}));
|
}
|
|
function openLayer(url, title, width, height, partId, type) {
|
top.layer.open({
|
title: title,
|
type: 2,
|
area: [width + "px", height + "px"],
|
fixed: false,
|
content: url,
|
success: function (layero, index) {
|
var body = window.top.layer.getChildFrame('body', index);
|
var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
|
|
//将回调函数传给子页面
|
if (iframeWin.params) {
|
iframeWin.params.callBack = getPartContent;
|
iframeWin.params.callBackParams = partId;
|
if (type == 1) {
|
iframeWin.params.callBack = refreshData;
|
}
|
}
|
}
|
});
|
}
|
|
function openTab(url, title, partId, type) {
|
top.addPanel(url, title);
|
var curTabWin = null;
|
var curTab = top.$('#tt').tabs('getSelected');
|
if (curTab && curTab.find('iframe').length > 0) {
|
curTabWin = curTab.find('iframe')[0].contentWindow;
|
//将回调函数传给子页面
|
$(curTabWin).load(function () {
|
|
if (curTabWin.params) {
|
|
curTabWin.params.callBackParams = partId;
|
curTabWin.params.callBack = getPartContent;
|
if (type == 1) {
|
curTabWin.params.callBack = refreshData;
|
}
|
|
}
|
});
|
}
|
|
}
|
|
function openWin(url, title, partId, type) {
|
var myWindow = window.open(url, title);
|
//将回调函数传给子页面
|
$(myWindow).load(function () {
|
if (myWindow.params) {
|
myWindow.params.callBack = getPartContent;
|
myWindow.params.callBackParams = partId;
|
if (type == 1) {
|
myWindow.params.callBack = refreshData;
|
}
|
}
|
});
|
}
|
|
function refreshData(partId) {
|
$('#dg_' + partId).datagrid('reload');
|
}
|
|
function addOnclick(url, title, partId) {
|
|
top.layer.open({
|
title: title,
|
type: 2,
|
area: ["800px", "700px"],
|
fixed: false,
|
content: url,
|
success: function (layero, index) {
|
var body = window.top.layer.getChildFrame('body', index);
|
var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
|
|
//将回调函数传给子页面
|
if (iframeWin.params) {
|
iframeWin.params.callBack = getPartContent;
|
iframeWin.params.callBackParams = partId;
|
}
|
}
|
});
|
|
}
|
|
function rowClickEvent(index, row, keyId, formId, renderType, width, height, partId, title) {
|
var url = "general/editFormData?formId=" + formId + "&keyId=" + keyId;
|
if (renderType == 0) {
|
openLayer(url, title, width, height, partId, '1')
|
} else if (renderType == 1) {
|
openWin(url, title, partId, '1');
|
} else if (renderType == 2) {
|
openTab(url, title, partId, '1');
|
}
|
|
}
|
|
</script>
|
<script>
|
$(function () {
|
new ResizeScroll({
|
"id": "#desk",
|
fun: function () {
|
$(".monoploy").trigger("_resize");
|
var wh = $(window).height();
|
//console.log(wh)
|
return (wh + 10);
|
}
|
});
|
})
|
</script>
|
|
|
</html>
|