Dashboard.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @{
  2. ViewBag.Title = "Dashboard";
  3. Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
  4. }
  5. <style type="text/css">
  6. .outer {
  7. width: 100%;
  8. height: 180px;
  9. display: -webkit-flex;
  10. justify-content: space-between; /*决定子元素两端对齐,均匀间隔*/
  11. align-item: center; /*决定子元素垂直居中*/
  12. /*flex-wrap: wrap; 子元素超出换行,默认是不换行的,当子元素的宽由flex决定时会失效*/
  13. margin-bottom: 5px;
  14. }
  15. .outer .chart-container {
  16. width: 260px;
  17. float: left;
  18. height: 180px;
  19. margin: 3px;
  20. cursor:pointer;
  21. }
  22. .highcharts-yaxis-grid .highcharts-grid-line {
  23. display: none;
  24. }
  25. p {
  26. padding: 2px;
  27. }
  28. #Newnoty a{
  29. white-space: nowrap;
  30. overflow: hidden;
  31. text-overflow: ellipsis;
  32. max-width: 300px;
  33. display: inline-block;
  34. }
  35. @@media (max-width: 600px) {
  36. .outer {
  37. width: 100%;
  38. height: 400px;
  39. }
  40. .outer .chart-container {
  41. width: 300px;
  42. float: none;
  43. margin: 0 auto;
  44. }
  45. }
  46. </style>
  47. <script src="~/Content/Scripts/plugins/hcharts/highcharts.js"></script>
  48. <script src="~/Content/Scripts/plugins/hcharts/highcharts-more.js"></script>
  49. <script src="~/Content/Scripts/plugins/hcharts/modules/solid-gauge.js"></script>
  50. <script src="~/ViewModels/dashboard.js?v=1.13"></script>
  51. <div class="outer">
  52. <div onclick="NotFinishList(3)" id="container0" class="chart-container"></div>
  53. <div onclick="NotFinishList(2)" id="container1" class="chart-container"></div>
  54. <div onclick="NotFinishList(1)" id="container2" class="chart-container"></div>
  55. <div onclick="NotFinishList(4)" id="container3" class="chart-container"></div>
  56. <div onclick="NotFinishList(5)" id="container4" class="chart-container"></div>
  57. </div>
  58. <div class="outer" style="height:230px;">
  59. <div class="easyui-panel" title="<i class='fa fa-flag'></i> 与我相关的问题(最近5条)" data-options="tools:[{iconCls:'fa fa-folder-open',handler:function(){alert('浏览更多')}}]" style="width:33%;height:230px;float:left">
  60. <table id="dgMyProlem"></table>
  61. </div>
  62. <div class="easyui-panel" title="<i class='fa fa-hand-o-right'></i> 常见问题处理" data-options="tools:[{iconCls:'fa fa-folder-open',handler:function(){alert('浏览更多')}}]" style="width:33%;height:230px;">
  63. <table id="dgNorProlems"></table>
  64. </div>
  65. <div id="Newnoty" class="easyui-panel" title="<i class='fa fa-volume-up'></i> 最新公告" data-options="tools:[{iconCls:'fa fa-folder-open',handler:function(){MessageList()}}]" style="width:33%;height:230px;padding:10px;">
  66. </div>
  67. </div>
  68. <div style="width:100%;height:400px; border-top:solid 1px #EEE; border-bottom:solid 1px #eee; margin:3px;">
  69. <div id="container-column" style="width: 48%; height: 400px; float:left;"></div>
  70. <!--问题处理延迟环节-->
  71. <div id="problemStop" style="width: 45%; height: 400px; float:left;"></div>
  72. </div>
  73. <script type="text/javascript">
  74. var RYXZ= '@ViewBag.RYXZ'
  75. var model = new viewModel(RYXZ);
  76. model.init();
  77. //消息列表
  78. function MessageList() {
  79. top.ZLPMS.OpenNewWindow('消息列表', '/Home/MessageList', '795px', '523px', null);
  80. }
  81. //未完成列表
  82. function NotFinishList(Type) {
  83. top.ZLPMS.OpenNewWindow('未完成问题', '/Home/NotFinishProblem?Type=' + Type, '795px', '523px', null);
  84. }
  85. //详细消息查看
  86. function MessageDeatil(id) {
  87. top.ZLPMS.OpenNewWindow('消息详细', '/Home/MessageDeatil/' + id, '905px', '553px', null);
  88. }
  89. </script>