Skip to content

Commit

Permalink
Add opportunity to convert applicant to student as admin, add all dat…
Browse files Browse the repository at this point in the history
…a about applicant to convertation request
  • Loading branch information
startsev2000 committed Mar 5, 2024
1 parent e37f0e6 commit 8549500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
8 changes: 6 additions & 2 deletions front-end/src/components/@ApplicantsDocuments/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@
v-if="field === 'index'"
#body="{ index }"
>
<div @click="navigateToApplicantToStudent(data[index])">
<a
title="Зарегистрировать в качестве студента ВУЦа"
style="cursor: pointer; text-decoration: default; color: black;"
@click="navigateToApplicantToStudent(data[index])"
>
{{ startIndex + index + 1 }}
</div>
</a>
</template>

<template
Expand Down
13 changes: 1 addition & 12 deletions front-end/src/components/ApplicantToStudent/Student.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,8 @@ export default {
awaitingResponse: false,
student: {
surname: null,
name: null,
patronymic: null,
milgroup: null,
post: null,
contact_info: {
corporate_email: null,
personal_phone_number: null,
},
},
rules: {
Expand Down Expand Up @@ -171,11 +164,7 @@ export default {
const response = await findApplicant(this.userId);
const { data } = response;
this.student.name = data.name;
this.student.surname = data.surname;
this.student.patronymic = data.patronymic;
this.student.contact_info.corporate_email = data.contact_info.personal_email;
this.student.contact_info.personal_phone_number = data.contact_info.personal_phone_number;
this.student = { ...this.student, ...data };
},
methods: {
Expand Down

0 comments on commit 8549500

Please sign in to comment.