StatusMonitor.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="threeLine" @tap="openDrawer">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-top: 8px;margin-left: 10px;"></image>
  6. </view>
  7. <view class="text">
  8. <view class="notice">
  9. <view class="icon cuIcon-notice text-white" v-if="badge != 0">
  10. <view class="cu-tag looknumber">
  11. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  12. </view>
  13. </view>
  14. </view>
  15. 宁夏新能源公司
  16. </view>
  17. <view class="plus">+</view>
  18. </view>
  19. <!-- 抽屉组件 -->
  20. <div>
  21. <drawer ref="drawer"></drawer>
  22. </div>
  23. </view>
  24. </template>
  25. <script>
  26. import drawer from '../../components/drawer/threeLineDrawer.vue';
  27. export default {
  28. components: {
  29. "drawer": drawer,
  30. },
  31. data: function() {
  32. return {
  33. badge: 22,
  34. drawerList: [
  35. {"name":"首页"},
  36. {"name":"状态监视"},
  37. {"name":"矩阵监视"},
  38. {"name":"风场监视"},
  39. {"name":"人员监视"} ,
  40. ],
  41. }
  42. },
  43. methods: {
  44. openDrawer: function() {
  45. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  46. },
  47. closeDrawer: function() {
  48. this.drawerIsShow = false;
  49. },
  50. },
  51. }
  52. </script>
  53. <style>
  54. body {
  55. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
  56. font-size: 20px;
  57. color: silver;
  58. background: #000;
  59. }
  60. page {
  61. background-color: #1F1F1F;
  62. overflow-x: hidden;
  63. }
  64. .top {
  65. width: 100%;
  66. height: 95upx;
  67. padding-top: 5upx;
  68. background-color: #1F1F1F;
  69. }
  70. .threeLine {
  71. width: 50px;
  72. height: 45px;
  73. float: left;
  74. }
  75. .text {
  76. width: calc(100% - 100px);
  77. height: 45px;
  78. float: left;
  79. user-select: text;
  80. -webkit-user-select: text;
  81. -moz-user-select: text;
  82. -ms-user-select: text;
  83. color: silver;
  84. line-height: 45px;
  85. text-align: center;
  86. font-size: 18px;
  87. }
  88. .notice {
  89. width: 50px;
  90. height: 45px;
  91. float: left;
  92. }
  93. .plus {
  94. width: 50px;
  95. height: 45px;
  96. float: right;
  97. color: white;
  98. font-size: 35px;
  99. line-height: 45px;
  100. text-align: center;
  101. }
  102. </style>