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.

OnlineUserIndex.js 1.6 KiB

4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. },
  23. initGrid: function () {
  24. $('#gridtable').jfGrid({
  25. url: top.$.rootUrl + '/LR_SystemModule/Log/GetOnlineUserList',
  26. headData: [
  27. { label: "姓名", name: "RealName", width: 150, align: "left" },
  28. { label: "部门", name: "Department", width: 150, align: "left" },
  29. { label: "角色", name: "Role", width: 150, align: "left" },
  30. { label: "IP地址", name: "F_IPAddress", width: 150, align: "center" },
  31. { label: "使用设备", name: "F_Description", width: 100, align: "center" },
  32. ],
  33. mainId: 'F_OperateUserId'
  34. });
  35. page.search();
  36. },
  37. search: function (param) {
  38. $('#gridtable').jfGridSet('reload', param);
  39. }
  40. };
  41. // 保存数据后回调刷新
  42. refreshGirdData = function () {
  43. page.search();
  44. }
  45. page.init();
  46. }