common.ui.js 897 B

123456789101112131415161718192021222324252627282930313233
  1. window.toggleWhiteList = function(e)
  2. {
  3. const acl = e.target.value;
  4. $('#readListBox').toggleClass('hidden', acl == 'open');
  5. $('#whiteListBox').toggleClass('hidden', acl == 'open');
  6. };
  7. window.clickSubmitForZentaoConfig = function()
  8. {
  9. const docID = getDocApp()?.docID;
  10. $("#buildZentaoConfig form [name=templateID]").val(docID);
  11. };
  12. /**
  13. * 根据是否勾选了所有项目来切换适用流程选择框的禁用状态。
  14. * Change the disabled status of the process selection box according to whether the all project is checked.
  15. *
  16. * @access public
  17. * @return void
  18. */
  19. function toggleObjectsBox()
  20. {
  21. const objectsPicker = $('[name^=objects]').zui('picker');
  22. if($('[name=allProject]').prop('checked'))
  23. {
  24. objectsPicker.$.setValue('');
  25. objectsPicker.render({disabled: true});
  26. }
  27. else
  28. {
  29. objectsPicker.render({disabled: false});
  30. }
  31. }