<template>
    <div>
        <fire-table :query-type="type" :all-columns="columns"></fire-table>
    </div>
</template>

<script>
import { mapGetters } from 'vuex'
import FireTable from './FireTable'

export default {
    name: 'ReportDetail',
    components: { FireTable },
    data() {
        return {
            type: '1',
            columns: true
        }
    },
    computed: {
        ...mapGetters(['gValue'])
    },
    watch: {},
    mounted() {
        if (!this.gValue) {
            this.$router.push('/report')
            return
        }
        this.$store.dispatch('layout/next', {})
        this.type = this.$route.query.type
    },
    methods: {}
}
</script>
