<!--
 * @Descripttion : 当前组件信息
 * @Author       : 无尘
 * @Date         : 2020-04-03 16:18:11
 * @LastEditors: 无尘
 * @LastEditTime: 2020-05-18 11:28:51
 * @FilePath     : \Hapi-demoj:\公司\api-gateway\src\components\plug\log-list.vue
 -->
<template>
  <div style="margin-top:20px">
    <div class="table-content">
      <el-table :data="tableData" style="width: 100%" tooltip-effect="dark" :height="tableHeight">
        <el-table-column label="traceid" prop="projectName">
          <template slot-scope="scope">
            {{ scope.row.traceId || '--' }}
          </template>
        </el-table-column>
        <el-table-column label="应用" prop="groupName">
          <template slot-scope="scope">
            {{ scope.row.name || '--' }}
          </template>
        </el-table-column>
        <el-table-column label="请求时间" prop="bindTime">
          <template slot-scope="scope">
            <div class="color-606266 line-18">{{ scope.row.requestTime | timeStampToYmd }}</div>
            <div class="color-606266 line-18">{{ scope.row.requestTime | timeStampToHms }}</div>
          </template>
        </el-table-column>
        <el-table-column label="商户" prop="interfaceName">
          <template slot-scope="scope">
            {{ scope.row.enterpriseName || '--' }}
          </template>
        </el-table-column>
        <el-table-column label="接口" prop="interfaceName">
          <template slot-scope="scope">
            <div>{{ scope.row.projectName || '--' }}-{{ scope.row.groupName || '--' }}</div>
            <div>{{ scope.row.interfaceName || '--' }}</div>
          </template>
        </el-table-column>
        <el-table-column label="请求内容" prop="interfaceName" show-overflow-tooltip>
          <template slot-scope="scope">
            {{ scope.row.requestParams || '--' }}
          </template>
        </el-table-column>
        <el-table-column label="返回内容" prop="interfaceName" show-overflow-tooltip>
          <template slot-scope="scope">
            {{ scope.row.responseParams || '--' }}
          </template>
        </el-table-column>
        <el-table-column label="备注">
          <template slot-scope="scope">
            {{ scope.row.remarks || '--' }}
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
// import { getRequest } from '@/api/api';
export default {
  props: {
    tableData: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  methods: {},
  components: {}
};
</script>
<style lang="less" scoped>
.line-18 {
  line-height: 18px;
}
</style>
