|
|
@ -2,18 +2,39 @@
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
<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 :: ztree-css"/>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body class="gray-bg">
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
|
|
|
<div class="ui-layout-west">
|
|
|
|
|
|
|
|
<div class="box box-main">
|
|
|
|
|
|
|
|
<div class="box-header">
|
|
|
|
|
|
|
|
<div class="box-title">
|
|
|
|
|
|
|
|
<i class="fa icon-grid"></i> 传感器
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-tools pull-right">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i
|
|
|
|
|
|
|
|
class="fa fa-chevron-up"></i></button>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui-layout-content">
|
|
|
|
|
|
|
|
<div id="tree" class="ztree"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ui-layout-center">
|
|
|
|
<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">
|
|
|
|
<form id="formId">
|
|
|
|
<div class="select-list">
|
|
|
|
<div class="select-list">
|
|
|
|
|
|
|
|
<input id="sensorId" type="hidden" name="sensorId"/>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
|
|
|
|
<label>传感器:</label>
|
|
|
|
|
|
|
|
<input type="text" name="sensorId"/>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label>报警类型:</label>
|
|
|
|
<label>报警类型:</label>
|
|
|
|
<input type="text" name="alarmtypeId"/>
|
|
|
|
<input type="text" name="alarmtypeId"/>
|
|
|
@ -53,13 +74,34 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
|
|
|
<th:block th:include="include :: layout-latest-js"/>
|
|
|
|
|
|
|
|
<th:block th:include="include :: ztree-js"/>
|
|
|
|
<script th:inline="javascript">
|
|
|
|
<script th:inline="javascript">
|
|
|
|
var editFlag = [[${@permission.hasPermi('record:recordAlarm:edit')}]];
|
|
|
|
var editFlag = [[${@permission.hasPermi('record:recordAlarm:edit')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('record:recordAlarm:remove')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('record:recordAlarm:remove')}]];
|
|
|
|
var prefix = ctx + "record/recordAlarm";
|
|
|
|
var prefix = ctx + "record/recordAlarm";
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
var panehHidden = false;
|
|
|
|
|
|
|
|
if ($(this).width() < 769) {
|
|
|
|
|
|
|
|
panehHidden = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$('body').layout({initClosed: panehHidden, west__size: 185});
|
|
|
|
|
|
|
|
// 回到顶部绑定
|
|
|
|
|
|
|
|
if ($.fn.toTop !== undefined) {
|
|
|
|
|
|
|
|
var opt = {
|
|
|
|
|
|
|
|
win: $('.ui-layout-center'),
|
|
|
|
|
|
|
|
doc: $('.ui-layout-center')
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$('#scroll-up').toTop(opt);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
queryRecordAlarm();
|
|
|
|
|
|
|
|
querySensorInfoTree();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function queryRecordAlarm() {
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
url: prefix + "/list",
|
|
|
|
url: prefix + "/list",
|
|
|
|
createUrl: prefix + "/add",
|
|
|
|
createUrl: prefix + "/add",
|
|
|
@ -97,24 +139,45 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'collectTime',
|
|
|
|
field: 'collectTime',
|
|
|
|
title: '采集时间'
|
|
|
|
title: '采集时间'
|
|
|
|
},
|
|
|
|
}]
|
|
|
|
/*{
|
|
|
|
|
|
|
|
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.sensorId + '\')"><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.sensorId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
|
|
|
return actions.join('');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}*/]
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$.table.init(options);
|
|
|
|
$.table.init(options);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function querySensorInfoTree() {
|
|
|
|
|
|
|
|
let url = ctx + "base/sensorInfo/getSensorInfoTree";
|
|
|
|
|
|
|
|
let options = {
|
|
|
|
|
|
|
|
url: url,
|
|
|
|
|
|
|
|
expandLevel: 1,
|
|
|
|
|
|
|
|
onClick: zOnClick
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$.tree.init(options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function zOnClick(event, treeId, treeNode) {
|
|
|
|
|
|
|
|
$("#sensorId").val(treeNode.id);
|
|
|
|
|
|
|
|
$.table.search();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnExpand').click(function () {
|
|
|
|
|
|
|
|
$._tree.expandAll(true);
|
|
|
|
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
$('#btnCollapse').show();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnCollapse').click(function () {
|
|
|
|
|
|
|
|
$._tree.expandAll(false);
|
|
|
|
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
$('#btnExpand').show();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#btnRefresh').click(function () {
|
|
|
|
|
|
|
|
querySensorInfoTree();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function selectColumns() {
|
|
|
|
function selectColumns() {
|
|
|
|
var column = $.table.selectColumns('alarmuid');
|
|
|
|
var column = $.table.selectColumns('alarmuid');
|
|
|
|
alert(column);
|
|
|
|
alert(column.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|