history.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="scene-box">
  3. <div class="center-container">
  4. <div class="history-group">
  5. <div class="history-container">
  6. <workFaceHistory
  7. v-if="activeKey == 'monitor_history' && isRefresh"
  8. ref="historyTable"
  9. class="vent-margin-t-20"
  10. :deviceId="optionValue"
  11. :device-type="deviceType"
  12. />
  13. <!-- <workFaceHandleHistory
  14. v-if="activeKey == 'handler_history' && isRefresh"
  15. ref="alarmHistoryTable"
  16. class="vent-margin-t-20"
  17. :deviceId="optionValue"
  18. :device-type="deviceType"
  19. />
  20. <workFaceAlarmHistory
  21. v-if="activeKey == 'faultRecord' && isRefresh"
  22. ref="handlerHistoryTable"
  23. class="vent-margin-t-20"
  24. :deviceId="optionValue"
  25. :device-type="deviceType"
  26. /> -->
  27. </div>
  28. </div>
  29. </div>
  30. <!-- <BottomMenu @change="changeActive" /> -->
  31. </div>
  32. </template>
  33. <script setup lang="ts">
  34. import { onBeforeMount, ref, onMounted, onUnmounted, nextTick } from 'vue';
  35. import BottomMenu from './bottomMenu.vue';
  36. import workFaceHistory from './workFaceHistory.vue';
  37. type DeviceType = { deviceType: string; deviceName: string; datalist: any[] };
  38. const deviceList = ref<DeviceType[]>([]);
  39. const activeKey = ref('monitor_history');
  40. const deviceActive = ref('');
  41. const deviceType = ref('');
  42. const optionValue = ref('');
  43. const loading = ref(false);
  44. const isRefresh = ref(true);
  45. function changeActive(activeValue) {
  46. activeKey.value = activeValue;
  47. loading.value = true;
  48. }
  49. </script>
  50. <style lang="less" scoped>
  51. @import '/@/design/vent/modal.less';
  52. @import '/@/design/theme.less';
  53. @ventSpace: zxm;
  54. :deep(.@{ventSpace}-tabs-tabpane-active) {
  55. overflow: auto;
  56. }
  57. .scene-box {
  58. --image-wokeFaca-nav: url('/@/assets/images/vent/wokeFaca-nav.png');
  59. --gradient-0: linear-gradient(45deg, #96c5ca38, #156c7d4a);
  60. --color-0: #73e8fe;
  61. --color-2: #96c5ca38;
  62. --color-3: #156c7d4a;
  63. --color-5: #0d2b46;
  64. --color-6: #00fffd22;
  65. --color-7: #44b4ff33;
  66. --color-10: #6176af;
  67. --color-15: #ffffff88;
  68. --color-16: #f73b2440;
  69. --color-18: #ff9b1740;
  70. --color-22: #ffa500;
  71. width: 100%;
  72. height: 100%;
  73. }
  74. .history-group {
  75. padding: 0 30px;
  76. margin-top: 90px;
  77. .history-container {
  78. position: relative;
  79. background: var(--color-5);
  80. width: calc(100% + 10px);
  81. left: -10px;
  82. border: 1px solid var(--color-6);
  83. padding: 10px 0;
  84. box-shadow: 0 0 20px var(--color-7) inset;
  85. }
  86. }
  87. </style>