index.vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="query-box">
  3. <div class="query-head">
  4. <div class="query-tbas">
  5. <div class="tbas-title" :class="activeKey == '1' ? 'active' : ''" @click="activeclick('1')">按天导出</div>
  6. <a-divider type="vertical" style="height: 15px; background-color: #f4f5f7; margin: 8px 20px" />
  7. <div class="tbas-title" :class="activeKey == '2' ? 'active' : ''" @click="activeclick('2')">数据曲线</div>
  8. <a-divider type="vertical" style="height: 15px; background-color: #f4f5f7; margin: 8px 20px" />
  9. <div class="tbas-title" :class="activeKey == '3' ? 'active' : ''" @click="activeclick('3')">日统计</div>
  10. <a-divider type="vertical" style="height: 15px; background-color: #f4f5f7; margin: 8px 20px" />
  11. <div class="tbas-title" :class="activeKey == '4' ? 'active' : ''" @click="activeclick('4')">信号强度统计</div>
  12. <a-divider type="vertical" style="height: 15px; background-color: #f4f5f7; margin: 8px 20px" />
  13. <div class="tbas-title" :class="activeKey == '5' ? 'active' : ''" @click="activeclick('5')">温度评估</div>
  14. <a-divider type="vertical" style="height: 15px; background-color: #f4f5f7; margin: 8px 20px" />
  15. <div class="tbas-title" :class="activeKey == '6' ? 'active' : ''" @click="activeclick('6')">管理评估</div>
  16. </div>
  17. </div>
  18. <div class="query-body">
  19. <Dailyr ref="dailyrRef" v-if="activeKey == '1'" />
  20. <Curve ref="curveRef" v-if="activeKey == '2'" />
  21. <Statistics ref="statisticsRef" v-if="activeKey == '3'" />
  22. <Signal ref="signalRef" v-if="activeKey == '4'" />
  23. <Assess ref="assessRef" v-if="activeKey == '5'" />
  24. <Evaluate ref="evaluateRef" v-if="activeKey == '6'" />
  25. </div>
  26. </div>
  27. </template>
  28. <script setup>
  29. import Dailyr from './daily.vue'
  30. import Curve from './curve.vue'
  31. import Statistics from './statistics.vue'
  32. import Signal from './signal.vue'
  33. import Assess from './assess.vue'
  34. import Evaluate from './evaluate.vue'
  35. const activeKey = ref('1')
  36. const dailyrRef = ref(null)
  37. const curveRef = ref(null)
  38. const statisticsRef = ref(null)
  39. const signalRef = ref(null)
  40. const assessRef = ref(null)
  41. const evaluateRef = ref(null)
  42. onMounted(() => {})
  43. onBeforeMount(() => {})
  44. // 点击标签
  45. const activeclick = (v) => {
  46. activeKey.value = v
  47. }
  48. </script>
  49. <style lang="less" scoped>
  50. .query-box {
  51. width: 100%;
  52. background-color: #fff;
  53. // 顶部
  54. .query-head {
  55. width: 100%;
  56. height: 50px;
  57. display: flex;
  58. justify-content: space-between;
  59. padding: 15px;
  60. border-bottom: 1px solid #e7e7e7;
  61. .query-tbas {
  62. width: 95%;
  63. display: flex;
  64. .tbas-title {
  65. height: 35px;
  66. line-height: 25px;
  67. color: #a7a7a7;
  68. font-size: 16px;
  69. cursor: pointer;
  70. }
  71. .active {
  72. color: #1b8fff;
  73. border-bottom: 2px solid #1b8fff;
  74. }
  75. }
  76. }
  77. }
  78. </style>