/** * 合并单元格。 * cell span in the column. * * @param object cell * @access public * @return object */ window.getCellSpan = function(cell) { if(!['buildName', 'productName', 'executionName'].includes(cell.col.name) && cell.row.data.trowspan) { return {rowSpan: cell.row.data.trowspan}; } if(['productName'].includes(cell.col.name) && cell.row.data.prowspan) { return {rowSpan: cell.row.data.prowspan}; } } window.onRenderCell = function(result, {row, col}) { if(result && col.name == 'name' && row.data.joint == 1) { result.push({html: ""}); } if(result && col.name == 'buildName' && multipleSprints[row.data.execution] == undefined) { if(result[0].props) result[0].props['data-app'] = 'project'; } else if(col.name == 'status' && result) { result[0] = {html: `` + row.data.status + ""}; } return result; }