| | |
| | | <!-- 总算力 --> |
| | | <div class="card"> |
| | | <div class="hashrate"> |
| | | <img src="/images/hashrate/总算力.png" alt="" /> |
| | | <img src="/images/hashrate/total.png" alt="" /> |
| | | <div class="hashrateContent"> |
| | | <div class="label">总算力</div> |
| | | <div class="data"> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 实时算力 --> |
| | | <HashCard :type="0" :hashrate="realTime"></HashCard> |
| | | <HashCard :type="0" :hashrate="polling"></HashCard> |
| | | </div> |
| | | |
| | | <div class="medium"> |
| | | <!-- 轮询算力 --> |
| | | <HashCard class="topCard" :type="1" :hashrate="polling"></HashCard> |
| | | <HashCard class="topCard" :type="1" :hashrate="realTime"></HashCard> |
| | | <!-- 数据栈算力 --> |
| | | <HashCard :type="2" :hashrate="stack"></HashCard> |
| | | </div> |
| | |
| | | :list="deviceList" |
| | | @chooseCluster="chooseCluster" |
| | | @chooseDevice="chooseDevice" |
| | | @refreshCluster="chooseCluster(ClusterId)" |
| | | @back="back" |
| | | :listType="listType" |
| | | ></ClusterList> |
| | |
| | | import ClusterList from "./components/ClusterList"; |
| | | import { |
| | | userStatisticRunInfo, |
| | | userSysInfo, |
| | | userStatisticRun, |
| | | clusterStatisticRunInfo, |
| | | clusterSysInfo, |
| | |
| | | ClusterList, |
| | | }, |
| | | created() { |
| | | sessionStorage.removeItem("devId"); |
| | | sessionStorage.removeItem("clusterId"); |
| | | this.getUserInfo(); |
| | | this.getUserDevice(); |
| | | }, |
| | |
| | | }, |
| | | deviceList: [], |
| | | listType: "cluster", |
| | | ClusterId: "", |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | res1.data.stackRunningCount, |
| | | }; |
| | | } |
| | | const res2 = await userSysInfo(); |
| | | const res2 = await clusterSysInfo({ |
| | | clusterId: "", |
| | | }); |
| | | if (res2 && res2.success) { |
| | | this.systemInfo = { |
| | | cpu: parseInt(res2.data.cpu.usedPercent), |
| | |
| | | res1.data.stackRunningCount, |
| | | }; |
| | | } |
| | | const res2 = await clusterSysInfo({ clusterId: id }); |
| | | const res2 = await clusterSysInfo( |
| | | //id |
| | | { clusterId: "" } |
| | | ); |
| | | if (res2 && res2.success) { |
| | | this.systemInfo = { |
| | | cpu: parseInt(res2.data.cpu.usedPercent), |
| | |
| | | chooseCluster(id) { |
| | | this.getClusterInfo(id); |
| | | this.getClusterDevice(id); |
| | | this.ClusterId = id; |
| | | }, |
| | | back() { |
| | | this.getUserInfo(); |