<template>
  <div className="app-container accessAuthorization">
    <!--门禁授权-->
    <authorize v-if="pageType == 1"></authorize>
    <!--授权日志-->
    <application v-if="pageType == 2"></application>
  </div>
</template>

<script>
import authorize from "./authorize.vue";
import application from "./application.vue";

export default {
  name: "index",
  components: {
    authorize,
    application,
  },
  data() {
    return {
      pageType: 1,
    }
  },
  created() {

  },
  mounted() {

  },
  methods: {
    //选项卡切换
    titleClick(type) {
      if (this.pageType != type) {
        this.pageType = type
      }
    }
  }
}
</script>

<style scoped lang="scss">
.accessAuthorization {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;

  * {
    margin: 0;
    font-weight: 500;
  }
}
</style>
