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

<script>

import PumDetail from "./pumDetail";
import PumList from "./pumList";

export default {
  name: "AppPortalUserManager",
  components: {PumList, PumDetail},
  label: "经营主体认证",
  props: {
    instance: Function,
    dict: Object,
    permissions: Function
  },
  computed: {
    currentComponent() {
      return !!this.$route.query.id ? PumDetail : PumList
    }
  },
  data() {
    return {}
  },
  created() {
    this.dict.load("enterpriseName")
  }
}
</script>

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