<template>
  <div class="alarm-history">
    <AlarmHistoryTable
      columns-type="alarm"
      device-type="sys_surface_junya"
      :list="list"
      :sys-id="deviceId"
      :device-list-api="workFaceDeviceList.bind(null, { id: deviceId })"
      designScope="alarm-history"
    />
  </div>
</template>
<script setup lang="ts">
  import AlarmHistoryTable from '../../comment/AlarmHistoryTable.vue';
  import { workFaceDeviceList } from '../../../deviceManager/comment/warningTabel/warning.api';
  import { defHttp } from '/@/utils/http/axios';

  const list = (params) => defHttp.get({ url: '/safety/managesysAutoLog/list', params });
  const props = defineProps({
    deviceType: {
      type: String,
      required: true,
    },
    deviceId: {
      type: String,
      required: true,
    },
  });
</script>
<style lang="less" scoped>
  .alarm-history {
    pointer-events: auto;
  }
</style>
