<template>
  <div>
    <el-button :type="position == 'detail' ? 'primary' : 'text'" :size="size || 'mini'" @click="drawer=true" v-if="($route.name === 'quotedprice' && status === '审核') || $route.name !== 'quotedprice'" class="inline-16">{{ btnName ? $t(btnName) : $t('导 出') }}</el-button>
    <el-drawer
    :visible.sync="drawer"
    :with-header="false"
    direction="rtl"
    size="50%"
    append-to-body>
    <div class="detail__panel container">
      <p class="normal-title" style="margin-bottom:16px">{{$t(`选择模板`)}}</p>
      <el-table
        :data="data"
        height="250"
        border
        style="width: 100%">
        <el-table-column
          prop="name"
          :label="$t(`报表名称`)">
        </el-table-column>
        <el-table-column
          prop="operation"
          :label="$t(`操作`)"
          width="150px">
          <template slot-scope="scope">
            <slot name="print" :data="scope.row"></slot>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </el-drawer>
  </div>
</template>

<script>
export default {
  props:['data','position','size','btnName','status'],
  name: '',
  data() {
    return {
      drawer:false,
    };
  },
  created () {

  },
  computed:{
  },
  watch:{
  },
  methods: {}
};
</script>

<style scoped>

</style>
