<template>
  <div class="financeReport pagePadding">
    <div
      v-loading="loading"
      v-if=" powers.some((i) => i == '001')"
      style="margin-top:25px"
    >
      <el-tabs type="border-card" v-model="activeName">
        <!-- <el-tab-pane label="实时下载" name="1">
          <real-time-export />
        </el-tab-pane> -->
         <el-tab-pane label="延时下载" name="1">
          <real-time-export-new />
        </el-tab-pane>
        <!-- <el-tab-pane label="预约下载" name="3">
          <pre-export />
        </el-tab-pane> -->


        <!-- <el-tab-pane label="往年数据下载" name="4">
          <history-data />
        </el-tab-pane> -->
      </el-tabs>
    </div>
    <no-auth v-else></no-auth>
  </div>
</template>
<script>
import resToken from "@/mixins/resToken";
import urlConfig from "@/apis/url-config";
import realTimeExport from "./real-time-export";
import preExport from "./pre-export";
import historyData from "./history-data";
import realTimeExportNew from "./real-time-export-new";
import { mapGetters } from "vuex";
export default {
  name: "financeReport",
  mixins: [resToken],
  components: {
    realTimeExport,
    preExport,
    historyData,
    realTimeExportNew
  },
  computed: {
    //组件SIZE设置
    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
    //组件SIZE设置
    powers() {
      const tran =
        this.$store.getters.btnList.find(
          (item) => item.menu_route == "financeReport"
        ) || {};
      const { action } = tran ?? {};
      return action ?? [];
    },
  },
  data() {
    return {
      activeName: "1",
      loading: false,
      fileUrl: urlConfig.baseURL,
    };
  },
  mounted() {
    this.activeName = "1";
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.financeReport {
}
</style>
