| | |
| | | .handleBtn.is-disabled { |
| | | color: #C0C4CC; |
| | | } |
| | | .red{ |
| | | color: red !important; |
| | | } |
| | | </style> |
| | | <style> |
| | | /* .value-table .highlight-warning-row-border td { |
| | |
| | | @click="handleLinkEvent(scope.row,data.linkEvent[a.label])">{{scope.row[a.label]}}</span> |
| | | <img style="width: 40px;height: 40px;margin-top: 10px;" :src="javaApi+'/img/'+scope.row[a.label]" |
| | | v-else-if="showUpload(a.label)&&scope.row[a.label]" alt=""> |
| | | <span v-else>{{scope.row[a.label]}}</span> |
| | | <span v-else :class="{red:getRedColor(a.label,scope.row)}" >{{scope.row[a.label]}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" align="center" label="操作" :width="getWidth()" v-if="data.do.length > 0"> |
| | |
| | | this.$message.error('请选择要删除的数据') |
| | | } |
| | | }, |
| | | getRedColor(label,row){ |
| | | if(this.data.cellSpecialStyle&&this.data.cellSpecialStyle.redColorByKey&&label.includes(this.data.cellSpecialStyle.redColorByKey)&&row[(label.replace(this.data.cellSpecialStyle.redColorByKey, ""))]){ |
| | | return true |
| | | }else{ |
| | | return false |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |