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.

StatisticIndex.js 3.3 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2020-03-30 14:00
  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. }, 200, 400);
  19. $('#Education').lrDataItemSelect({ code: 'CollegeType', allowSearch: true });
  20. // 刷新
  21. $('#lr_refresh').on('click', function () {
  22. location.reload();
  23. });
  24. },
  25. // 初始化列表
  26. initGird: function () {
  27. $('#gridtable').jfGrid({
  28. url: top.$.rootUrl + '/EducationalAdministration/PM_EducationExperience/GetPageStatisticList',
  29. headData: [
  30. {
  31. label: "教师", name: "EmpId", width: 100, align: "left",
  32. formatterAsync: function (callback, value, row, op, $cell) {
  33. learun.clientdata.getAsync('custmerData', {
  34. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
  35. key: value,
  36. keyId: 'empid',
  37. callback: function (_data) {
  38. callback(_data['empname']);
  39. }
  40. });
  41. }
  42. },
  43. {
  44. label: "学历", name: "Education", width: 100, align: "left",
  45. formatterAsync: function (callback, value, row, op, $cell) {
  46. learun.clientdata.getAsync('dataItem', {
  47. key: value,
  48. code: 'CollegeType',
  49. callback: function (_data) {
  50. callback(_data.text);
  51. }
  52. });
  53. }
  54. },
  55. { label: "变更时间", name: "UpdateTime", width: 130, align: "left" },
  56. {
  57. label: "变更人", name: "Updater", width: 100, align: "left",
  58. formatterAsync: function (callback, value, row) {
  59. learun.clientdata.getAsync('user', {
  60. key: value,
  61. callback: function (item) {
  62. callback(item.name);
  63. }
  64. });
  65. }
  66. },
  67. ],
  68. mainId: 'ID',
  69. isPage: true,
  70. sidx:'UpdateTime desc'
  71. });
  72. page.search();
  73. },
  74. search: function (param) {
  75. param = param || {};
  76. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  77. }
  78. };
  79. refreshGirdData = function () {
  80. page.search();
  81. };
  82. page.init();
  83. }