修改看板

IOT
夜笙歌 1 month ago
parent d6bf8217c1
commit 6afee7051f

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

Loading…
Cancel
Save