AlarmHistory.vue 892 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="alarm-history">
  3. <AlarmHistoryTable
  4. columns-type="alarm"
  5. :device-type="deviceType"
  6. :device-list-api="workFaceDeviceList.bind(null, { id: deviceId })"
  7. :list="list"
  8. :sys-id="deviceId"
  9. designScope="alarm-history"
  10. />
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import AlarmHistoryTable from '../../comment/WorkFaceAlarmHistoryTable.vue';
  15. import { workFaceDeviceList } from '../../../deviceManager/comment/warningTabel/warning.api';
  16. import { defHttp } from '/@/utils/http/axios';
  17. defineProps({
  18. deviceType: {
  19. type: String,
  20. required: true,
  21. },
  22. deviceId: {
  23. type: String,
  24. required: true,
  25. },
  26. });
  27. const list = (params) => defHttp.get({ url: '/safety/managesysAutoLog/list', params });
  28. </script>
  29. <style lang="less" scoped>
  30. .alarm-history {
  31. pointer-events: auto;
  32. }
  33. </style>