P-13 Вакансии
This commit is contained in:
1 parent
73b5a8c1fe
commit
8662dca882
2 files changed
+157
-93
No files matched your search
@@ -1,76 +1,59 @@
|
||||
<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-card class="h-100">
|
||||
<v-card class="h-100 pa-1 ">
|
||||
<v-card-title
|
||||
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-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-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"
|
||||
|
||||
active-class="custom-active"
|
||||
color="teal-darken-3"
|
||||
@click="getIndVacation(vac.id)"
|
||||
>
|
||||
Подробнее
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
<v-card class="rounded-0 bg-transparent " >
|
||||
<v-card-title class="text-wrap">
|
||||
{{ 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-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 class="h-100 pa-1">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
@@ -80,47 +63,84 @@
|
||||
</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-col class="flex-column d-flex">
|
||||
<v-card class="rounded-0 h-100" v-if="vacancyDescription.name!=''">
|
||||
<v-card-title class="mt-4">
|
||||
<span class="text-h4 text-wrap">
|
||||
{{ vacancyDescription.name }}
|
||||
</span>
|
||||
</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">
|
||||
<v-card-title class="pt-0">
|
||||
<span class="text-h5">
|
||||
{{ vacancyDescription.department.name }}
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-title class="pt-6">
|
||||
<span class="text-h6">
|
||||
Направление деятельности подразделения
|
||||
</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>
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-1">
|
||||
<ul>
|
||||
<li
|
||||
class="py-1"
|
||||
v-for="directionTitle in vacancyDescription.department
|
||||
.department_directions"
|
||||
:key="directionTitle"
|
||||
>
|
||||
{{ directionTitle.direction_title }}
|
||||
</li>
|
||||
</ul>
|
||||
</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-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-row>
|
||||
<!-- -->
|
||||
</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-col>
|
||||
</v-row>
|
||||
@@ -130,14 +150,24 @@
|
||||
import { ref } from "vue";
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import myHelper from "../../UI/my-helper.vue";
|
||||
|
||||
export default {
|
||||
components: { myHelper },
|
||||
setup() {
|
||||
let vacancyDescription = ref({ name: "", department: { name: "" } });
|
||||
let vacancySelect = ref(-1);
|
||||
|
||||
|
||||
|
||||
let vacancy = ref({});
|
||||
|
||||
|
||||
|
||||
const getVacancies = () => {
|
||||
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
||||
vacancy.value = data.data;
|
||||
vacancyDescription.value = vacancy.value[0]
|
||||
// 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();
|
||||
|
||||
return {
|
||||
vacancy,
|
||||
formatText
|
||||
formatText,
|
||||
vacancyDescription,
|
||||
getIndVacation,
|
||||
vacancySelect,
|
||||
};
|
||||
},
|
||||
};
|
||||
</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',
|
||||
grey_white: '#FFFFFF', // Цвет для карточек
|
||||
insert_table: '#FAFAFA',
|
||||
btn_text: '#00897B' // фигма, текст кнопки с иконкой
|
||||
btn_text: '#00897B', // фигма, текст кнопки с иконкой
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
dark: {
|
||||
@@ -62,7 +63,8 @@ export default createVuetify({
|
||||
black_and_white: '#101311',
|
||||
grey_white: '#212121',
|
||||
insert_table: '#323030',
|
||||
btn_text: '#00897B'
|
||||
btn_text: '#00897B',
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
options: {
|
||||
|
||||
Reference in new issue
Block a user