кастом класс
This commit is contained in:
1 parent
ec5b456d30
commit
a239de624f
1 file changed
+35
-30
@@ -1,44 +1,43 @@
|
||||
|
||||
|
||||
<template>
|
||||
<v-row class="ma-1">
|
||||
<v-row no-gutters>
|
||||
<!-- Начальник и курируемые им отделы -->
|
||||
<v-col lg="3">
|
||||
<v-col v-for="x in 4" :key="x" lg="12" class="w-100">
|
||||
<v-card class="pa-10"></v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- КОНЕЦ Начальник и курируемые им отделы -->
|
||||
<v-col lg="3" v-for="structure in structures" :key="structure">
|
||||
|
||||
<!-- Зам-1 и курируемые им отделы -->
|
||||
<v-col lg="3">
|
||||
<v-col v-for="x in 3" :key="x">
|
||||
<v-card class="pa-10"></v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- КОНЕЦ Зам-1 и курируемые им отделы -->
|
||||
<v-card class="ma-2">
|
||||
<v-card-item class="bg-teal-lighten-5 text-teal-darken-4 text-h6">
|
||||
{{ structure.post }}
|
||||
</v-card-item>
|
||||
<v-avatar rounded="0" size="90">
|
||||
<v-img :src="checkremote(`${spravURL}${structure.login}.jpg`)"></v-img>
|
||||
</v-avatar>
|
||||
<v-card-item>{{ structure.fio }}</v-card-item>
|
||||
</v-card>
|
||||
|
||||
<!-- Зам-2 и курируемые им отделы -->
|
||||
<v-col lg="3">
|
||||
<v-col v-for="x in 3" :key="x" lg="12" class="w-100">
|
||||
<v-card class="pa-10"></v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- КОНЕЦ Зам-2 и курируемые им отделы -->
|
||||
<v-card class="ma-2" v-for="dep in structure.deps">
|
||||
<v-card-item class=" bg-teal-lighten-5 text-teal-darken-4 text-h6 deps-title">
|
||||
{{ dep.name }}
|
||||
</v-card-item>
|
||||
<v-avatar rounded="0" size="70">
|
||||
<v-img :src="checkremote(`${spravURL}${structure.login}.jpg`)"></v-img>
|
||||
</v-avatar>
|
||||
<v-card-item>
|
||||
{{ dep.chief_deps.post }}
|
||||
</v-card-item>
|
||||
<v-card-item>
|
||||
{{ dep.chief_deps.fio }}
|
||||
</v-card-item>
|
||||
</v-card>
|
||||
|
||||
<!-- Зам-3 и курируемые им отделы -->
|
||||
<v-col lg="3">
|
||||
<v-col v-for="x in 3" :key="x" lg="12" class="w-100">
|
||||
<v-card class="pa-10"></v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- КОНЕЦ Зам-3 и курируемые им отделы -->
|
||||
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import { checkremote } from '@/utils/universal_functions'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
|
||||
|
||||
@@ -56,7 +55,9 @@ export default {
|
||||
|
||||
getStructure()
|
||||
return {
|
||||
structures
|
||||
structures,
|
||||
checkremote,
|
||||
spravURL
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,4 +65,8 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
<style>
|
||||
.deps-title {
|
||||
height: 90px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user