zentaomax.ui.js 667 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * 合并单元格。
  3. * cell span in the column.
  4. *
  5. * @param object cell
  6. * @access public
  7. * @return object
  8. */
  9. window.getCellSpan = function(cell)
  10. {
  11. if(!['executionBuild', 'productName'].includes(cell.col.name) && cell.row.data.trowspan)
  12. {
  13. return {rowSpan: cell.row.data.trowspan};
  14. }
  15. if(['productName'].includes(cell.col.name) && cell.row.data.prowspan)
  16. {
  17. return {rowSpan: cell.row.data.prowspan};
  18. }
  19. }
  20. window.onRenderCell = function(result, {row, col})
  21. {
  22. if(result && col.name == 'name' && row.data.joint == 1)
  23. {
  24. result.push({html: "<i class='icon icon-code-fork'></i>"});
  25. }
  26. return result;
  27. }