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