DifferenceV1.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. @{
  2. Layout = null;
  3. }
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <meta http-equiv="cache-control" content="no-cache, must-revalidate">
  10. <meta http-equiv="expires" content="0">
  11. <meta name="google" content="notranslate" />
  12. <meta http-equiv="Content-Language" content="zh-cn" />
  13. <title>差异详情</title>
  14. <link rel="stylesheet" href="/lib/adminlte/bower/bootstrap/dist/css/bootstrap.min.css">
  15. <link rel="stylesheet" href="/lib/adminlte/bower/font-awesome/css/font-awesome.min.css">
  16. <link rel="stylesheet" href="/lib/adminlte/dist/css/AdminLTE.min.css">
  17. <script src="~/axios/axios.min.js"></script>
  18. <script src="~/lib/vue/vue.min.js"></script>
  19. <style>
  20. body {
  21. background-color: #001529;
  22. color: #FCC439;
  23. font-size: 16px;
  24. }
  25. h2 > small {
  26. color: #FCC439;
  27. }
  28. .table {
  29. border: solid 1px #0b9afa;
  30. border-radius: 3px;
  31. border-collapse: separate;
  32. border-spacing: 0;
  33. padding: 1px;
  34. font-size: 1.1em;
  35. }
  36. .table-hover > tbody > tr:hover {
  37. background-color: #212e3a;
  38. }
  39. .table > thead > tr > th {
  40. background: #0b9afa;
  41. color: #fff;
  42. border: 1px solid #0b9afa;
  43. }
  44. .table > thead > tr > td {
  45. background: #0b9afa;
  46. }
  47. .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
  48. text-align: center;
  49. padding: 14px;
  50. vertical-align: middle;
  51. text-align: center;
  52. border-top: 1px solid #212e3a;
  53. }
  54. .table > caption + thead > tr:first-child > td, .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > td, .table > thead:first-child > tr:first-child > th {
  55. padding: 14px;
  56. }
  57. label {
  58. line-height: 20px;
  59. margin-left: 5px;
  60. margin-right: 15px;
  61. color: #FCC439;
  62. }
  63. .radio_type {
  64. width: 20px;
  65. height: 20px;
  66. appearance: none;
  67. position: relative;
  68. }
  69. .radio_type:before {
  70. content: '';
  71. width: 20px;
  72. height: 20px;
  73. border: 2px solid #777;
  74. display: inline-block;
  75. border-radius: 50%;
  76. vertical-align: middle;
  77. }
  78. .radio_type:checked:before {
  79. content: '';
  80. width: 20px;
  81. height: 20px;
  82. border: 2px solid green;
  83. display: inline-block;
  84. border-radius: 50%;
  85. vertical-align: middle;
  86. top: 3px;
  87. left: 3px;
  88. }
  89. .radio_type:checked:after {
  90. content: '';
  91. width: 14px;
  92. height: 14px;
  93. text-align: center;
  94. border: 2px solid green;
  95. background: green;
  96. border-radius: 50%;
  97. position: absolute;
  98. top: 3px;
  99. left: 3px;
  100. }
  101. </style>
  102. </head>
  103. <body>
  104. <div id="app">
  105. <div class="col-md-12">
  106. <div class="col-md-1" style="padding-top: 18px;">
  107. <button type="button" class="btn btn-default form-control" v-on:click="revert()"
  108. style="background-color:#0b9afa; color: white; border: 0px">
  109. <span class="glyphicon glyphicon-arrow-left">
  110. </span>
  111. 返回
  112. </button>
  113. </div>
  114. <div class="col-md-11">
  115. <h2>{{ module }}<small>({{ month - 1 }}/21 ~ {{ month }}/20)</small></h2>
  116. </div>
  117. </div>
  118. <div class="col-md-12">
  119. <div style="text-align:left; padding-left: 15px;">
  120. <div class="col-md-2">
  121. <div class="form-group">
  122. <div>
  123. <label>
  124. <input class="radio_type" type="radio" name="optionsRadios" value="ALL" v-on:click="onClickOptionsRadios()">
  125. 全部机种
  126. </label>
  127. </div>
  128. <div v-for="moduleType1 in ms">
  129. <label>
  130. <input class="radio_type" type="radio" name="optionsRadios" :value=moduleType1 v-on:click="onClickOptionsRadios()">
  131. {{ moduleType1 }}
  132. </label>
  133. </div>
  134. </div>
  135. </div>
  136. <div class="col-md-2">
  137. <div class="form-group">
  138. <div>
  139. <label>
  140. <input class="radio_type" type="radio" name="optionsRadios1" value=0 v-on:click="onClickOptionsRadios()">
  141. 全部线别
  142. </label>
  143. </div>
  144. <div v-for="line in ls">
  145. <label>
  146. <input class="radio_type" type="radio" name="optionsRadios1" :value=line v-on:click="onClickOptionsRadios()">
  147. {{ line }}
  148. </label>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="col-md-12">
  155. <div :style="{'color': (difference >= 0 ? '#fff' : '#ff6e76'), 'text-align':'right','padding': '15px', 'font-size': '1.2em' }">
  156. 累计差异:{{ difference }} pcs
  157. </div>
  158. <div id="container" style="height: 400px; width: 100%;">
  159. </div>
  160. <div id="container1" style="height: 200px; width: 100%;">
  161. </div>
  162. </div>
  163. <div class="col-md-6" style="padding-left: 2%">
  164. <table id="table1" class="table table-hover">
  165. <thead>
  166. <tr>
  167. <th>序号</th>
  168. <th>类型</th>
  169. <th>详情</th>
  170. <th>频次</th>
  171. <th>影响时间(min)</th>
  172. </tr>
  173. </thead>
  174. <tbody>
  175. <tr v-for="(differenceInfo, index) in differenceInfos">
  176. <td>{{ index + 1 }}</td>
  177. <td>{{ differenceInfo.typeName }}</td>
  178. <td>{{ differenceInfo.description }}</td>
  179. <td>{{ differenceInfo.frequency}}</td>
  180. <td>{{ differenceInfo.differenceTime }}</td>
  181. </tr>
  182. </tbody>
  183. </table>
  184. </div>
  185. </div>
  186. <script src="~/lib/adminlte/bower/jquery/dist/jquery.min.js"></script>
  187. <script src="~/lib/echarts/echarts.min.js"></script>
  188. <script src="~/js/home/differenceV1.js" asp-append-version="true"></script>
  189. </body>
  190. </html>