UnprocessedEarlyWarningManagementIndex.cshtml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @using PMS.BusinessModels.CloudMonitorManage;
  2. @{
  3. ViewBag.Title = "EarlyWarningManagementIndex";
  4. Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
  5. AlertConfig config = ViewBag.Model as AlertConfig;
  6. }
  7. <style>
  8. .datagrid-header-row {
  9. text-align: center;
  10. }
  11. .layui-timeline-title {
  12. margin: 0px
  13. }
  14. .timelineDetail:hover {
  15. background-color: #c5e5ff;
  16. cursor: pointer;
  17. }
  18. .layui-form-item {
  19. margin: 5px
  20. }
  21. p {
  22. margin-top: -15px
  23. }
  24. /*.datagrid-body{height:500px!important;}*/
  25. .datagrid-body {
  26. overflow-y: scroll
  27. }
  28. .Serious {
  29. width: 100px;
  30. text-align: center;
  31. line-height: 32px;
  32. background-color: #d54c55;
  33. }
  34. .Warning {
  35. width: 100px;
  36. text-align: center;
  37. line-height: 32px;
  38. background-color: #d9d97b;
  39. }
  40. .Normal {
  41. width: 100px;
  42. text-align: center;
  43. line-height: 32px;
  44. background-color: #63b563;
  45. }
  46. </style>
  47. <div>
  48. <div id="mainLayout1" style="width:100%;height:450px;">
  49. <div data-options="region:'center', title:'工作时间内预警信息'" style="height:45vh;">
  50. <table id="treegrid1" data-options="fit:true">
  51. <!-- 预警管理表格内容 -->
  52. </table>
  53. </div>
  54. </div>
  55. <div id="mainLayout2" style="width:100%;height:450px;">
  56. <div data-options="region:'center', title:'工作时间外预警信息'" style="height:45vh;">
  57. <table id="treegrid2" data-options="fit:true">
  58. <!-- 预警管理表格内容 -->
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. <script src="~/ViewModels/UnprocessedEarlyWarningManagementIndex.js"></script>
  64. <script type="text/javascript">
  65. window.starTime = '@config.工作开始时间';
  66. window.endTime = '@config.工作结束时间';
  67. var model = new viewModel();
  68. model.init();
  69. $(function () {
  70. $('#mainLayout1').layout();
  71. $('#mainLayout2').layout();
  72. })
  73. </script>