设备无数据显示--

master
wj 2 years ago
parent b33754ffd2
commit 48112b9a09
  1. 8
      psdc-ui/src/views/emonitor/db/index.vue
  2. 14
      psdc-ui/src/views/emonitor/drgl/index.vue
  3. 12
      psdc-ui/src/views/emonitor/frdl/index.vue
  4. 14
      psdc-ui/src/views/emonitor/kqyrb/index.vue
  5. 5
      psdc-ui/src/views/emonitor/wdcgq/index.vue
  6. 14
      psdc-ui/src/views/emonitor/xrgl/index.vue

@ -63,10 +63,10 @@ export default {
name: "db", name: "db",
setup() { setup() {
let data = reactive({ let data = reactive({
totp:'', totp:'-- ',
totwh:'', totwh:'-- ',
eday:'', eday:'-- ',
emonth:'', emonth:'-- ',
glData:[], glData:[],
glXz:[ glXz:[
"00:00", "00:00",

@ -26,11 +26,11 @@
<div><img src="../../../assets/images/温度.png"></div> <div><img src="../../../assets/images/温度.png"></div>
<div> <div>
<div style="display: flex; margin-bottom: 5px"> <div style="display: flex; margin-bottom: 5px">
<p style="color: #cccccc">进水温度:</p> <p style="color: #cccccc">进水温度</p>
<h1>{{data.tempIn}}</h1> <h1>{{data.tempIn}}</h1>
</div> </div>
<div style="display: flex"> <div style="display: flex">
<p style="color: #cccccc">出水温度:</p> <p style="color: #cccccc">出水温度</p>
<h1>{{data.tempOut}}</h1> <h1>{{data.tempOut}}</h1>
</div> </div>
</div> </div>
@ -81,12 +81,12 @@ export default {
name: "drgl", name: "drgl",
setup() { setup() {
let data = reactive({ let data = reactive({
totwh:'', totwh:'-- ',
totp:'', totp:'-- ',
tempIn:'', tempIn:'-- ',
tempOut:'', tempOut:'-- ',
//1 2 //1 2
runStatus:'', runStatus:'-- ',
glData:[], glData:[],
glXz:[ glXz:[
"00:00", "00:00",

@ -70,13 +70,13 @@ export default {
name: "frdl", name: "frdl",
setup() { setup() {
let data = reactive({ let data = reactive({
totwh:'', totwh:'-- ',
totp:'', totp:'-- ',
temp:'', temp:'-- ',
tempIn:'', tempIn:'-- ',
tempOut:'', tempOut:'-- ',
//1 2 //1 2
runStatus:'', runStatus:'-- ',
glData:[], glData:[],
glXz:[ glXz:[
"00:00", "00:00",

@ -19,11 +19,11 @@
<div><img src="../../../assets/images/温度.png"></div> <div><img src="../../../assets/images/温度.png"></div>
<div> <div>
<div style="display: flex; margin-bottom: 5px"> <div style="display: flex; margin-bottom: 5px">
<p style="color: #cccccc">进水温度:</p> <p style="color: #cccccc">进水温度</p>
<h1>{{data.tempIn}}</h1> <h1>{{data.tempIn}}</h1>
</div> </div>
<div style="display: flex"> <div style="display: flex">
<p style="color: #cccccc">出水温度:</p> <p style="color: #cccccc">出水温度</p>
<h1>{{data.tempOut}}</h1> <h1>{{data.tempOut}}</h1>
</div> </div>
</div> </div>
@ -74,12 +74,12 @@ export default {
name: "kqyrb", name: "kqyrb",
setup() { setup() {
let data = reactive({ let data = reactive({
totwh:'', totwh:'-- ',
totp:'', totp:'-- ',
tempIn:'', tempIn:'-- ',
tempOut:'', tempOut:'-- ',
//1 2 //1 2
runStatus:'', runStatus:'-- ',
glData:[], glData:[],
glXz:[ glXz:[
"00:00", "00:00",

@ -59,6 +59,9 @@ export default {
let brr = [] let brr = []
let crr = [] let crr = []
for (let i in res.data) { for (let i in res.data) {
if(res.data[i].deviceTemp == null){
res.data[i].deviceTemp = '-- '
}
arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp}) arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp})
brr.push({ brr.push({
name: res.data[i].deviceName, name: res.data[i].deviceName,
@ -70,7 +73,7 @@ export default {
}) })
crr.push(res.data[i].times) crr.push(res.data[i].times)
} }
console.log(crr) // console.log('arr',arr)
data.info = arr data.info = arr
data.infos = brr data.infos = brr
data.xinfo = crr data.xinfo = crr

@ -19,11 +19,11 @@
<div><img src="../../../assets/images/温度.png"></div> <div><img src="../../../assets/images/温度.png"></div>
<div> <div>
<div style="display: flex; margin-bottom: 5px"> <div style="display: flex; margin-bottom: 5px">
<p style="color: #cccccc">进水温度:</p> <p style="color: #cccccc">进水温度</p>
<h1>{{data.tempIn}}</h1> <h1>{{data.tempIn}}</h1>
</div> </div>
<div style="display: flex"> <div style="display: flex">
<p style="color: #cccccc">出水温度:</p> <p style="color: #cccccc">出水温度</p>
<h1>{{data.tempOut}}</h1> <h1>{{data.tempOut}}</h1>
</div> </div>
</div> </div>
@ -74,12 +74,12 @@ export default {
name: "xrgl", name: "xrgl",
setup() { setup() {
let data = reactive({ let data = reactive({
totwh:'', totwh:'-- ',
totp:'', totp:'-- ',
tempIn:'', tempIn:'-- ',
tempOut:'', tempOut:'-- ',
//1 2 //1 2
runStatus:'', runStatus:'-- ',
glData:[], glData:[],
glXz:[ glXz:[
"00:00", "00:00",

Loading…
Cancel
Save