服务器管理
1、服务器管理详情添加虚拟网卡的弹窗信息展示 2、服务器管理列表中选择业务IP功能添加虚拟网卡的信息展示 3、收益带宽值类型去掉包端带宽值标签
This commit is contained in:
@@ -638,20 +638,30 @@
|
||||
return trafficEcharts(Object.assign(unitData || {}, {name : titleName,clientId: this.paramsData.clientId}, times)).then(res => {
|
||||
if (res && res.data) {
|
||||
netEcharts.title = titleName + content.echartFors[0].title;
|
||||
netEcharts.dataVal.gridTop = '50%';
|
||||
netEcharts.dataVal.legend = {top: '32%', left: '10%',type: 'scroll',orient: 'horizontal'};
|
||||
netEcharts.dataVal.yAxisName = res && res.data && res.data.unit ? '单位' + res.data.unit : ' ';
|
||||
netEcharts.dataVal.lineXData = res.data && res.data.xData.length > 0 ? res.data.xData : this.firstChartTrans && this.firstChartTrans['timeList'] || [];
|
||||
netEcharts.dataVal.dataList[0] = {
|
||||
name: content.echartFors[0].oneName,
|
||||
data: res.data && res.data.yData['netOutSpeedData'] || []
|
||||
};
|
||||
if (content.echartFors[0].unitSel) {
|
||||
netEcharts.dataVal['unitModel'] = res && res.data && res.data.unit || '';
|
||||
netEcharts.dataVal['unitSelList'] = content.echartFors[0].unitSel;
|
||||
}
|
||||
netEcharts.dataVal.dataList[1] = {
|
||||
name: content.echartFors[0].twoName,
|
||||
data: res.data && res.data.yData['netInSpeedData'] || []
|
||||
};
|
||||
if (res.data && res.data.showRealation) {
|
||||
Object.keys(res.data.showRealation).forEach((key,index) => {
|
||||
netEcharts.dataVal.dataList[index] = {
|
||||
name: res.data.showRealation[key],
|
||||
data: res.data && res.data.yData[key] || []
|
||||
};
|
||||
});
|
||||
}
|
||||
// netEcharts.dataVal.dataList[0] = {
|
||||
// name: content.echartFors[0].oneName,
|
||||
// data: res.data && res.data.yData['netOutSpeedData'] || []
|
||||
// };
|
||||
// netEcharts.dataVal.dataList[1] = {
|
||||
// name: content.echartFors[0].twoName,
|
||||
// data: res.data && res.data.yData['netInSpeedData'] || []
|
||||
// };
|
||||
mountCollect['echartList'][0] = netEcharts;
|
||||
this.$set(this.secondChartList, titleName, mountCollect);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user