NEZ-3431 fix: 时序图表 未采集到数据时 显示与配置不符
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user