| | |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { |
| | | |
| | | this.columns.forEach(x => { |
| | | if (x.field == "errorMessage") { |
| | | x.cellStyle = (row, rowIndex, columnIndex) => { |
| | | if (row.errorMessage == null||row.errorMessage=="") { |
| | | return { background: "White", color: "Black" } |
| | | } |
| | | else{ |
| | | return { background: "#FF4500", color: "Black" } |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | // this.columns.forEach(x => { |
| | | // if (x.field == "errorMessage") { |
| | | // x.cellStyle = (row, rowIndex, columnIndex) => { |
| | | // if (row.errorMessage == null||row.errorMessage=="") { |
| | | // return { background: "White", color: "Black" } |
| | | // } |
| | | // else{ |
| | | // return { background: "#FF4500", color: "Black" } |
| | | // } |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | //æ¡æ¶åå§åé
ç½®åï¼ |
| | | let TaskHandCompleteBtn=this.buttons.find(x=>x.value=='TaskHandComplete'); |