P-13
This commit is contained in:
1 parent
7443c956c7
commit
73b5a8c1fe
6 files changed
+672
-507
No files matched your search
@@ -44,7 +44,7 @@ class CalendarEvents(models.Model):
|
|||||||
|
|
||||||
class FilesEvent(models.Model):
|
class FilesEvent(models.Model):
|
||||||
""" Прикрепленные файлы к событию"""
|
""" Прикрепленные файлы к событию"""
|
||||||
name = models.CharField(max_length=300, verbose_name='Название файла')
|
name = models.CharField(max_length=300, null=True, blank=True, verbose_name='Название файла')
|
||||||
link = models.FileField(upload_to='calendar/%Y/%m/%d')
|
link = models.FileField(upload_to='calendar/%Y/%m/%d')
|
||||||
event = models.ForeignKey(CalendarEvents, on_delete=models.PROTECT, null=True, blank= True, related_name='get_calendar_events_files', verbose_name='Событие к которому привязаны файлы')
|
event = models.ForeignKey(CalendarEvents, on_delete=models.PROTECT, null=True, blank= True, related_name='get_calendar_events_files', verbose_name='Событие к которому привязаны файлы')
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,162 @@
|
|||||||
|
<template>
|
||||||
|
<v-row no-gutters class="h-100 gap">
|
||||||
|
<v-col lg="4" class="flex-column d-flex">
|
||||||
|
<v-card class="h-100">
|
||||||
|
<v-card-title
|
||||||
|
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||||
|
>
|
||||||
|
<!-- :to='`/newsfull?id=${news.id}`' -->
|
||||||
|
<v-row>
|
||||||
|
<v-col class="d-flex justify-center">Вакансии</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
||||||
|
<v-row no-gutters class="h-0 gap overflow-auto">
|
||||||
|
<v-col class="bg-red">
|
||||||
|
|
||||||
|
<v-card
|
||||||
|
class="mx-auto h-100"
|
||||||
|
|
||||||
|
>
|
||||||
|
<v-list density="compact">
|
||||||
|
|
||||||
|
|
||||||
|
<v-list-item
|
||||||
|
v-for="vac in vacancy"
|
||||||
|
:key="vac.id"
|
||||||
|
:value="vac"
|
||||||
|
color="btn_text"
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
<v-card class="my-3">
|
||||||
|
<v-card-title class="text-wrap"> {{vac.name}} </v-card-title>
|
||||||
|
<v-card-text class="pb-0"> {{vac.department.name}} </v-card-text>
|
||||||
|
|
||||||
|
<v-card-actions class="justify-end pt-0">
|
||||||
|
<v-btn
|
||||||
|
color="btn_text"
|
||||||
|
variant="text"
|
||||||
|
class="text-none"
|
||||||
|
append-icon="mdi-arrow-right"
|
||||||
|
>
|
||||||
|
Подробнее
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
|
</v-card>
|
||||||
|
|
||||||
|
<!-- <v-card class="my-3" v-for="vac in vacancy" :key="vac.id">
|
||||||
|
<v-card-title class="text-wrap"> {{vac.name}} </v-card-title>
|
||||||
|
<v-card-text class="pb-0"> {{vac.department.name}} </v-card-text>
|
||||||
|
|
||||||
|
<v-card-actions class="justify-end pt-0">
|
||||||
|
<v-btn
|
||||||
|
color="btn_text"
|
||||||
|
variant="text"
|
||||||
|
class="text-none"
|
||||||
|
append-icon="mdi-arrow-right"
|
||||||
|
>
|
||||||
|
Подробнее
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card> -->
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<!-- -->
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
<v-col>
|
||||||
|
<v-card class="h-100">
|
||||||
|
<v-card-title
|
||||||
|
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||||
|
>
|
||||||
|
<v-row>
|
||||||
|
<v-col class="d-flex justify-center">Описание</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
||||||
|
<v-row no-gutters class="h-0 overflow-auto">
|
||||||
|
<v-col class="bg-red" v-if="vacancy.length>0">
|
||||||
|
<v-card class="rounded-0">
|
||||||
|
|
||||||
|
<v-card-title>
|
||||||
|
{{vacancy[0].name}}
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-subtitle>
|
||||||
|
{{vacancy[0].department.name}}
|
||||||
|
</v-card-subtitle>
|
||||||
|
<v-card-text>
|
||||||
|
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
</v-card>
|
||||||
|
<v-card class="rounded-0" >
|
||||||
|
|
||||||
|
<v-card-title>
|
||||||
|
<span class="text-subtitle-1">
|
||||||
|
Направление деятельности подразделения
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-subtitle>
|
||||||
|
{{vacancy[0].department.name}}
|
||||||
|
|
||||||
|
</v-card-subtitle>
|
||||||
|
<v-card-text>
|
||||||
|
<div v-for="x in vacancy[0].department.department_directions">
|
||||||
|
|
||||||
|
{{x.direction_title}}
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-text></v-card-text>
|
||||||
|
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<!-- -->
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { ref } from "vue";
|
||||||
|
import { clearAxios } from "@/utils/axios-api";
|
||||||
|
import { baseURL } from "@/utils/axios-api";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
setup() {
|
||||||
|
let vacancy = ref({});
|
||||||
|
|
||||||
|
const getVacancies = () => {
|
||||||
|
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
||||||
|
vacancy.value = data.data;
|
||||||
|
// console.log(, 'data')
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const formatText = (text) => {
|
||||||
|
return text.replaceAll(
|
||||||
|
'src="/media/uploads',
|
||||||
|
`src="${baseURL}media/uploads`
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
getVacancies();
|
||||||
|
|
||||||
|
return {
|
||||||
|
vacancy,
|
||||||
|
formatText
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
<v-card>
|
||||||
|
{{}}
|
||||||
|
</v-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -36,7 +36,8 @@ export default createVuetify({
|
|||||||
app_bar: '#004D40', // Цвет для навигационной (аппбар) панели
|
app_bar: '#004D40', // Цвет для навигационной (аппбар) панели
|
||||||
black_and_white: '#FFFFFF',
|
black_and_white: '#FFFFFF',
|
||||||
grey_white: '#FFFFFF', // Цвет для карточек
|
grey_white: '#FFFFFF', // Цвет для карточек
|
||||||
insert_table: '#FAFAFA'
|
insert_table: '#FAFAFA',
|
||||||
|
btn_text: '#00897B' // фигма, текст кнопки с иконкой
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
@@ -60,7 +61,8 @@ export default createVuetify({
|
|||||||
app_bar: '#212121',
|
app_bar: '#212121',
|
||||||
black_and_white: '#101311',
|
black_and_white: '#101311',
|
||||||
grey_white: '#212121',
|
grey_white: '#212121',
|
||||||
insert_table: '#323030'
|
insert_table: '#323030',
|
||||||
|
btn_text: '#00897B'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<structure-inspection />
|
<structure-inspection />
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
<v-window-item class="gap h-100" value="openVacancies">
|
<v-window-item class="gap h-100" value="openVacancies">
|
||||||
<h1>Открытые вакансии</h1>
|
<open-vacancies/>
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
<v-window-item class="gap h-100" value="contactInfo">
|
<v-window-item class="gap h-100" value="contactInfo">
|
||||||
<contact-info />
|
<contact-info />
|
||||||
@@ -23,6 +23,7 @@ import ContactInfo from "@/components/about_inspection/contacts/ContactInfo.vue"
|
|||||||
import { pagecounter } from "@/utils/universal_functions";
|
import { pagecounter } from "@/utils/universal_functions";
|
||||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||||
import GeneralInformation from "@/components/about_inspection/general_information/GeneralInformation.vue";
|
import GeneralInformation from "@/components/about_inspection/general_information/GeneralInformation.vue";
|
||||||
|
import OpenVacancies from '@/components/about_inspection/open_vacancies/OpenVacancies.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -30,10 +31,12 @@ export default {
|
|||||||
ContactInfo,
|
ContactInfo,
|
||||||
PatternTabs,
|
PatternTabs,
|
||||||
GeneralInformation,
|
GeneralInformation,
|
||||||
|
OpenVacancies
|
||||||
},
|
},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
pagecounter();
|
|
||||||
|
pagecounter();
|
||||||
return {
|
return {
|
||||||
tabs_items: [
|
tabs_items: [
|
||||||
{ title: "Общая информация", value: "mainInfo" },
|
{ title: "Общая информация", value: "mainInfo" },
|
||||||
|
|||||||
Reference in new issue
Block a user