compreAlarm.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="renderer" content="webkit">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta http-equiv="Cache" content="no-cache">
  9. <meta http-equiv="cache-control" content="no-cache, must-revalidate">
  10. <meta http-equiv="expires" content="0">
  11. <meta name="viewport"
  12. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  13. <title>实时位置</title>
  14. <link rel="stylesheet" href="../css/index.css">
  15. <link rel="stylesheet" href="../css/style.css">
  16. <link rel="stylesheet" href="../css/iconfont.css">
  17. <script src="../js/vue.min.js"></script>
  18. <script src="../js/index.js"></script>
  19. <script src="../js/echarts.min.js"></script>
  20. <script src="../js/jquery.min.js"></script>
  21. <script type="text/javascript">
  22. document.write('<script src="../assets/init.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  23. document.write('<script src="../assets/ajax.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  24. </script>
  25. <script>
  26. checkLogin();
  27. </script>
  28. <style type="text/css">
  29. .text-whitea{
  30. background-color: rgba(255,255,255,0.2)
  31. }
  32. .el-date-editor .el-range-separator,.el-input__icon{
  33. height: auto;
  34. }
  35. .el-table,.el-table__expanded-cell {
  36. color: #b4b4b4;
  37. background-color: rgba(255,255,255,0) !important;
  38. }
  39. .el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{
  40. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  41. }
  42. .el-table--border .el-table__cell{
  43. border-right: 1px solid rgba(255, 255, 255, 0.2);
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <div id="app" class="padding-xs">
  49. <!-- <el-form :model="queryParams" ref="queryRef" :inline="true" class="margin-bottom-xs">
  50. <el-form-item style="margin: 0px;">
  51. <el-date-picker
  52. v-model="queryParams.searhDate"
  53. type="daterange"
  54. style="height:32px;line-height:32px;"
  55. range-separator="至">
  56. </el-date-picker>
  57. <el-button type="primary" size="small" class="margin-left-xs">查询</el-button>
  58. </el-form-item>
  59. </el-form> -->
  60. <el-row :gutter="5">
  61. <el-col :xs="24" :span="6">
  62. <div style="height: calc( 50vh - 8px);" class="Sense padding-sm">
  63. <div class="flex align-center text-sm text-white">
  64. <img src="../img/icon.png" alt="" style="width: 18px;margin-right: 10px;">
  65. <span>告警船舶排行</span>
  66. </div>
  67. <div id="warmByShip" style="height: calc(100% - 20px);"></div>
  68. </div>
  69. <div style="height: calc(50vh - 8px);" class="margin-top-xs Sense padding-xs">
  70. <div class="flex align-center text-sm text-white">
  71. <img src="../img/icon.png" alt="" style="width: 18px;margin-right: 10px;">
  72. <span>告警类型占比</span>
  73. </div>
  74. <div id="warmType" style="height: calc(100% - 20px);"></div>
  75. </div>
  76. </el-col>
  77. <el-col :xs="24" :span="12">
  78. <div style="height: calc(50vh - 8px);" class="Sense padding-xs">
  79. <div class="flex align-center justify-between text-sm text-white">
  80. <div class="flex align-center">
  81. <img src="../img/icon.png" alt="" style="width: 18px;margin-right: 10px;">
  82. <span>告警趋势</span>
  83. </div>
  84. <div class="pointer" @click="resetQuery"><i class="el-icon-refresh"></i>重置</div>
  85. </div>
  86. <div id="fuelTrends" style="height: calc(100% - 20px);"></div>
  87. </div>
  88. <div class="Sense margin-top-xs">
  89. <el-table :data="warmData"
  90. height="calc(50vh - 8px)"
  91. ref="singleTable"
  92. highlight-current-row
  93. @current-change="handleCurrentChange"
  94. :row-style="{ background: 'transparent' }"
  95. :cell-style="{padding: '5px 0' }"
  96. cell-class-name="text-sm"
  97. :header-cell-style="{ background: '#4461be',color: 'var(--white)',padding: '2px 0',height: '18px !important' }"
  98. header-cell-class-name="text-black text-bold">
  99. <el-table-column align="center" type="index" width="50" label="序号"></el-table-column>
  100. <el-table-column align="center" prop="shipName" label="船名"></el-table-column>
  101. <el-table-column align="center" prop="total" sortable label="报警数量"></el-table-column>
  102. </el-table>
  103. </div>
  104. </el-col>
  105. <el-col :xs="24" :span="6">
  106. <div style="height: calc( 50vh - 8px);" class="Sense padding-lr-sm padding-tb-xs">
  107. <div class="flex align-center text-sm text-white" style="position: relative;">
  108. <img src="../img/icon.png" alt="" style="width: 18px;margin-right: 10px;">
  109. <span>告警数量一览</span>
  110. </div>
  111. <div style="height: calc(100% - 20px);overflow: auto;" class="text-xs">
  112. <div class="flex align-center justify-between text-whitea radius padding-xs margin-top-xs"
  113. v-for="(item,index) in wramList" :key="index">
  114. <div>
  115. <span class="iconfont margin-right-xs" :class="item.icon" style="vertical-align: middle;"></span>
  116. <span>{{item.name}}</span>
  117. </div>
  118. <div><span class="text-blue text-bold text-xl margin-right-xs">{{wramCount[item.key]}}</span>次</div>
  119. </div>
  120. </div>
  121. </div>
  122. <div style="height: calc( 50vh - 8px);" class="margin-top-xs Sense padding-sm">
  123. <div class="flex align-center text-sm text-white">
  124. <img src="../img/icon.png" alt="" style="width: 18px;margin-right: 10px;">
  125. <span>告警类型排行</span>
  126. </div>
  127. <div id="wramTypeRank" style="height: calc(100% - 20px);"></div>
  128. </div>
  129. </el-col>
  130. </el-row>
  131. </div>
  132. <script type="text/javascript">
  133. document.write('<script src="../assets/compreAlarm.js?id='+(new Date().getTime())+'" type="text/javascript" charset="utf-8"><\/script>');
  134. </script>
  135. </body>
  136. </html>