| | |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | 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'); |
| | |
| | | |
| | | //示ä¾ï¼èªå®ä¹è¡¨æ ¼å |
| | | //è¡¨æ ¼ä¸æ·»å èªå®ä¹æé® |
| | | this.columns.push({ |
| | | title: 'æä½', |
| | | field: 'æä½', |
| | | width: 150, |
| | | align: 'left', // 'center', |
| | | render: (h, { row, column, index }) => { |
| | | return ( |
| | | <div> |
| | | <el-button |
| | | onClick={($e) => { |
| | | // this.$refs.table.load(); |
| | | // console.log(this.$refs.table); |
| | | this.$refs.gridHeader.openModel1(row) |
| | | }} |
| | | type="primary" |
| | | plain |
| | | style="height:26px; padding: 10px !important;" |
| | | > |
| | | æ¥çæ§è¡ä¿¡æ¯ |
| | | </el-button> |
| | | </div> |
| | | ) |
| | | } |
| | | }) |
| | | // this.columns.push({ |
| | | // title: 'æä½', |
| | | // field: 'æä½', |
| | | // width: 150, |
| | | // align: 'left', // 'center', |
| | | // render: (h, { row, column, index }) => { |
| | | // return ( |
| | | // <div> |
| | | // <el-button |
| | | // onClick={($e) => { |
| | | // // this.$refs.table.load(); |
| | | // // console.log(this.$refs.table); |
| | | // this.$refs.gridHeader.openModel1(row) |
| | | // }} |
| | | // type="primary" |
| | | // plain |
| | | // style="height:26px; padding: 10px !important;" |
| | | // > |
| | | // æ¥çæ§è¡ä¿¡æ¯ |
| | | // </el-button> |
| | | // </div> |
| | | // ) |
| | | // } |
| | | // }) |
| | | }, |
| | | btn1Click(row, column, index, $e) { |
| | | $e.stopPropagation() |