common.ui.js 610 B

12345678910111213141516171819
  1. /**
  2. * 渲染需求下拉框中的选项。
  3. * Options in the render story drop-down box.
  4. *
  5. * @access public
  6. * @return void
  7. */
  8. function loadStory(e)
  9. {
  10. const productID = $(e.target).val();
  11. const storyID = $('input[name=story]').val();
  12. const link = $.createLink('design', 'ajaxGetProductStories', 'productID=' + productID + '&projectID=' + projectID + '&status=active&hasParent=true');
  13. $.getJSON(link, function(data)
  14. {
  15. const $storyPicker = $('input[name=story]').zui('picker');
  16. $storyPicker.render({items: data});
  17. $storyPicker.$.setValue(storyID);
  18. })
  19. }