| 12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * 合并单元格。
- * 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: "<i class='icon icon-code-fork'></i>"});
- }
- 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: `<span class='status-${row.data.rawStatus}'>` + row.data.status + "</span>"};
- }
- return result;
- }
|