<template>
  <el-dialog
    title="执行记录"
    :model-value="props.open"
    width="1000px"
    append-to-body
    destroy-on-close
    @close="close"
  >
    <el-table :data="recordList" highlight-current-row max-height="650" style="width: 100%" border>
      <el-table-column prop="occurrenceTime" label="执行时间" align="center" />
      <el-table-column prop="statusEnum_enumText" label="执行状态" align="center" />
      <el-table-column prop="orgName" label="执行科室" align="center" />
      <el-table-column prop="practitionerName" label="执行人" align="center" />
    </el-table>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="close">取 消</el-button>
      </div>
    </template>
  </el-dialog>
</template>
  
<script setup>
const props = defineProps({
  open: {
    type: Boolean,
    default: false,
  },
  recordList: {
    type: Array,
  },
});
const emit = defineEmits(['close']);

function close() {
  emit('close');
}
</script>

<style lang="scss" scoped>
</style>