Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | <template>
<v-row no-gutters class="h-100 gap">
<v-col class="flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex">
<v-row no-gutters class="flex-column">
<v-col lg="4">
<span class="vertext text-button my-1 pb-8">Руководство</span>
</v-col>
<v-col>
<span class="vertext text-button my-1 pb-13"
>Структурные подразделения</span
>
</v-col>
</v-row>
</v-col>
<v-col class="d-flex">
<v-row no-gutters :class="smAndDown ? ' flex-column' : ''">
<v-col
:md="mdAndDown ? '12' : ''"
:lg="lgAndDown ? 6 : ''"
class="w100 flex-column d-flex"
v-for="structure in structures"
:key="structure.id"
>
<v-row no-gutters class="flex-grow-0">
<v-col class="flex-column d-flex">
<v-row no-gutters class="mb-2 mt-1 justify-center d-flex mx-1">
<v-card class="flex-column d-flex flex-grow-1" :elevation="10">
<v-card-text class="pa-0">
<v-col lg="12" class="pa-0">
<v-row no-gutters>
<v-col
class="d-flex py-3 justify-center align-center font-weight-medium text-uppercase"
>
{{ structure.post }}
</v-col>
</v-row>
</v-col>
<v-row no-gutters>
<v-col lg="4" class="pa-1 heightfoto">
<list-user :author="structure" :from_which="'top_comment'" />
<!-- <v-img
class="h-100"
:src="
checkremote(`${spravURL}${structure.login}.jpg`)
"
cover
/> -->
</v-col>
<v-col
class="text-center align-self-center font-weight-medium"
>
{{ structure.fio }}
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-row>
</v-col>
<!-- :class="mdAndDown ? 'flex-column gap' : ''" -->
</v-row>
<v-row no-gutters :class="lgAndDown ? '' : 'gap h-0 overflow-auto'">
<v-col lg="12">
<v-row
no-gutters
class="gap mb-1"
v-for="boss in structure.deps"
:key="boss.id"
>
<v-col class="d-flex flex-column">
<v-card
class="flex-column d-flex flex-grow-1 mx-1"
:elevation="5"
>
<v-card-text class="pa-1 pt-3 px-3 flex-column">
<v-col lg="12" class="minh pa-0">
<v-row no-gutters>
<v-col
class="text-wrap text-center text-body-2 font-weight-medium text-uppercase"
>
{{ boss.name }}
</v-col>
<v-col class="flex-grow-0">
<v-tooltip location="top">
<template v-slot:activator="{ props }">
<span v-bind="props">
<v-icon
size="large"
color="green"
icon="mdi-arrow-top-right"
/>
</span>
</template>
<v-row>
<v-col> Перейти на страницу отдела </v-col>
</v-row>
</v-tooltip>
</v-col>
</v-row>
</v-col>
<v-row no-gutters>
<list-user :author="boss.chief_deps" />
</v-row>
</v-card-text>
</v-card>
</v-col>
</v-row>
</v-col>
</v-row>
</v-col>
</v-row>
</v-col>
</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";
import StructureInspectionRow from "./StructureInspectionRow.vue";
import { useDisplay } from "vuetify";
export default {
components: { StructureInspectionRow },
setup() {
const structures = ref([]);
const { smAndDown, mdAndDown, lgAndDown } = useDisplay();
const getStructure = () => {
axiosApiInstance.get("api/about_inspection/getstructure/").then((res) => {
structures.value = res.data;
});
};
getStructure();
return {
structures,
checkremote,
spravURL,
mdAndDown,
lgAndDown,
smAndDown,
};
},
};
</script>
<style>
.vertext {
writing-mode: vertical-rl;
transform: rotate(180deg);
}
.deps-title {
height: 90px;
}
.rotate-text {
transform: rotate(-90deg);
}
.minh {
min-height: 43px;
}
.heightfoto {
max-height: 140px;
min-height: 140px;
}
/* .width-subdeps {
width: 350px;
} */
</style>
|