Dashboard.cshtml 3.5 KB

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