<template>
  <div class="run-job-page">
    <BaseTable
      showIndex
      ref="baseTableRef"
      tableName="RUN_JOB_TABLE"
      :api="queryJobsApi"
      :params="{
        runId: currentRunInfo?.uuid,
      }"
      :fullHeight="true"
    >
    </BaseTable>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import BaseTable from '@/components/common/table/baseTable.vue';
import { queryJobsApi } from '@/api/pbs/pbs';

defineProps({
  currentRunInfo: {
    type: Object,
    default: () => {},
  },
});

const baseTableRef = ref();
</script>

<style lang="scss" scoped>
.run-job-page {
  width: 100%;
  height: 100%;
}
</style>
