<template>
  <div>
    <el-table v-loading="tableLoading" tooltip-effect="dark" :data="tableData"
      :header-cell-style="{ background: 'rgba(30,144,255,.1)' }" :max-height="tableHeigt" border
      @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column show-overflow-tooltip align="center" prop="operatorChn" label="操作人" width="150" />
      <el-table-column show-overflow-tooltip align="center" prop="operateDate" label="操作时间" width="230" />
      <el-table-column align="center" prop="recNums" label="IP地址" width="150"></el-table-column>
      <!-- <el-table-column show-overflow-tooltip align="center" prop="logType" label="操作类型" width="180"></el-table-column> -->
      <el-table-column show-overflow-tooltip align="center" prop="description" label="操作内容" />
      <!-- <el-table-column show-overflow-tooltip align="center" prop="recNums" label="IP地址" /> -->
      <el-table-column show-overflow-tooltip align="center" prop="args" label="操作数据" />
    </el-table>
  </div>
</template>
<script>
export default {
  props: {
    tableData: {
      type: Array,
      default: () => [],
    },
    tableLoading: {
      type: Boolean,
      default: () => false,
    },
  },
  data() {
    return {
      tableHeigt: window.innerHeight - 250,
    };
  },
  methods: {
    handleSelectionChange(val) {
      this.$emit("handleSelectionChange", val);
    },
  },
};
</script>
<style lang="scss" scoped>
</style>
