fanlocal-warn-history.vue 768 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div class="alarm-history">
  3. <AlarmHistoryTable columns-type="alarm" :device-type="`${devicekide}`" designScope="alarm-history" :scroll="scroll" :deviceId="deviceId" />
  4. </div>
  5. </template>
  6. <script setup lang="ts">
  7. import { reactive, computed } from 'vue';
  8. import AlarmHistoryTable from '../../comment/AlarmHistoryTable.vue';
  9. const props = defineProps({
  10. devicekide: {
  11. type: String,
  12. default: '',
  13. },
  14. deviceId: {
  15. type: String,
  16. default: '',
  17. },
  18. });
  19. const deviceId = computed(() => props.deviceId);
  20. let scroll = reactive({
  21. y: 580,
  22. });
  23. </script>
  24. <style lang="less" scoped>
  25. .alarm-history {
  26. width: 100%;
  27. height: 700px;
  28. position: fixed;
  29. top: 100px;
  30. overflow-y: auto;
  31. }
  32. </style>