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.
 
 
 
 
 
 

87 lines
3.4 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. $('#Grade').lrselect({
  45. url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear',
  46. value: "value",
  47. text: "text",
  48. });
  49. },
  50. // 初始化列表
  51. initGird: function () {
  52. $('#gridtable').jfGrid({
  53. url: top.$.rootUrl + '/EducationalAdministration/StuPunishment/GetPageListTwo',
  54. headData: [
  55. { label: "学年", name: "AcademicYearNo", width: 300, align: "left" },
  56. { label: "学期", name: "Semester", width: 300, align: "left" },
  57. {
  58. label: "系部", name: "DeptNo", width: 300, align: "left",
  59. formatterAsync: function (callback, value, row, op, $cell) {
  60. learun.clientdata.getAsync('custmerData', {
  61. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
  62. key: value,
  63. keyId: 'deptno',
  64. callback: function (_data) {
  65. callback(_data['deptname']);
  66. }
  67. });
  68. }
  69. },
  70. { label: "年级", name: "Grade", width: 300, align: "left" },
  71. { label: "次数", name: "Num", width: 300, align: "left" },
  72. ],
  73. mainId: 'ID',
  74. });
  75. page.search();
  76. },
  77. search: function (param) {
  78. param = param || {};
  79. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  80. }
  81. };
  82. refreshGirdData = function () {
  83. page.search();
  84. };
  85. page.init();
  86. }