diff --git a/src/views/resource/serverRegister/details.vue b/src/views/resource/serverRegister/details.vue index 80e4bda..b78d21a 100644 --- a/src/views/resource/serverRegister/details.vue +++ b/src/views/resource/serverRegister/details.vue @@ -129,7 +129,7 @@ {name: '带宽', num: 0, unit: 'Mbps', imgUrl: bandWImg}, {name: 'CPU', num: 0, unit: '核', imgUrl: cpuImg}, {name: '内存', num: 0, unit: 'G', imgUrl: memoryImg}, - {name: '磁盘容量(HDD)', num: 0, unit: 'GB', imgUrl: diskSizeImg}, + {name: '磁盘容量', num: 0, imgUrl: diskSizeImg}, ], activeName: '网卡流量监控', echartList: {}, @@ -466,7 +466,7 @@ '网卡信息': {title: '网卡信息', toTitle: '网卡', clientId: this.paramsData.clientId, echartList: []}, 'CPU使用率': {title: 'CPU使用率(%)', titleTo: 'CPU使用率(%)', clientId: this.paramsData.clientId}, '内存使用率': {title: '内存使用率(%)', titleTo: '内存使用率(%)', clientId: this.paramsData.clientId}, - 'HDD磁盘空间': {title: 'HDD磁盘空间', titleTo: 'HDD磁盘空间使用情况', clientId: this.paramsData.clientId}, + '磁盘空间': {title: '磁盘空间', titleTo: '磁盘空间使用情况', clientId: this.paramsData.clientId}, 'CPU温度': {title: 'CPU温度', titleTo: 'CPU温度(℃)', clientId: this.paramsData.clientId}, }); // this.getMonitorData(); @@ -575,7 +575,7 @@ await this.getCpuLoadData(time, keyVal, keyName) } else if (keyName === '内存使用率') { await this.getMemoryUtilizationData(time, keyVal, keyName) - } else if (keyName === 'HDD磁盘空间') { + } else if (keyName === '磁盘空间') { await this.fnUsedSpaceCharts(time, keyVal, keyName); } else if (keyName === 'CPU温度') { this.fnCpuTemperatureCharts(time, keyVal, keyName); @@ -866,7 +866,7 @@ return true; }); }, - // HDD磁盘空间使用情况 + // 磁盘空间使用情况 fnUsedSpaceCharts(times, keyVal, titleName,interCardName, unitData) { let chartData = JSON.parse(JSON.stringify(this.resultData[1])); chartData['fnEvent'] = 'fnUsedSpaceCharts'; @@ -874,7 +874,7 @@ if (res && res.data) { if (res.data.unit) { chartData.dataVal['unitModel'] = res.data.unit || ''; - chartData.dataVal['unitSelList'] = [{label: 'Kb', value: 'Kb'},{label: 'Mb', value: 'Mb'}, {label: 'Gb', value: 'Gb'}]; + chartData.dataVal['unitSelList'] = [{label: 'KB', value: 'KB'},{label: 'MB', value: 'MB'}, {label: 'GB', value: 'GB'}]; } chartData.dataVal.lineXData = res && res.data && res.data['xData'] && res.data['xData'].length > 0 ? res.data['xData'] : this.firstChartTrans && this.firstChartTrans['timeList'] && this.firstChartTrans['timeList'].length > 0 ? this.firstChartTrans['timeList'] : []; @@ -931,9 +931,10 @@ if (this.mapDataList[this.activeName][val.key] && !(this.mapDataList[this.activeName][val.key].echartList[0] && this.mapDataList[this.activeName][val.key].echartList[0].title)) { if (this.activeName === '挂载文件系统监控' && !this.eventKeyName[val.key]) { this.getSpaceRate(val.currTimeList, this.activeName, val.key); - } else if (this.activeName === '硬盘设备监控' && !this.eventKeyName[val.key]) { - this.getSpeedEcharts(val.currTimeList, this.activeName, val.key); } + // else if (this.activeName === '硬盘设备监控' && !this.eventKeyName[val.key]) { + // this.getSpeedEcharts(val.currTimeList, this.activeName, val.key); + // } } } } diff --git a/src/views/resource/serverRegister/flowForm.vue b/src/views/resource/serverRegister/flowForm.vue index a55c6ad..cb8b279 100644 --- a/src/views/resource/serverRegister/flowForm.vue +++ b/src/views/resource/serverRegister/flowForm.vue @@ -7,12 +7,12 @@ {{tag}} -