This commit is contained in:
iriska-gri committed 2024-05-08 15:56:42 +03:00
1 parent 7443c956c7
commit 73b5a8c1fe
6 files changed
+672 -507

No files matched your search

@@ -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>
@@ -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
+4 -2
View File
@@ -36,7 +36,8 @@ export default createVuetify({
app_bar: '#004D40', // Цвет для навигационной (аппбар) панели
black_and_white: '#FFFFFF',
grey_white: '#FFFFFF', // Цвет для карточек
insert_table: '#FAFAFA'
insert_table: '#FAFAFA',
btn_text: '#00897B' // фигма, текст кнопки с иконкой
},
},
dark: {
@@ -60,7 +61,8 @@ export default createVuetify({
app_bar: '#212121',
black_and_white: '#101311',
grey_white: '#212121',
insert_table: '#323030'
insert_table: '#323030',
btn_text: '#00897B'
},
},
options: {
+5 -2
View File
@@ -8,7 +8,7 @@
<structure-inspection />
</v-window-item>
<v-window-item class="gap h-100" value="openVacancies">
<h1>Открытые вакансии</h1>
<open-vacancies/>
</v-window-item>
<v-window-item class="gap h-100" value="contactInfo">
<contact-info />
@@ -23,6 +23,7 @@ import ContactInfo from "@/components/about_inspection/contacts/ContactInfo.vue"
import { pagecounter } from "@/utils/universal_functions";
import PatternTabs from "@/components/UI/PatternTabs.vue";
import GeneralInformation from "@/components/about_inspection/general_information/GeneralInformation.vue";
import OpenVacancies from '@/components/about_inspection/open_vacancies/OpenVacancies.vue';
export default {
components: {
@@ -30,10 +31,12 @@ export default {
ContactInfo,
PatternTabs,
GeneralInformation,
OpenVacancies
},
setup() {
pagecounter();
pagecounter();
return {
tabs_items: [
{ title: "Общая информация", value: "mainInfo" },