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.
 
 
 
 
 
 

63 lines
2.1 KiB

  1. /*
  2. * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  3. * Copyright (c) 2013-2018 北京泉江科技有限公司
  4. * 创建人:陈彬彬
  5. * 日 期:2017.04.17
  6. * 描 述:数据库连接
  7. */
  8. var refreshGirdData; // 更新数据
  9. var selectedRow;
  10. var bootstrap = function ($, learun) {
  11. "use strict";
  12. var page = {
  13. init: function () {
  14. page.initGrid();
  15. page.bind();
  16. },
  17. bind: function () {
  18. // 刷新
  19. $('#lr_refresh').on('click', function () {
  20. location.reload();
  21. });
  22. $('#lr_viewlog').on('click', function () {
  23. var keyValue = $('#gridtable').jfGridValue('F_OperateUserId');
  24. if (learun.checkrow(keyValue)) {
  25. learun.layerForm({
  26. id: 'online',
  27. title: '访问监控',
  28. url: top.$.rootUrl + '/Permission/Perm_FunctionVisit/IndexForCount?F_UserId='+keyValue,
  29. height: 500,
  30. width: 800
  31. });
  32. }
  33. });
  34. },
  35. initGrid: function () {
  36. $('#gridtable').jfGrid({
  37. url: top.$.rootUrl + '/LR_SystemModule/Log/GetOnlineUserList',
  38. headData: [
  39. { label: "姓名", name: "RealName", width: 150, align: "left" },
  40. { label: "部门", name: "Department", width: 150, align: "left" },
  41. { label: "角色", name: "Role", width: 150, align: "left" },
  42. { label: "IP地址", name: "F_IPAddress", width: 150, align: "center" },
  43. { label: "使用设备", name: "F_Description", width: 100, align: "center" },
  44. ],
  45. mainId: 'F_OperateUserId'
  46. });
  47. page.search();
  48. },
  49. search: function (param) {
  50. $('#gridtable').jfGridSet('reload', param);
  51. }
  52. };
  53. // 保存数据后回调刷新
  54. refreshGirdData = function () {
  55. page.search();
  56. }
  57. page.init();
  58. }