refactor [P-282]: изменил цвет названия отделов, добавил полоску к подписи

This commit is contained in:
lexxik753 committed 2025-07-15 17:22:51 +03:00
1 parent 838f43a710
commit a1ef02283b
2 files changed
+22 -4

No files matched your search

@@ -1,9 +1,10 @@
<template>
<div v-for="(sort, depart) in grouped" class="mt-2">
<h2 class="py-2">{{ depart }}</h2>
<v-row>
<h2 class="text-teal">{{ depart }}</h2>
<v-divider :thickness="4" color="teal"/>
<v-row class="mt-1">
<v-col v-for="person in sort.sort((a,b)=>a.position-b.position)" cols="4" :key="person.id" class="cursor-pointer">
<v-card>
<v-card v-model="moreInformation" @click="moreInformation=true">
<v-avatar :image="checkremote(`${spravURL}.jpg`)" rounded="0" size="100"></v-avatar>
<v-card-item>
<v-card-title>{{ person.familyname }} {{ person.name }} {{ person.parentname }}</v-card-title>
@@ -14,12 +15,17 @@
</v-col>
</v-row>
</div>
<v-dialog v-model="moreInformation" transition="dialog-top-transition">
<DialogEmployeeDirection />
</v-dialog>
</template>
<script setup>
import DialogEmployeeDirection from "./DialogEmployeeDirection.vue";
import { checkremote } from "@/utils/universal_functions";
import { spravURL } from "@/utils/axios-api";
import { computed } from 'vue'
import { ref, computed } from 'vue'
const props = defineProps({
selectedDep: {
@@ -29,6 +35,8 @@ const props = defineProps({
search: String,
})
const moreInformation = ref(false)
const filteredPerson = computed(() => {
return props.selectedDep.persons.filter(item => item.deleted == props.isWork && item.fio.toLowerCase().includes(props.search.toLowerCase()))
})
@@ -0,0 +1,10 @@
<template>
<v-card>
<v-col class="bg-red">1</v-col>
<v-col class="bg-blue">2</v-col>
</v-card>
</template>
<script setup>
</script>