<template>
  <manufacture-db-list v-if="ifManufacture" />
  <gascylinder-db-list v-else-if="ifGasCylinder" />
  <original-db-list v-else />
</template>
<script>
import manufactureDbList from './components/manufacture_db_list' // 容器制造
import originalDbList from './components/original_db_list' // 原始记录
import gascylinderDbList from './components/gascylinder_db_list' // 车用气瓶

export default {
  name: 'TODOYsjl',
  components: { originalDbList, manufactureDbList, gascylinderDbList },
  data() {
    return {
      ifManufacture: this.$store.getters.departmentId === 84 || this.hasRole('WZHM'),
      ifGasCylinder: this.$store.getters.departmentId === 86
    }
  }
}
</script>
