index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div style="width:100%;height:100%;position:relative">
  3. <div style="width:100%;height:100%;padding-top:5.1rem;position:absolute">
  4. <mapdiv></mapdiv>
  5. <!-- <zhgl></zhgl> -->
  6. </div>
  7. <headerdiv ref="headerDiv" :currentindexP = currentindexNew></headerdiv>
  8. <div class="bottombg">
  9. <div class="item item2"><div class="num">1123</div><div>静态资源</div></div>
  10. <div class="item item1 item2"><div class="num">113</div><div>动态资源</div></div>
  11. <div class="item item1 item2"><div class="num">531</div><div>重点区域</div></div>
  12. <div class="item"><div class="num">16</div><div>实时告警</div></div>
  13. </div>
  14. <!-- <videodiv :cameracode="ccode" style="width:700px;height:300px;position:absolute;top:100px;left:100px"></videodiv> -->
  15. </div>
  16. </template>
  17. <script>
  18. import moment from "moment";
  19. import mapdiv from "../../components/map/index.vue"
  20. import zhgl from "../../components/zhgl/index.vue"
  21. import headerdiv from '@/components/HeaderDiv/index.vue'
  22. import videodiv from "../../components/Videoplayer/index.vue"
  23. export default {
  24. name: "big",
  25. data() {
  26. return {
  27. currenttime: moment().format("YYYY-MM-DD HH:mm:ss"),
  28. currentindexNew:1,
  29. ccode:"32068166001320000235"
  30. };
  31. },
  32. components:{
  33. mapdiv,
  34. zhgl,
  35. headerdiv,
  36. videodiv
  37. },
  38. mounted() {
  39. // this.$$refs.headerDiv.currentindex = 1;
  40. setInterval(() => {
  41. this.currenttime = moment().format("YYYY-MM-DD HH:mm:ss");
  42. }, 1000);
  43. },
  44. };
  45. </script>
  46. <style rel="stylesheet/scss" lang="scss">
  47. .bottombg{
  48. background: url("../../assets/images/底部菜单bg@2x.png");
  49. position: absolute;
  50. background-size: 100% 100%;
  51. z-index: 1;
  52. width: 85.1rem;
  53. height: 16.3rem;
  54. bottom: 0;
  55. left: 50%;
  56. transform: translate(-50%,-0%);
  57. display: flex;
  58. flex-direction: row;
  59. align-items: center;
  60. color:#fff;
  61. font-size:1.6rem;
  62. .item{
  63. width: 27%;
  64. text-align: center;
  65. justify-content: center;
  66. position: relative;
  67. .num{
  68. font-size:3rem;
  69. color:#25f8bd;
  70. }
  71. }
  72. .item1{
  73. width: 23%;
  74. }
  75. .item2::after{
  76. content: "";
  77. background: url("../../assets/images/图层\ 2@2x.png");
  78. background-size: 100% 100%;
  79. width: 0.2rem;
  80. height: 7.3rem;
  81. position: absolute;
  82. top: 0;
  83. right: 0;
  84. }
  85. }
  86. .ol-zoom-in,.ol-zoom-out{
  87. display: none !important;
  88. }
  89. </style>