feat [P-282]: надо править бэк

This commit is contained in:
lexxik753 committed 2025-07-28 10:06:28 +03:00
1 parent a1ef02283b
commit fdfd00e04f
4 files changed
+93 -12

No files matched your search

@@ -0,0 +1,31 @@
# Generated by Django 5.2.4 on 2025-07-18 09:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("commeteresp", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="OrderResponsibilityEmployee",
fields=[
(
"id",
models.PositiveIntegerField(
db_comment="╥рсхы№э√щ эюьхЁ", primary_key=True, serialize=False
),
),
],
options={
"verbose_name": "Ответственный сотрудник",
"verbose_name_plural": "Ответственные сотрудники",
"db_table": "order_responsibility_employee",
"managed": False,
},
),
]
@@ -4,14 +4,7 @@
<v-divider :thickness="4" color="teal"/> <v-divider :thickness="4" color="teal"/>
<v-row class="mt-1"> <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-col v-for="person in sort.sort((a,b)=>a.position-b.position)" cols="4" :key="person.id" class="cursor-pointer">
<v-card v-model="moreInformation" @click="moreInformation=true"> <CardDictEmployee :person="person" v-model:moreInformation="moreInformation"/>
<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>
<v-card-title class="text-subtitle-1">{{ person.post }}</v-card-title>
<v-card-subtitle>{{ person.tel }}</v-card-subtitle>
</v-card-item>
</v-card>
</v-col> </v-col>
</v-row> </v-row>
</div> </div>
@@ -22,9 +15,8 @@
<script setup> <script setup>
import DialogEmployeeDirection from "./DialogEmployeeDirection.vue"; import DialogEmployeeDirection from "./DialogEmployeeDirection.vue";
import CardDictEmployee from "../UI/DictEmployee/CardDictEmployee.vue";
import { checkremote } from "@/utils/universal_functions";
import { spravURL } from "@/utils/axios-api";
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
const props = defineProps({ const props = defineProps({
@@ -1,10 +1,40 @@
<template> <template>
<v-card> <v-card>
<v-col class="bg-red">1</v-col> <v-row class="bg-red">
<v-col class="bg-blue">2</v-col> <v-col class="bg-blue">
Общие данные
<!-- <CardDictEmployee /> -->
</v-col>
<v-col class="bg-purple">Участия в комиссиях</v-col>
</v-row>
<v-row class="bg-green">
<v-col class="bg-orange">Сферы ответственности</v-col>
</v-row>
</v-card> </v-card>
</template> </template>
<script setup> <script setup>
import CardDictEmployee from '../UI/DictEmployee/CardDictEmployee.vue';
import { axiosApiInstance } from '@/utils/axios-api'
import { onMounted } from 'vue'
const props = defineProps({
fullListInfo: {
}
})
async function getFullInfoList() {
try {
const response = await axiosApiInstance.get('api/userauth/getdepartments')
} catch (error) {
console.log('Ошибка получения полной информации из справоника', error);
}
}
onMounted(async () => {
await getFullInfoList();
})
</script> </script>
@@ -0,0 +1,28 @@
<template>
<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>{{ props.person.familyname }} {{ props.person.name }} {{ props.person.parentname }}</v-card-title>
<v-card-title class="text-subtitle-1">{{ props.person.post }}</v-card-title>
<v-card-subtitle>{{ props.person.tel }}</v-card-subtitle>
</v-card-item>
</v-card>
</template>
<script setup>
import { checkremote } from "@/utils/universal_functions";
import { spravURL } from "@/utils/axios-api";
import { ref } from 'vue'
const props = defineProps({
person: {
familyname: String,
name: String,
parentname: String,
tel: String,
post: String,
}
})
const moreInformation = defineModel('moreInformation')
</script>