修改显示

master
夜笙歌 9 months ago
parent e16bb50217
commit 6aa5bf16a1

@ -16,6 +16,7 @@ $(() => {
}) })
let request = () =>{
$.get(ctx + 'broad/home/queryParam', {name}, (e) => { $.get(ctx + 'broad/home/queryParam', {name}, (e) => {
let enumArr = { let enumArr = {
@ -41,7 +42,7 @@ $(() => {
}) })
arr.forEach(val => { arr.forEach(val => {
let html = ` let html = `
<div class="centerInfo" style="top: ${val.top};left:${val.left}"> <div class="centerInfo" style="top: ${val.top};left:${val.left};z-index:2000">
<div class="win" style="display: none"> <div class="win" style="display: none">
<div class="title">${val.name}</div> <div class="title">${val.name}</div>
<div class="span1">${val.data1}: ${val.num1 || 0}${val.unit1}</div> <div class="span1">${val.data1}: ${val.num1 || 0}${val.unit1}</div>
@ -88,6 +89,12 @@ $(() => {
$("#statusD").html(html) $("#statusD").html(html)
}) })
}
request()
setInterval(() => {
request()
}, 1000 * 60)
}) })
let chart = null let chart = null

@ -209,8 +209,8 @@
<div class="bg2"> <div class="bg2">
</div> </div>
</div> </div>
</div> </div>
<div id="centerInfoDiv" class="centerInfoDiv" > <div id="centerInfoDiv" class="centerInfoDiv" >
</div> </div>

Loading…
Cancel
Save