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.
 
 
 
 
 
 

81 line
3.1 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-06-18 10:08
  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. // 刷新
  17. $('#lr_refresh').on('click', function () {
  18. location.reload();
  19. });
  20. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  21. page.search(queryJson);
  22. }, 200, 400);
  23. $('#DeptNo').lrselect({
  24. allowSearch: true,
  25. value: "deptno",
  26. text: "deptname",
  27. url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo',
  28. });
  29. $('#AcademicYearNo').lrselect({
  30. placeholder: "请选择学年",
  31. allowSearch: true,
  32. url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
  33. value: 'value',
  34. text: 'text'
  35. });
  36. //学期
  37. $('#Semester').lrselect({
  38. placeholder: "请选择学年",
  39. allowSearch: true,
  40. url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester',
  41. value: 'value',
  42. text: 'text'
  43. });
  44. },
  45. // 初始化列表
  46. initGird: function () {
  47. $('#gridtable').jfGrid({
  48. url: top.$.rootUrl + '/EducationalAdministration/StuPunishment/GetPageListOne',
  49. headData: [
  50. { label: "学年", name: "AcademicYearNo", width: 400, align: "left" },
  51. { label: "学期", name: "Semester", width: 400, align: "left" },
  52. {
  53. label: "系部", name: "DeptNo", width: 400, align: "left",
  54. formatterAsync: function (callback, value, row, op, $cell) {
  55. learun.clientdata.getAsync('custmerData', {
  56. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  57. key: value,
  58. keyId: 'deptno',
  59. callback: function (_data) {
  60. callback(_data['deptname']);
  61. }
  62. });
  63. }
  64. },
  65. { label: "次数", name: "Num", width: 400, align: "left" },
  66. ],
  67. mainId: 'ID',
  68. });
  69. page.search();
  70. },
  71. search: function (param) {
  72. param = param || {};
  73. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  74. }
  75. };
  76. refreshGirdData = function () {
  77. page.search();
  78. };
  79. page.init();
  80. }