|
|
@ -1,11 +1,62 @@
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
<html lang="zh" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" xmlns:th="http://www.thymeleaf.org">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<th:block th:include="include :: header('振动传感器实时监控')"/>
|
|
|
|
<th:block th:include="include :: header('振动传感器实时监控')"/>
|
|
|
|
<th:block th:include="include :: layout-latest-css"/>
|
|
|
|
<th:block th:include="include :: layout-latest-css"/>
|
|
|
|
<th:block th:include="include :: ztree-css"/>
|
|
|
|
<th:block th:include="include :: ztree-css"/>
|
|
|
|
<th:block th:include="include :: datetimepicker-css"/>
|
|
|
|
<th:block th:include="include :: datetimepicker-css"/>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.chartDiv {
|
|
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
|
|
height: 22vw;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .chart {
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: calc(100% - 50px);
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
bottom: 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .title {
|
|
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .time {
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
color:#0003;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .mileage {
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 70%;
|
|
|
|
|
|
|
|
left: 29%;
|
|
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .text {
|
|
|
|
|
|
|
|
font-size: 1.25vw;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 80%;
|
|
|
|
|
|
|
|
left: 29%;
|
|
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.chartDiv .mileage .num {
|
|
|
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
|
|
|
margin: 0 0.1vw;
|
|
|
|
|
|
|
|
padding: 0.05vw 0.1vw;
|
|
|
|
|
|
|
|
background-color: #0001;
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<body class="gray-bg">
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ui-layout-west">
|
|
|
|
<div class="ui-layout-west">
|
|
|
@ -15,18 +66,18 @@
|
|
|
|
<i class="fa icon-grid"></i> 测控点信息
|
|
|
|
<i class="fa icon-grid"></i> 测控点信息
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
<a type="button" class="btn btn-box-tool" href="#" onclick="dept()" title="测控点信息"><i
|
|
|
|
<a class="btn btn-box-tool" href="#" onclick="dept()" title="测控点信息" type="button"><i
|
|
|
|
class="fa fa-edit"></i></a>
|
|
|
|
class="fa fa-edit"></i></a>
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i
|
|
|
|
<button class="btn btn-box-tool" id="btnExpand" style="display:none;" title="展开" type="button"><i
|
|
|
|
class="fa fa-chevron-up"></i></button>
|
|
|
|
class="fa fa-chevron-up"></i></button>
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i
|
|
|
|
<button class="btn btn-box-tool" id="btnCollapse" title="折叠" type="button"><i
|
|
|
|
class="fa fa-chevron-down"></i></button>
|
|
|
|
class="fa fa-chevron-down"></i></button>
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新"><i class="fa fa-refresh"></i>
|
|
|
|
<button class="btn btn-box-tool" id="btnRefresh" title="刷新" type="button"><i class="fa fa-refresh"></i>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ui-layout-content">
|
|
|
|
<div class="ui-layout-content">
|
|
|
|
<div id="tree" class="ztree"></div>
|
|
|
|
<div class="ztree" id="tree"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -35,52 +86,25 @@
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<form id="formId">
|
|
|
|
|
|
|
|
<input type="hidden" id="sensorId" name="sensorId">
|
|
|
|
<div class="chartDiv">
|
|
|
|
<div class="select-list">
|
|
|
|
<div class="title">1</div>
|
|
|
|
<ul>
|
|
|
|
<div class="time">2024-01-01 00:00:00</div>
|
|
|
|
<li class="select-time">
|
|
|
|
<div class="chart" id="chart">
|
|
|
|
<label>采集时间:</label>
|
|
|
|
|
|
|
|
<input type="text" style="width: 150px" class="form-control" id="laydate-demo-3" placeholder="开始时间" name="params[beginCollectTime]"/>
|
|
|
|
|
|
|
|
<span>-</span>
|
|
|
|
|
|
|
|
<input type="text" style="width: 150px" class="form-control" id="laydate-demo-4" placeholder="结束时间" name="params[endCollectTime]"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- <li>-->
|
|
|
|
|
|
|
|
<!-- <label>振动传感器ID:</label>-->
|
|
|
|
|
|
|
|
<!-- <input type="text" name="sensorId"/>-->
|
|
|
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
|
|
|
<!-- <li class="select-time">-->
|
|
|
|
|
|
|
|
<!-- <label>记录时间:</label>-->
|
|
|
|
|
|
|
|
<!-- <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginRecodeTime]"/>-->
|
|
|
|
|
|
|
|
<!-- <span>-</span>-->
|
|
|
|
|
|
|
|
<!-- <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endRecodeTime]"/>-->
|
|
|
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
|
|
|
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="mileage">
|
|
|
|
|
|
|
|
<div class="num">1</div>
|
|
|
|
|
|
|
|
<div class="num">2</div>
|
|
|
|
|
|
|
|
<div class="num">1</div>
|
|
|
|
|
|
|
|
<div class="num">2</div>
|
|
|
|
|
|
|
|
<div class="num">1</div>
|
|
|
|
|
|
|
|
<div class="num">2</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text">位移(um)</div>
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
|
|
|
|
|
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:TVibrationsensorData:add">-->
|
|
|
|
|
|
|
|
<!-- <i class="fa fa-plus"></i> 添加-->
|
|
|
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
|
|
|
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:TVibrationsensorData:edit">-->
|
|
|
|
|
|
|
|
<!-- <i class="fa fa-edit"></i> 修改-->
|
|
|
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
|
|
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:TVibrationsensorData:remove">-->
|
|
|
|
|
|
|
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
|
|
|
|
|
|
|
<!-- </a>-->
|
|
|
|
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:TVibrationsensorData:export">
|
|
|
|
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
|
|
|
<table id="bootstrap-table"></table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -88,6 +112,7 @@
|
|
|
|
<th:block th:include="include :: layout-latest-js"/>
|
|
|
|
<th:block th:include="include :: layout-latest-js"/>
|
|
|
|
<th:block th:include="include :: ztree-js"/>
|
|
|
|
<th:block th:include="include :: ztree-js"/>
|
|
|
|
<th:block th:include="include :: datetimepicker-js"/>
|
|
|
|
<th:block th:include="include :: datetimepicker-js"/>
|
|
|
|
|
|
|
|
<script src="../../../js/common/echarts.min.js"></script>
|
|
|
|
<script th:inline="javascript">
|
|
|
|
<script th:inline="javascript">
|
|
|
|
var editFlag = [[${@permission.hasPermi('system:TVibrationsensorData:edit')}]];
|
|
|
|
var editFlag = [[${@permission.hasPermi('system:TVibrationsensorData:edit')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('system:TVibrationsensorData:remove')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('system:TVibrationsensorData:remove')}]];
|
|
|
@ -99,73 +124,9 @@
|
|
|
|
panehHidden = true;
|
|
|
|
panehHidden = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$('body').layout({initClosed: panehHidden, west__size: 245});
|
|
|
|
$('body').layout({initClosed: panehHidden, west__size: 245});
|
|
|
|
queryUserList();
|
|
|
|
|
|
|
|
queryDeptTree();
|
|
|
|
queryDeptTree();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function queryUserList() {
|
|
|
|
|
|
|
|
var options = {
|
|
|
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
|
|
|
createUrl: prefix + "/add",
|
|
|
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
|
|
|
removeUrl: prefix + "/remove",
|
|
|
|
|
|
|
|
exportUrl: prefix + "/export",
|
|
|
|
|
|
|
|
modalName: "振动传感器数据",
|
|
|
|
|
|
|
|
columns: [{
|
|
|
|
|
|
|
|
checkbox: true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'objId',
|
|
|
|
|
|
|
|
title: '主键标识',
|
|
|
|
|
|
|
|
visible: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'sensorId',
|
|
|
|
|
|
|
|
title: '振动传感器ID'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'speed',
|
|
|
|
|
|
|
|
title: '速度(mm/s)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'displacement',
|
|
|
|
|
|
|
|
title: '位移(um)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'acceleration',
|
|
|
|
|
|
|
|
title: '加速度(g)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'temperature',
|
|
|
|
|
|
|
|
title: '温度(℃)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'collectTime',
|
|
|
|
|
|
|
|
title: '采集时间'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'recodeTime',
|
|
|
|
|
|
|
|
title: '记录时间'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
field: 'remark',
|
|
|
|
|
|
|
|
title: '备注',
|
|
|
|
|
|
|
|
visible: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// title: '操作',
|
|
|
|
|
|
|
|
// align: 'center',
|
|
|
|
|
|
|
|
// formatter: function(value, row, index) {
|
|
|
|
|
|
|
|
// var actions = [];
|
|
|
|
|
|
|
|
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
|
|
|
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
|
|
|
// return actions.join('');
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$.table.init(options);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function queryDeptTree() {
|
|
|
|
function queryDeptTree() {
|
|
|
|
var url = ctx + "system/Monitor/treeData?monitorType=" + 20;
|
|
|
|
var url = ctx + "system/Monitor/treeData?monitorType=" + 20;
|
|
|
@ -177,49 +138,65 @@
|
|
|
|
$.tree.init(options);
|
|
|
|
$.tree.init(options);
|
|
|
|
|
|
|
|
|
|
|
|
function zOnClick(event, treeId, treeNode) {
|
|
|
|
function zOnClick(event, treeId, treeNode) {
|
|
|
|
$("#sensorId").val(treeNode.id);
|
|
|
|
console.log(treeNode)
|
|
|
|
/*alert(treeNode.id)*/
|
|
|
|
|
|
|
|
$.table.search();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnExpand').click(function () {
|
|
|
|
let chart = echarts.init(document.getElementById('chart'))
|
|
|
|
$._tree.expandAll(true);
|
|
|
|
console.log(chart)
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
$('#btnCollapse').show();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnCollapse').click(function () {
|
|
|
|
|
|
|
|
$._tree.expandAll(false);
|
|
|
|
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
$('#btnExpand').show();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnRefresh').click(function () {
|
|
|
|
let option = {
|
|
|
|
queryDeptTree();
|
|
|
|
series: [
|
|
|
|
});
|
|
|
|
{
|
|
|
|
|
|
|
|
name: 'Pressure',
|
|
|
|
/* 测控点信息 */
|
|
|
|
type: 'gauge',
|
|
|
|
function dept() {
|
|
|
|
detail: {
|
|
|
|
var url = ctx + "system/Monitor?id=20";
|
|
|
|
formatter: '{value}',
|
|
|
|
$.modal.openTab("测控点信息", url);
|
|
|
|
offsetCenter: [0, '20%'],
|
|
|
|
|
|
|
|
// offsetCenter: [0, '-40%'] ,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
center: ['25%', '50%'],
|
|
|
|
|
|
|
|
radius: '90%',
|
|
|
|
|
|
|
|
data: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
value: 21,
|
|
|
|
|
|
|
|
name: '速度(mm/s)',
|
|
|
|
|
|
|
|
title: {
|
|
|
|
|
|
|
|
offsetCenter: [0, '-20%'],
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: 'Pressure',
|
|
|
|
|
|
|
|
type: 'gauge',
|
|
|
|
|
|
|
|
detail: {
|
|
|
|
|
|
|
|
fontSize: 20,
|
|
|
|
|
|
|
|
formatter: '{value}'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
center: ['60%', '70%'],
|
|
|
|
|
|
|
|
radius: '65%',
|
|
|
|
|
|
|
|
axisTick: {
|
|
|
|
|
|
|
|
|
|
|
|
layui.use('laydate', function () {
|
|
|
|
distance: 4
|
|
|
|
var laydate = layui.laydate;
|
|
|
|
},
|
|
|
|
|
|
|
|
pointer: {
|
|
|
|
laydate.render({
|
|
|
|
length: '50%',
|
|
|
|
elem: '#laydate-demo-3',
|
|
|
|
width: 4
|
|
|
|
type: 'datetime',
|
|
|
|
},
|
|
|
|
trigger: 'click'
|
|
|
|
data: [
|
|
|
|
});
|
|
|
|
{
|
|
|
|
|
|
|
|
value: 32,
|
|
|
|
laydate.render({
|
|
|
|
name: '温度(℃)',
|
|
|
|
elem: '#laydate-demo-4',
|
|
|
|
detail: {
|
|
|
|
type: 'datetime',
|
|
|
|
fontSize: 12,
|
|
|
|
trigger: 'click'
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
chart.setOption(option)
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|