LineRealTimeInfo.cshtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @{
  2. ViewData["TitleController"] = "计划监控";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "计划监控";
  5. ViewData["Title"] = "计划监控";
  6. }
  7. <div id="app">
  8. <div class="col-md-12">
  9. <div class="box box-primary">
  10. <div class="box-header">
  11. <h2 style="color:#FCC439">
  12. @if (DateTime.Now.Hour < 8)
  13. {
  14. @DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")
  15. }
  16. else
  17. {
  18. @DateTime.Now.ToString("yyyy-MM-dd")
  19. }
  20. &nbsp;&nbsp;&nbsp;
  21. 实时KEYIN信息
  22. &nbsp;&nbsp;&nbsp;
  23. 页面 1min 自动刷新
  24. </h2>
  25. </div>
  26. <div class="box-body" style="min-height: 600px">
  27. <div class="col-lg-6" v-for="lineData in lineDatas">
  28. <div style ="height: 600px; border: 1px solid #0b9afa; margin: 2px; padding: 10px; border-radius: 2px;">
  29. <div style="height: 40px; padding-left: 10px">
  30. <h3>{{ lineData.name }}</h3>
  31. </div>
  32. <div style="height:450px; overflow:auto">
  33. <table id="table2" class="table table-hover">
  34. <thead>
  35. <tr>
  36. <th width="10%">No</th>
  37. <th width="20%">类别</th>
  38. <th>描述</th>
  39. <th width="10%">开始</th>
  40. <th width="10%">结束</th>
  41. <th width="10%">耗时</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr v-for="(keyInInfo, index) in lineData.keyInInfos">
  46. <td>{{index + 1}}</td>
  47. <td>{{keyInInfo.keyInTypeName}}</td>
  48. <td>{{keyInInfo.description}}</td>
  49. <td>{{keyInInfo.startTime | dataTimeFormat}}</td>
  50. <td>{{keyInInfo.endTime | dataTimeFormat}}</td>
  51. <td>{{keyInInfo.affectTime}}</td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. @section footer{
  63. <script src="~/js/Line/LineRealTimeInfo.js"></script>
  64. }