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.
 
 
 
 
 
 

99 lines
3.9 KiB

  1. /* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
  2. * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2021-03-08 10:36
  5. * 描 述:会议纪要
  6. */
  7. var refreshGirdData;
  8. var MeetID = request('MeetID');//会议ID
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. page.initGird();
  14. page.bind();
  15. },
  16. bind: function () {
  17. $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
  18. page.search(queryJson);
  19. }, 220, 400);
  20. // 刷新
  21. $('#lr_refresh').on('click', function () {
  22. location.reload();
  23. });
  24. // 新增
  25. $('#lr_add').on('click', function () {
  26. learun.layerForm({
  27. id: 'MeetingMinutesform',
  28. title: '新增',
  29. url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form?MeetID=' + MeetID,
  30. width: 600,
  31. height: 400,
  32. callBack: function (id) {
  33. return top[id].acceptClick(refreshGirdData);
  34. }
  35. });
  36. });
  37. // 编辑
  38. $('#lr_edit').on('click', function () {
  39. var keyValue = $('#gridtable').jfGridValue('ID');
  40. if (learun.checkrow(keyValue)) {
  41. learun.layerForm({
  42. id: 'MeetingMinutesform',
  43. title: '编辑',
  44. url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/Form?keyValue=' + keyValue + '&MeetID=' + MeetID,
  45. width: 600,
  46. height: 400,
  47. callBack: function (id) {
  48. return top[id].acceptClick(refreshGirdData);
  49. }
  50. });
  51. }
  52. });
  53. // 删除
  54. $('#lr_delete').on('click', function () {
  55. var keyValue = $('#gridtable').jfGridValue('ID');
  56. if (learun.checkrow(keyValue)) {
  57. learun.layerConfirm('是否确认删除该项!', function (res) {
  58. if (res) {
  59. learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/DeleteForm', { keyValue: keyValue }, function () {
  60. refreshGirdData();
  61. });
  62. }
  63. });
  64. }
  65. });
  66. // 打印
  67. $('#lr_print').on('click', function () {
  68. $('#gridtable').jqprintTable();
  69. });
  70. },
  71. // 初始化列表
  72. initGird: function () {
  73. $('#gridtable').lrAuthorizeJfGrid({
  74. url: top.$.rootUrl + '/PersonnelManagement/MeetingMinutes/GetPageList',
  75. headData: [
  76. { label: "会议", name: "MeetingTitle", width: 150, align: "left" },
  77. { label: "纪要标题", name: "Title", width: 150, align: "left" },
  78. { label: "内容", name: "Content", width: 150, align: "left" },
  79. { label: "创建时间", name: "CreateTime", width: 100, align: "left" },
  80. { label: "创建人", name: "CreateUser", width: 100, align: "left" },
  81. ],
  82. mainId: 'ID',
  83. isPage: true,
  84. sidx: 'CreateTime desc'
  85. });
  86. page.search();
  87. },
  88. search: function (param) {
  89. param = param || {};
  90. param.MeetID = MeetID;
  91. $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
  92. }
  93. };
  94. refreshGirdData = function () {
  95. $('#gridtable').jfGridSet('reload');
  96. };
  97. page.init();
  98. }