EnergyConsumptionReport.cshtml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. @{
  2. ViewData["TitleController"] = "能耗管理";
  3. ViewData["TitleAction"] = "能耗报表";
  4. ViewData["TitleActionDescription"] = "设备能耗统计报表";
  5. ViewData["Title"] = "能耗报表";
  6. }
  7. @section header{
  8. <link rel="stylesheet" href="~/lib/adminlte/bower/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
  9. }
  10. <div id="app">
  11. <div id="homeTop" style="top: 50px; height: 80px;position: fixed; z-index: 8001; width: 1300px;background-color: #001529;">
  12. <div class="col-md-12" style="padding-top: 25px;" >
  13. <div class="input-group input-daterange" style="width:400px;float:left;padding:0px">
  14. <div class="input-group-addon">起止日期</div>
  15. <input id="date1" type="text" class="form-control" value="@DateTime.Now.AddDays(-2).ToString("yyyy-MM-dd")">
  16. <div class="input-group-addon">-</div>
  17. <input id="date2" type="text" class="form-control" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  18. </div>
  19. <div class="col-md-1">
  20. <div class="btn-group">
  21. <button type="button" class="btn btn-block btn-default" v-on:click="getEnergyConsumptionReport()">
  22. <i class="fa fa-search"></i> 查询
  23. </button>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. <div id="homeTable1" style="top: 130px; position: fixed; z-index: 8000; height: 60px; width: 1300px;background-color: #001529;">
  29. <table id="table1" class="table table-hover">
  30. <thead>
  31. <tr>
  32. <th width="5%">No</th>
  33. <th width="10%">Line</th>
  34. <th width="10%">Total<br />(kW·h)</th>
  35. <th width="10%">FPL<br />(kW·h)</th>
  36. <th width="10%">COG<br />(kW·h)</th>
  37. <th width="10%">FOG<br />(kW·h)</th>
  38. <th width="10%">BT<br />(kW·h)</th>
  39. <th width="10%">PS<br />(kW·h)</th>
  40. <th width="10%">TP<br />(kW·h)</th>
  41. <th width="10%">EC<br />(kW·h)</th>
  42. </tr>
  43. </thead>
  44. </table>
  45. </div>
  46. <div id="homeTable2" style="padding-top: 60px; width: 1300px; color:#FCC439">
  47. <table id="table1" class="table table-hover">
  48. <thead>
  49. <tr>
  50. <th width="5%">No</th>
  51. <th width="10%">Line</th>
  52. <th width="10%">Total<br />(kW·h)</th>
  53. <th width="10%">FPL<br />(kW·h)</th>
  54. <th width="10%">COG<br />(kW·h)</th>
  55. <th width="10%">FOG<br />(kW·h)</th>
  56. <th width="10%">BT<br />(kW·h)</th>
  57. <th width="10%">PS<br />(kW·h)</th>
  58. <th width="10%">TP<br />(kW·h)</th>
  59. <th width="10%">EC<br />(kW·h)</th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. <tr v-for="(line, index) in lineDtos">
  64. <td>{{ index + 1 }}</td>
  65. <td>{{ line.lineName }}</td>
  66. <td>{{ line.electricEnergiy }}</td>
  67. <td>{{ line.machineElectricEnergiy[0] }}</td>
  68. <td>{{ line.machineElectricEnergiy[1] }}</td>
  69. <td>{{ line.machineElectricEnergiy[2] }}</td>
  70. <td>{{ line.machineElectricEnergiy[3] }}</td>
  71. <td>{{ line.machineElectricEnergiy[4] }}</td>
  72. <td>{{ line.machineElectricEnergiy[5] }}</td>
  73. <td>{{ line.machineElectricEnergiy[6] }}</td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. </div>
  78. </div>
  79. @section footer{
  80. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  81. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-cn.js"></script>
  82. <script src="~/js/energy-consumption/energyConsumptionReport.js" asp-append-version="true"></script>
  83. }