Index.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @{
  2. ViewData["TitleController"] = "故障管理";
  3. ViewData["TitleAction"] = "";
  4. ViewData["TitleActionDescription"] = "故障记录及汇总";
  5. ViewData["Title"] = "故障统计";
  6. }
  7. @section header{
  8. <link rel="stylesheet" href="~/lib/zTree.v3/css/zTreeStyle/zTreeStyle.min.css">
  9. <link rel="stylesheet" href="~/lib/adminlte/bower/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  10. }
  11. <div class="row">
  12. <div class="col-md-12">
  13. <div class="box box-primary">
  14. <div class="box-body">
  15. <div class="col-md-2">
  16. <div class="over">
  17. <ul id="productionLineTree" class="ztree"></ul>
  18. </div>
  19. </div>
  20. <div class="col-md-10">
  21. <div class="col-md-2">
  22. <div class="radio">
  23. <label>
  24. <input type="radio" name="optionsRadios" value="0" checked>
  25. 按天筛选
  26. </label>
  27. </div>
  28. <div class="radio">
  29. <label>
  30. <input type="radio" name="optionsRadios" value="1">
  31. 按时间区间筛选
  32. </label>
  33. </div>
  34. </div>
  35. <div class="col-md-10">
  36. <div class="tab-content" style="padding-top: 15px">
  37. <div class="tab-pane active" id="day">
  38. <div class="col-md-12">
  39. <div class="input-group date" style="width:280px;float:left">
  40. <div class="input-group-addon">日期</div>
  41. <input id="date" type="text" class="form-control" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  42. </div>
  43. <div style="float:left;">
  44. <span>&nbsp;&nbsp;</span>
  45. </div>
  46. <div class="btn-group" style="float:left">
  47. <button onclick="shortcut(-2)" class="btn btn-default">前天</button>
  48. <button onclick="shortcut(-1)" class="btn btn-default">昨天</button>
  49. <button onclick="shortcut(0)" class="btn btn-default">今天</button>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="tab-pane" id="days">
  54. <div class="col-md-12">
  55. <div class="input-group input-daterange" style="width:400px;float:left;padding:0px">
  56. <div class="input-group-addon">起止日期</div>
  57. <input id="date1" type="text" class="form-control" value="@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")">
  58. <div class="input-group-addon">-</div>
  59. <input id="date2" type="text" class="form-control" value="@DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")">
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-md-12">
  66. <div id="container1" style="height: 360px"></div>
  67. </div>
  68. <div class="col-md-12" style="padding-top: 30px">
  69. <div id="container2" style="height: 360px"></div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. @section footer{
  77. <script src="~/lib/zTree.v3/js/jquery.ztree.core.min.js"></script>
  78. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  79. <script src="~/lib/adminlte/bower/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-cn.js"></script>
  80. <script src="~/lib/bootstrap-table/bootstrap-table.min.js"></script>
  81. <script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-cn.min.js"></script>
  82. <script src="~/lib/echarts/echarts.min.js"></script>
  83. <script src="~/js/fault/fault.js"></script>
  84. }