NEZ-3431 fix: 时序图表 未采集到数据时 显示与配置不符

This commit is contained in:
zyh
2024-03-28 10:19:53 +08:00
parent 3cb3c98551
commit 9963bc4c12
2 changed files with 3 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ export default {
// 设置图表颜色
const chartType = item.yAxisIndex == 1 ? lodash.get(this.chartInfo, 'param.rightYAxis.style', 'line') : this.chartInfo.type
item.stroke = color
item.spanGaps = this.chartInfo.param.nullType != 'null'
if (chartType === 'area') {
// 使用 tinycolor 转换为十六进制
const hexColor = tinycolor(color).toHexString()

View File

@@ -39,7 +39,8 @@
<div class="asset-info-collapse">
<i class="nz-icon nz-icon-cpu"></i>
<span>{{$t('asset.cpu')}}</span>
<span>{{chartDetail.feature.cpu.name}} * {{chartDetail.feature.cpu.physicalPackageCount}}</span>
<span>{{chartDetail.feature.cpu.name}}</span>
<span v-if="chartDetail.feature.cpu.physicalPackageCount>1">* {{chartDetail.feature.cpu.physicalPackageCount}}</span>
</div>
</template>
<div class="asset-info-list">