| | |
| | | methods: { |
| | | //获取算法信息 |
| | | async getAlg() { |
| | | const res = await findAllSdk({ |
| | | ip: this.node.devIp, |
| | | port: this.node.serverPort, |
| | | }); |
| | | const res = await findAllSdk({ userId: "", nodeId: this.node.devId }); |
| | | |
| | | res.data.data.forEach((item) => { |
| | | res.data.forEach((item) => { |
| | | //计算算法总数 |
| | | if (item.installed) { |
| | | this.algAll++; |
| | |
| | | //获取设备性能 |
| | | async getDevicePerformance() { |
| | | const res = await showSystemStates({ |
| | | ip: this.node.devIp, |
| | | port: this.node.serverPort, |
| | | userId: "", |
| | | nodeId: this.node.devId, |
| | | }); |
| | | this.devicePerformance.push({ |
| | | data: +res.data.mem.usedPercent.toString().split(".")[0], |
| | |
| | | path: `/${type}`, |
| | | query: { |
| | | id: this.node.devId, |
| | | ip: this.node.devIp, |
| | | port: this.node.serverPort, |
| | | ndid: this.node.id, |
| | | }, |
| | | }); |
| | | }, |