|
|
@ -37,8 +37,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
import {baseMonitorInfoList, boardTWTempertureDataList, monitorInfoTree} from "@/api/board/index1";
|
|
|
|
import {monitorInfoTree} from "@/api/board/index1";
|
|
|
|
import {handleTree} from "@/utils/ruoyi";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -51,17 +50,15 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.getData()
|
|
|
|
this.getData()
|
|
|
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
|
|
|
this.getData()
|
|
|
|
|
|
|
|
}, 1000 * 60 * 5)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getData() {
|
|
|
|
getData() {
|
|
|
|
monitorInfoTree({monitorType: 1}).then(e => {
|
|
|
|
monitorInfoTree({monitorType: 1}).then(e => {
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
this.list = e.data
|
|
|
|
this.list = e.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
baseMonitorInfoList({monitorType: 1}).then(e => {
|
|
|
|
|
|
|
|
// console.log(handleTree(e.data, 'objId'))
|
|
|
|
|
|
|
|
this.list = handleTree(e.data, 'objId')
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getInfo(e) {
|
|
|
|
getInfo(e) {
|
|
|
|
this.title = e.label
|
|
|
|
this.title = e.label
|
|
|
|