index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <div class="main-container-box">
  3. <div class="nav-header">
  4. 安防综合管理平台
  5. <nav1/>
  6. <!-- <sidebar class="sidebar-container" /> -->
  7. <div class="time-menu">
  8. <time-menu></time-menu>
  9. </div>
  10. </div>
  11. <div class="panel-box">
  12. <div class="column1">
  13. <sbjk></sbjk>
  14. <monitor></monitor>
  15. </div>
  16. <div class="column2">
  17. <alarm-static></alarm-static>
  18. <handle-number></handle-number>
  19. <alarming></alarming>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import TimeMenu from "@/components/TimeMenu";
  26. import sbjk from "./components/sbjk";
  27. import monitor from "./components/monitor";
  28. import alarming from "./components/alarming";
  29. import handleNumber from "./components/handleNumber";
  30. import alarmStatic from "./components/alarmStatic";
  31. import nav1 from "./components/nav1";
  32. import SidebarItem from "@/layout/components/Sidebar/SidebarItem";
  33. import { mapGetters } from "vuex";
  34. import variables from "@/styles/variables.scss";
  35. export default {
  36. // components: { sbjk, monitor, alarming, handleNumber, alarmStatic, TimeMenu},
  37. components: {
  38. sbjk,
  39. monitor,
  40. alarming,
  41. handleNumber,
  42. alarmStatic,
  43. TimeMenu,
  44. nav1,
  45. },
  46. };
  47. </script>
  48. <style lang="scss">
  49. /* 修复input 背景不协调 和光标变色 */
  50. /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
  51. $bg: #283443;
  52. $light_gray: #fff;
  53. $cursor: #fff;
  54. @supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
  55. .main-container-box .el-input input {
  56. color: $cursor;
  57. }
  58. }
  59. </style>
  60. <style lang="scss" scoped>
  61. // @import "../../styles/mixin.scss";
  62. </style>
  63. <style lang="scss" >
  64. /* 初始化 */
  65. ul {
  66. padding: 0;
  67. margin: 0;
  68. list-style: none;
  69. }
  70. li,
  71. p {
  72. padding: 0;
  73. margin: 0;
  74. list-style: none;
  75. }
  76. .colorSuccess {
  77. color: #01e416;
  78. }
  79. .colorUnhandle {
  80. color: rgb(248, 72, 3);
  81. }
  82. .colorOverTime {
  83. color: #0bc3ff;
  84. }
  85. .colorUnpass {
  86. color: #fd7700;
  87. }
  88. .colorTotal {
  89. color: #ffec16;
  90. }
  91. // 时间菜单插件
  92. .nav-header {
  93. .time-menu .right-time.date {
  94. font-size: 1.6rem;
  95. line-height: 4.5rem;
  96. }
  97. .right-sec .right-menu {
  98. line-height: 4.5rem;
  99. }
  100. .right-sec
  101. .right-menu
  102. .avatar-container
  103. .avatar-wrapper
  104. .el-icon-caret-bottom {
  105. top: 1.6rem;
  106. }
  107. .svg-icon{
  108. display:none!important;
  109. }
  110. }
  111. /* 首页公共css */
  112. .main-container-box {
  113. min-width: 1024px;
  114. background: url(../../assets/bg.png);
  115. background-size: 100% 100%;
  116. background-repeat: no-repeat;
  117. overflow: hidden;
  118. color: #fff;
  119. }
  120. .nav-header {
  121. color: #fff;
  122. text-align: center;
  123. font-size: 4rem;
  124. line-height: 8rem;
  125. background: url(../../assets/nav-header-bg.png);
  126. background-size: 100% 100%;
  127. background-repeat: no-repeat;
  128. }
  129. .panel-box {
  130. min-width: 1024px;
  131. max-width: 1920px;
  132. min-height: 650px;
  133. position: relative;
  134. height: calc(100vh - 8rem);
  135. display: flex;
  136. > div {
  137. position: absolute;
  138. top: 0;
  139. width: 23%;
  140. }
  141. .column1 {
  142. left: 1rem;
  143. }
  144. .column2 {
  145. right: 1rem;
  146. }
  147. }
  148. .panel {
  149. position: relative;
  150. background: #021132;
  151. border: 1px solid #3486da;
  152. .panel-tit {
  153. background: linear-gradient(
  154. to right,
  155. #021132 0%,
  156. #3053af 50%,
  157. #021132 100%
  158. );
  159. padding: 1.2rem;
  160. color: #fff;
  161. text-align: center;
  162. font-size: 1.6rem;
  163. font-family: "impact";
  164. }
  165. }
  166. .panel::before {
  167. position: absolute;
  168. top: 0;
  169. left: 0;
  170. content: "";
  171. width: 10px;
  172. height: 10px;
  173. border-top: 2px solid #02a6b5;
  174. border-left: 2px solid #02a6b5;
  175. }
  176. .panel::after {
  177. position: absolute;
  178. top: 0;
  179. right: 0;
  180. content: "";
  181. width: 10px;
  182. height: 10px;
  183. border-top: 2px solid #02a6b5;
  184. border-right: 2px solid #02a6b5;
  185. }
  186. .panel .panel-footer {
  187. position: absolute;
  188. left: 0;
  189. bottom: 0;
  190. width: 100%;
  191. }
  192. .panel .panel-footer::before {
  193. position: absolute;
  194. bottom: 0;
  195. left: 0;
  196. content: "";
  197. width: 10px;
  198. height: 10px;
  199. border-bottom: 2px solid #02a6b5;
  200. border-left: 2px solid #02a6b5;
  201. }
  202. .panel .panel-footer::after {
  203. position: absolute;
  204. bottom: 0;
  205. right: 0;
  206. content: "";
  207. width: 10px;
  208. height: 10px;
  209. border-bottom: 2px solid #02a6b5;
  210. border-right: 2px solid #02a6b5;
  211. }
  212. /* 约束屏幕尺寸 */
  213. @media screen and (max-width: 1024px) {
  214. html {
  215. font-size: 5px !important;
  216. }
  217. }
  218. @media screen and (min-width: 1920px) {
  219. html {
  220. font-size: 10px !important;
  221. }
  222. }
  223. </style>
  224. <style scoped>
  225. .el-menu--collapse .el-menu .el-submenu, .el-menu--popup{
  226. min-width:10rem!important;
  227. }
  228. </style>