ipd.ui.js 802 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * 对标题列进行重定义。
  3. * Redefine the title column.
  4. *
  5. * @param array result
  6. * @param array info
  7. * @access public
  8. * @return string|array
  9. */
  10. window.renderCell = function(result, info)
  11. {
  12. if(info.col.name == 'actions')
  13. {
  14. for(index in info.row.data.actions)
  15. {
  16. if(info.row.data.actions[index].name == 'recall') info.row.data.actions[index].hint = (info.row.data.status == 'changing' ? recallChange : recall);
  17. }
  18. }
  19. if(info.col.name == 'title' && result[0])
  20. {
  21. const demand = info.row.data;
  22. if(demand.parent > 0)
  23. {
  24. let html = "<span class='label gray-pale rounded-xl' title='" + children + "'>" + childrenAB + "</span>";
  25. result.unshift({html});
  26. }
  27. }
  28. return result;
  29. }