| | |
| | | // 计算系统信息 |
| | | let res: any |
| | | if(sessionStorage.getItem("clusterId")) { |
| | | res = await clusterSysInfo({}); |
| | | res = await clusterSysInfo({ |
| | | clusterId: "", |
| | | }); |
| | | } |
| | | else { |
| | | res = await devicesSysInfo({}); |
| | | res = await devicesSysInfo({ |
| | | deviceId:[sessionStorage.getItem('devId')], |
| | | }); |
| | | } |
| | | if (res && res.success ) { |
| | | this.CpuUsedPercent =res.data.cpu.usedPercent.toFixed(2) |
| | |
| | | res = await clusterStatisticRunInfo({}); |
| | | } |
| | | else { |
| | | res = await deviceStatisticRunInfo({}); |
| | | res = await deviceStatisticRunInfo({ |
| | | deviceId:[sessionStorage.getItem('devId')], |
| | | userId:'' |
| | | }); |
| | | } |
| | | |
| | | if (res && res.success) { |