add test
This commit is contained in:
parent
e355631026
commit
9528d55ba4
|
|
@ -141,6 +141,7 @@ function GetSytem(){
|
|||
sysparams.current_time = current_time
|
||||
let data_array = reactive([])
|
||||
sysparams.start_time = start_time
|
||||
//渲染disk磁盘信息
|
||||
data.disk_info.map((par, index) => {
|
||||
let params = {
|
||||
key: String(index),
|
||||
|
|
@ -158,39 +159,6 @@ function GetSytem(){
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
const QueryCpu = () => {
|
||||
Cpu().then((rep) => {
|
||||
let {cpu_percent} = rep.data
|
||||
option.series.forEach((data) => {
|
||||
data.data.forEach((key) => {
|
||||
key.value = cpu_percent
|
||||
})
|
||||
})
|
||||
console.log(rep.data)
|
||||
|
||||
})
|
||||
}
|
||||
// const QueryDisk = () => {
|
||||
// disk().then((resp) => {
|
||||
// resp.data.map((par, index) => {
|
||||
// let params = {
|
||||
// key: String(index),
|
||||
// device: par.device,
|
||||
// total: par.total,
|
||||
// used: par.used,
|
||||
// free: par.free,
|
||||
//
|
||||
// }
|
||||
// if (index < 5) {
|
||||
// data.push(params)
|
||||
// }
|
||||
//
|
||||
//
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue