<el-table-column
     align="center"
     prop="submitState"
     label="报送状态"
 >
     <template slot-scope="scope">
         <div :style="scope.row.submitState=== '已上报'?'color:#01b79d;':'color:#ec5656;'">{{scope.row.submitState}}</div>
      </template>
 </el-table-column>

vue通过判断动态显示样式

 

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-03-05
  • 2021-11-19
  • 2021-07-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
相关资源
相似解决方案