<template>
  <section class="AppLoadAudit">
    <component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/>
  </section>
</template>

<script>

import LoanDetail from "./loanDetail";
import LoanList from "./loanList";

export default {
  name: "AppLoadAudit",
  components: {LoanList, LoanDetail},
  label: "贷款审核",
  props: {
    instance: Function,
    dict: Object,
    permissions: Function
  },
  computed: {
    currentComponent() {
      return !!this.$route.query.id ? LoanDetail : LoanList
    }
  },
  data() {
    return {}
  },
  created() {
    this.dict.load("enterpriseName")
  }
}
</script>

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