You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.3 KiB
103 lines
3.3 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>设备信息总览</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<link rel="stylesheet" href="/css/font.css">
|
|
<link rel="stylesheet" href="/css/xadmin.css">
|
|
<script src="/lib/layui/layui.js" charset="utf-8"></script>
|
|
<script type="text/javascript" src="/js/xadmin.js"></script>
|
|
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
|
<!--[if lt IE 9]>
|
|
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
<![endif]-->
|
|
<style>
|
|
.layui-table thead span {
|
|
/*background-color: #acd3ed;*/
|
|
font-size: 15px;
|
|
}
|
|
|
|
.layui-table tbody tr td div {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.layui-table tbody tr:hover {
|
|
background-color: #f7e8df;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body class="layui-anim layui-anim-scale flag"><br/>
|
|
|
|
<div class="layui-card-body">
|
|
<table id="demoInformation" lay-filter="demoInformation"></table>
|
|
</div>
|
|
<input type="hidden" name="deviceId" id="deviceId" value="{$deviceId}">
|
|
<script>
|
|
layui.use(['table', 'jquery'], function () {
|
|
var table = layui.table;
|
|
var $ = layui.jquery;
|
|
|
|
let deviceId = $("#deviceId").val();
|
|
//生成数据表格
|
|
var tableIns = table.render({
|
|
elem: '#demoInformation'
|
|
, url: '/index/Device/receivingInformationList?deviceId=' + deviceId//数据接口
|
|
, loading: true
|
|
, size: 'lg'
|
|
, page: {
|
|
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
|
|
, groups: 10 //最多几个跳页按钮
|
|
, first: false //不显示首页
|
|
, last: false //不显示尾页
|
|
}
|
|
, cols: [
|
|
[
|
|
{
|
|
field: 'taskId',
|
|
title: '任务id',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
, {
|
|
field: 'productId',
|
|
title: '产品id',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
, {
|
|
field: 'deviceId',
|
|
title: '设备id',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
, {
|
|
field: 'tenantId',
|
|
title: '租户id',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
, {
|
|
field: 'protocol',
|
|
title: '协议',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
, {
|
|
field: 'timestamp',
|
|
title: '接收时间',
|
|
minWidth: 100,
|
|
align: 'center'
|
|
}
|
|
]
|
|
]
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|