Сейчас вакансий нет,
@@ -150,24 +150,20 @@
import { ref } from "vue";
import { clearAxios } from "@/utils/axios-api";
import { baseURL } from "@/utils/axios-api";
-import myHelper from "../../UI/my-helper.vue";
+import ResponseVacancies from '@/components/about_inspection/open_vacancies/ResponseVacancies.vue';
export default {
- components: { myHelper },
+ components: { ResponseVacancies },
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]
+ vacancyDescription.value = vacancy.value[0];
// console.log(, 'data')
});
};
@@ -180,21 +176,15 @@ export default {
};
const getIndVacation = (ind) => {
- // vacancySelect.value = ind
- // vacancySelect.value = !vacancySelect.value;
- console.log(vacancy.value[0], '-----------------');
if (vacancySelect.value != ind) {
-
- vacancySelect.value = ind
+ vacancySelect.value = ind;
vacancyDescription.value = vacancy.value.find((el) => el.id == ind);
} else {
- vacancySelect.value = -1
+ vacancySelect.value = -1;
vacancyDescription.value = { name: "", department: { name: "" } };
}
};
-
-
getVacancies();
return {
@@ -213,9 +203,8 @@ export default {
padding-top: 8px;
}
-
.custom-active .v-card-title {
- color:#001e19;
+ color: #001e19;
}
.custom-active .v-card-text {
diff --git a/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue b/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue
new file mode 100644
index 000000000..4e4c0e683
--- /dev/null
+++ b/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue
@@ -0,0 +1,85 @@
+
+
+
+ Откликнуться на вакансию
+
+
+
+
+
+
+
+
diff --git a/src/front/src/components/about_inspection/structure/StructureInspection.vue b/src/front/src/components/about_inspection/structure/StructureInspection.vue
index fbd9374d0..708feb345 100644
--- a/src/front/src/components/about_inspection/structure/StructureInspection.vue
+++ b/src/front/src/components/about_inspection/structure/StructureInspection.vue
@@ -135,7 +135,6 @@ export default {
const getStructure = () => {
axiosApiInstance.get("api/about_inspection/getstructure/").then((res) => {
structures.value = res.data;
- console.log(structures.value);
});
};