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.
 
 
 
 
 
 

61 lines
2.3 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-12-11 11:48
  5. * 描 述:请假列表
  6. */
  7. var refreshGirdData;
  8. var bootstrap = function ($, learun) {
  9. "use strict";
  10. var page = {
  11. init: function () {
  12. page.initGird();
  13. page.bind();
  14. },
  15. bind: function () {
  16. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  17. page.search(queryJson);
  18. }, 220, 400);
  19. $('#F_leixing').lrDataItemSelect({ code: 'LeaveType' });
  20. // 刷新
  21. $('#lr_refresh').on('click', function () {
  22. location.reload();
  23. });
  24. },
  25. // 初始化列表
  26. initGird: function () {
  27. $('#gridtable').lrAuthorizeJfGrid({
  28. url: top.$.rootUrl + '/EducationalAdministration/LeaveSchoolA/GetPageList',
  29. headData: [
  30. { label: "申请人", name: "F_ShenQinRen", width: 100, align: "left" },
  31. {
  32. label: "请假类型", name: "F_leixing", width: 80, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
  33. learun.clientdata.getAsync('dataItem', {
  34. key: value,
  35. code: 'LeaveType',
  36. callback: function (_data) {
  37. callback(_data.text);
  38. }
  39. });
  40. } },
  41. { label: "开始时间", name: "F_StartTime", width: 120, align: "left"},
  42. { label: "结束时间", name: "F_EndTime", width: 120, align: "left"},
  43. { label: "缘由", name: "F_YuanYou", width: 150, align: "left"}
  44. ],
  45. mainId:'ID',
  46. isPage: true
  47. });
  48. page.search();
  49. },
  50. search: function (param) {
  51. param = param || {};
  52. $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
  53. }
  54. };
  55. refreshGirdData = function () {
  56. page.search();
  57. };
  58. page.init();
  59. }