|
|
@ -52,9 +52,9 @@
|
|
|
|
var removeFlag = [[${@permission.hasPermi('system:ArrayTemperatureData:remove')}]];
|
|
|
|
var removeFlag = [[${@permission.hasPermi('system:ArrayTemperatureData:remove')}]];
|
|
|
|
var prefix = ctx + "system/ArrayTemperatureData";
|
|
|
|
var prefix = ctx + "system/ArrayTemperatureData";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
var monitorId = null;
|
|
|
|
$(() => {
|
|
|
|
$(() => {
|
|
|
|
var panehHidden = false;
|
|
|
|
var panehHidden = false;
|
|
|
|
if ($(this).width() < 769) {
|
|
|
|
if ($(this).width() < 769) {
|
|
|
@ -117,9 +117,9 @@
|
|
|
|
// 返回格式化的CSS颜色字符串
|
|
|
|
// 返回格式化的CSS颜色字符串
|
|
|
|
return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
|
|
|
|
return `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const getData = () => {
|
|
|
|
const getData = () => {
|
|
|
|
$.post(prefix + '/newDataStreak', (e) => {
|
|
|
|
console.log(222,monitorId)
|
|
|
|
|
|
|
|
$.post(prefix + '/newDataStreak', {monitorId}, (e) => {
|
|
|
|
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
|
|
|
|
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
|
|
|
|
$('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}</span> `)
|
|
|
|
$('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}</span> `)
|
|
|
|
let colors = []
|
|
|
|
let colors = []
|
|
|
@ -203,9 +203,8 @@
|
|
|
|
$.tree.init(options);
|
|
|
|
$.tree.init(options);
|
|
|
|
|
|
|
|
|
|
|
|
function zOnClick(event, treeId, treeNode) {
|
|
|
|
function zOnClick(event, treeId, treeNode) {
|
|
|
|
$("#sensorId").val(treeNode.id);
|
|
|
|
monitorId = treeNode.id;
|
|
|
|
/*alert(treeNode.id)*/
|
|
|
|
console.log(111,monitorId)
|
|
|
|
$.table.search();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|