|
|
|
@ -296,16 +296,11 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const onClickRow = function (row, $element) {
|
|
|
|
|
initTable(row.sensorId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 根据选中行查询关联文件
|
|
|
|
|
function initTable(id) {
|
|
|
|
|
//先销毁表格,必须先销毁才能实现动态加载数据
|
|
|
|
|
$('#bootstrap-table1').bootstrapTable('destroy');
|
|
|
|
|
$('#bootstrap-table1').bootstrapTable({
|
|
|
|
|
method: "post", //向服务器请求数据的方式
|
|
|
|
|
url: "/base/alarmInfo/getAlarmParams?sensorId=" + id,
|
|
|
|
|
method: "get", //向服务器请求数据的方式
|
|
|
|
|
url: "/base/alarmInfo/getAlarmParams?sensorId="+row.sensorId,
|
|
|
|
|
deleteUrl: "/base/alarmInfo/delete",
|
|
|
|
|
striped: true, //表格显示条纹
|
|
|
|
|
pagination: false, //不启动分页
|
|
|
|
@ -374,6 +369,8 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<!-- 导入区域 -->
|
|
|
|
|