P-13 Вакансии
This commit is contained in:
1 parent
73b5a8c1fe
commit
8662dca882
2 files changed
+156
-92
No files matched your search
@@ -1,76 +1,59 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row no-gutters class="h-100 gap">
|
<v-row no-gutters class="h-100 gap" v-if="vacancy.length > 0">
|
||||||
<v-col lg="4" class="flex-column d-flex">
|
<v-col lg="4" class="flex-column d-flex">
|
||||||
<v-card class="h-100">
|
<v-card class="h-100 pa-1 ">
|
||||||
<v-card-title
|
<v-card-title
|
||||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||||
>
|
>
|
||||||
<!-- :to='`/newsfull?id=${news.id}`' -->
|
<!-- :to='`/newsfull?id=${news.id}`' -->
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col class="d-flex justify-center">Вакансии</v-col>
|
<v-col class="d-flex justify-center">Вакансии</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
||||||
<v-row no-gutters class="h-0 gap overflow-auto">
|
<v-row no-gutters class="h-0 gap overflow-auto">
|
||||||
<v-col class="bg-red">
|
<v-col>
|
||||||
|
<!-- <my-helper :pretext="vacancy" /> -->
|
||||||
|
<v-card class="mx-auto h-100 ">
|
||||||
|
<v-list density="compact px-0 ">
|
||||||
|
<v-list-item
|
||||||
|
v-for="vac in vacancy"
|
||||||
|
:key="vac.id"
|
||||||
|
:value="vac"
|
||||||
|
class="border-b-sm"
|
||||||
|
|
||||||
<v-card
|
active-class="custom-active"
|
||||||
class="mx-auto h-100"
|
color="teal-darken-3"
|
||||||
|
@click="getIndVacation(vac.id)"
|
||||||
>
|
|
||||||
<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-card class="rounded-0 bg-transparent " >
|
||||||
</v-btn>
|
<v-card-title class="text-wrap">
|
||||||
</v-card-actions>
|
{{ vac.name }}
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="pb-2">
|
||||||
|
<v-row no-gutters class="gap ">
|
||||||
|
<v-col>{{ vac.department.name }}</v-col>
|
||||||
|
<v-col class="flex-grow-0 text-subtitle-1 text-btn_text">
|
||||||
|
Подробнее
|
||||||
|
</v-col>
|
||||||
|
<v-col class="flex-grow-0 align-self-center pl-2">
|
||||||
|
<v-icon icon="mdi-arrow-right" color="btn_text" size="small"/>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
|
</v-card>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
</v-card>
|
</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-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<!-- -->
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-card class="h-100">
|
<v-card class="h-100 pa-1">
|
||||||
<v-card-title
|
<v-card-title
|
||||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||||
>
|
>
|
||||||
@@ -80,47 +63,84 @@
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
<v-card-text class="h-100 pa-0 d-flex flex-column">
|
||||||
<v-row no-gutters class="h-0 overflow-auto">
|
<v-row no-gutters class="h-0 overflow-auto">
|
||||||
<v-col class="bg-red" v-if="vacancy.length>0">
|
<v-col class="flex-column d-flex">
|
||||||
<v-card class="rounded-0">
|
<v-card class="rounded-0 h-100" v-if="vacancyDescription.name!=''">
|
||||||
|
<v-card-title class="mt-4">
|
||||||
<v-card-title>
|
<span class="text-h4 text-wrap">
|
||||||
{{vacancy[0].name}}
|
{{ vacancyDescription.name }}
|
||||||
|
</span>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-subtitle>
|
|
||||||
{{vacancy[0].department.name}}
|
|
||||||
</v-card-subtitle>
|
|
||||||
<v-card-text>
|
|
||||||
|
|
||||||
</v-card-text>
|
<v-card-title class="pt-0">
|
||||||
|
<span class="text-h5">
|
||||||
</v-card>
|
{{ vacancyDescription.department.name }}
|
||||||
<v-card class="rounded-0" >
|
</span>
|
||||||
|
</v-card-title>
|
||||||
<v-card-title>
|
<v-card-title class="pt-6">
|
||||||
<span class="text-subtitle-1">
|
<span class="text-h6">
|
||||||
Направление деятельности подразделения
|
Направление деятельности подразделения
|
||||||
</span>
|
</span>
|
||||||
|
</v-card-title>
|
||||||
</v-card-title>
|
<v-card-text class="mx-5 my-1">
|
||||||
<v-card-subtitle>
|
<ul>
|
||||||
{{vacancy[0].department.name}}
|
<li
|
||||||
|
class="py-1"
|
||||||
</v-card-subtitle>
|
v-for="directionTitle in vacancyDescription.department
|
||||||
<v-card-text>
|
.department_directions"
|
||||||
<div v-for="x in vacancy[0].department.department_directions">
|
:key="directionTitle"
|
||||||
|
>
|
||||||
{{x.direction_title}}
|
{{ directionTitle.direction_title }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</v-card-text>
|
||||||
</v-card-text>
|
<v-card-title>
|
||||||
<v-card-text></v-card-text>
|
<span class="text-h6">
|
||||||
|
Функционал и должностные обязанности
|
||||||
</v-card>
|
</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||||
|
<div
|
||||||
|
class="py-1"
|
||||||
|
v-html="vacancyDescription.functional"
|
||||||
|
></div>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="text-h6"> Базовые требования к соискателю </span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||||
|
<div
|
||||||
|
class="py-1"
|
||||||
|
v-html="vacancyDescription.functional"
|
||||||
|
></div>
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
<v-card class="h-100 pa-1 d-flex align-center justify-center text-center" v-else>
|
||||||
|
<v-card-subtitle>
|
||||||
|
<v-icon icon="mdi-format-list-bulleted" color="grey" size="x-large" />
|
||||||
|
<br />
|
||||||
|
<span class="text-h5 text-grey"
|
||||||
|
>Для подробного описания вакансии <br> выберите её из списка слева</span
|
||||||
|
>
|
||||||
|
</v-card-subtitle>
|
||||||
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<!-- -->
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row no-gutters class="h-100 gap" v-else>
|
||||||
|
<v-col class="flex-column d-flex">
|
||||||
|
<v-card class="h-100 pa-1 d-flex align-center justify-center text-center">
|
||||||
|
<v-card-subtitle>
|
||||||
|
<v-icon icon="mdi-credit-card-off" size="x-large" color="grey"/>
|
||||||
|
<br />
|
||||||
|
<span class="text-h5 text-grey"
|
||||||
|
>Сейчас вакансий нет, <br />
|
||||||
|
загляните позжет</span
|
||||||
|
>
|
||||||
|
</v-card-subtitle>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -130,14 +150,24 @@
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { clearAxios } from "@/utils/axios-api";
|
import { clearAxios } from "@/utils/axios-api";
|
||||||
import { baseURL } from "@/utils/axios-api";
|
import { baseURL } from "@/utils/axios-api";
|
||||||
|
import myHelper from "../../UI/my-helper.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { myHelper },
|
||||||
setup() {
|
setup() {
|
||||||
|
let vacancyDescription = ref({ name: "", department: { name: "" } });
|
||||||
|
let vacancySelect = ref(-1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let vacancy = ref({});
|
let vacancy = ref({});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const getVacancies = () => {
|
const getVacancies = () => {
|
||||||
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
||||||
vacancy.value = data.data;
|
vacancy.value = data.data;
|
||||||
|
vacancyDescription.value = vacancy.value[0]
|
||||||
// console.log(, 'data')
|
// console.log(, 'data')
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -149,14 +179,46 @@ export default {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const getIndVacation = (ind) => {
|
||||||
|
// vacancySelect.value = ind
|
||||||
|
// vacancySelect.value = !vacancySelect.value;
|
||||||
|
console.log(vacancy.value[0], '-----------------');
|
||||||
|
if (vacancySelect.value != ind) {
|
||||||
|
|
||||||
|
vacancySelect.value = ind
|
||||||
|
vacancyDescription.value = vacancy.value.find((el) => el.id == ind);
|
||||||
|
} else {
|
||||||
|
vacancySelect.value = -1
|
||||||
|
vacancyDescription.value = { name: "", department: { name: "" } };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getVacancies();
|
getVacancies();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
vacancy,
|
vacancy,
|
||||||
formatText
|
formatText,
|
||||||
|
vacancyDescription,
|
||||||
|
getIndVacation,
|
||||||
|
vacancySelect,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style>
|
||||||
|
.ckeditor_ul ul li {
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.custom-active .v-card-title {
|
||||||
|
color:#001e19;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-active .v-card-text {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -37,7 +37,8 @@ export default createVuetify({
|
|||||||
black_and_white: '#FFFFFF',
|
black_and_white: '#FFFFFF',
|
||||||
grey_white: '#FFFFFF', // Цвет для карточек
|
grey_white: '#FFFFFF', // Цвет для карточек
|
||||||
insert_table: '#FAFAFA',
|
insert_table: '#FAFAFA',
|
||||||
btn_text: '#00897B' // фигма, текст кнопки с иконкой
|
btn_text: '#00897B', // фигма, текст кнопки с иконкой
|
||||||
|
select_list: '#E0EAE8'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
@@ -62,7 +63,8 @@ export default createVuetify({
|
|||||||
black_and_white: '#101311',
|
black_and_white: '#101311',
|
||||||
grey_white: '#212121',
|
grey_white: '#212121',
|
||||||
insert_table: '#323030',
|
insert_table: '#323030',
|
||||||
btn_text: '#00897B'
|
btn_text: '#00897B',
|
||||||
|
select_list: '#E0EAE8'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
|
|||||||
Reference in new issue
Block a user