<template>
    <v-sheet class="transparent text-caption" width="100%">
        {{ !fakeData ? departament : 'Departament' }}
    </v-sheet>
</template>

<script>
    export default {
        props: {
            app: {required: true},
            column: {required: true},

            createdby: {default: null},
            customer: {default: null},
            created_at: {default: null},

            allow_upload_row_files: {default: true},
            
            fakeData: {default: false},
        },

        computed: {
            departament_id() {
                return this.column.text * 1;
            },

            departament() {
                let r = _.find(this.app.dataSession.Departamente.items, item => item.id == this.departament_id);
                if( !! r )
                {
                    return r.departament;
                }
                return '-';
            }
        },

        name: 'RegistruTableBodyColumnDepartament'
    }
</script>