You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.3 KiB

  1. /*
  2. * 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
  3. * Copyright (c) 2013-2018 上海力软信息技术有限公司
  4. * 创建人:力软-前端开发组
  5. * 日 期:208.11.22
  6. * 描 述:甘特图
  7. */
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.initGantt();
  13. page.bind();
  14. },
  15. bind: function () {
  16. // 查询
  17. $('#btn_Search').on('click', function () {
  18. var keyword = $('#txt_Keyword').val();
  19. page.search({ keyword: keyword });
  20. });
  21. // 刷新
  22. $('#lr_refresh').on('click', function () {
  23. location.reload();
  24. });
  25. },
  26. initGantt: function () {
  27. $('#gridtable').lrGantt({
  28. url: top.$.rootUrl + '/LR_CodeDemo/GanttDemo/GetPageList',
  29. childUrl: top.$.rootUrl + '/LR_CodeDemo/GanttDemo/GetTimeList',
  30. isPage: true,
  31. rows: 30,
  32. timebtns: ['month', 'week', 'day'],//'month', 'week', 'day', 'hour'
  33. }).lrGanttSet('reload');
  34. },
  35. search: function (param) {
  36. $('#gridtable').lrGanttSet('reload', param || {});
  37. }
  38. };
  39. page.init();
  40. }