<el-table :cell-style="set_cell_style">
set_cell_style({row, column, rowIndex, columnIndex}){
    // 阻断不为0
    if (column.label === '阻断'){
        let value = 0
        // smell.BLOCKER
        let prop = column.property.split('.')
        if (prop.length === 2){
            value = row[prop[0]][prop[1]]
        }else {
            value = row[prop[0]]
        }
        return value!==0 ? 'color:red' : ''
    } else if (column.label === 'UT通过率'){
        let cell_value = row[column.property]
        if ( cell_value !== '100.0' && cell_value !== 0) {
            return 'color:red'
        }
        return ''
    } else {
        return ''
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案