<template>
  <div>
    <el-table
      style="width: 100%;"
      ref="multipleTable"
      v-loading="listLoading"
      key="0"
      :data="orderGiftCards"
      row-key="id"
      stripe
      border
      fit
    >
      <el-table-column align="center" type="index"> </el-table-column>

      <el-table-column
        :label="$t('payId')"
        width="300"
        align="center"
        prop="payId"
      >
      </el-table-column>

      <el-table-column
        :label="$t('authorization')"
        width="300"
        align="center"
        prop="authorization"
      >
      </el-table-column>

      <el-table-column
        :label="$t('giftCardAmount')"
        width="80"
        align="center"
        prop="giftCardAmount"
      >
      </el-table-column>

      <el-table-column
        :label="$t('currency')"
        width="150"
        align="center"
        prop="currency"
      >
      </el-table-column>

      <el-table-column
        :label="$t('payMethod')"
        width="150"
        align="center"
        prop="payMethod"
      >
      </el-table-column>

      <el-table-column
        :label="$t('payType')"
        width="150"
        align="center"
        prop="payType"
      >
      </el-table-column>

      <el-table-column
        :label="$t('giftCard')"
        width="150"
        align="center"
        prop="giftCard"
      >
      </el-table-column>

      <el-table-column
        :label="$t('giftCardId')"
        width="150"
        align="center"
        prop="giftCardId"
      >
      </el-table-column>

      <el-table-column width="200" :label="$t('containRise')" align="center">
        <template slot-scope="scope">
          <el-checkbox v-model="scope.row.containRiseCheck"></el-checkbox>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import row from "element-ui/packages/row";
import swPage from "@/views/common/swPage.vue";

export default {
  name: "orderGiftCardsTab",
  components: { swPage },
  data() {
    return {
      listLoading: false
    };
  },
  computed: {
    row() {
      return row;
    }
  },
  props: ["orderGiftCards"],
  methods: {
    retPage() {
      //分页
    },
    setCurrent(row) {
      this.$refs.tableDemand.setCurrentRow(row);
    }
  }
};
</script>

<style lang="scss" scoped>
::v-deep .el-table__body tr.current-row > td {
  background: rgb(238, 227, 173) !important;
}
</style>
