Merge branch 'master' of http://git.digital-tps.tk/TPS/birzha-legalizasia-frontend
This commit is contained in:
commit
eb19de5db0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -5,8 +5,8 @@
|
|||
<link rel="icon" href="/fav_icon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TMEX</title>
|
||||
<script type="module" crossorigin src="/assets/index.99746921.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.a8d2cf24.css">
|
||||
<script type="module" crossorigin src="/assets/index.92d4d3cd.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index.01d68ef3.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export const ALLOWED_FILE_TYPES = [
|
|||
'application/x-zip-compressed',
|
||||
'image/jpeg',
|
||||
];
|
||||
export const QUESTIONNAIRE_LINK = "#";
|
||||
export const QUESTIONNAIRE_LINK = "http://ba.digital-tps.tk/export-questionnaire/";
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ export const locale = {
|
|||
FILE_ALLOWED_TYPES: "File type must be {file_types}.",
|
||||
APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.",
|
||||
QUESTIONNAIRE_LINK: 'download this file',
|
||||
STATUS: "Status",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ export const locale = {
|
|||
FILE_ALLOWED_TYPES: "Тип файла должен быть {file_types}.",
|
||||
APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.",
|
||||
QUESTIONNAIRE_LINK: 'download this file',
|
||||
STATUS: "Статус",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ export const locale = {
|
|||
FILE_ALLOWED_TYPES: "Faýlyň görnüşi {file_types} bolmaly.",
|
||||
APPLICATION_PROCESS_DESCRIPTION: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever. When an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. To download the questionnaire, please {0}.",
|
||||
QUESTIONNAIRE_LINK: 'download this file',
|
||||
STATUS: "Status",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { fetchWrapper } from "@/api";
|
||||
import { useAlertStore } from "@/stores";
|
||||
// import { useAuthStore } from "@/stores";
|
||||
|
||||
// const authStore = useAuthStore();
|
||||
// const { user } = storeToRefs(authStore);
|
||||
|
||||
const baseUrl = `${import.meta.env.VITE_API_URL}/api/application`;
|
||||
|
||||
|
|
@ -63,5 +67,14 @@ export const useApplicationStore = defineStore({
|
|||
// alertStore.error(error);
|
||||
}
|
||||
},
|
||||
|
||||
// async downloadQuestionnaire(token) {
|
||||
// try {
|
||||
// await fetchWrapper.get(`http://ba.digital-tps.tk/export-questionnaire/${token}`);
|
||||
// } catch (error) {
|
||||
// // const alertStore = useAlertStore();
|
||||
// // alertStore.error(error);
|
||||
// }
|
||||
// },
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</h4>
|
||||
<div class="pb-6">
|
||||
<i18n-t keypath="APPLICATION_PROCESS_DESCRIPTION" for="QUESTIONNAIRE_LINK">
|
||||
<a :href="QUESTIONNAIRE_LINK" class="text-primary font-bold">{{ $t('QUESTIONNAIRE_LINK') }}</a>
|
||||
<a @click.prevent="downloadQuestionnaire" href="#" class="text-primary font-bold">{{ $t('QUESTIONNAIRE_LINK') }}</a>
|
||||
</i18n-t>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -81,8 +81,12 @@ import { useApplicationStore } from '@/stores'
|
|||
import { storeToRefs } from 'pinia';
|
||||
import { BYTES_IN_KB, ALLOWED_FILE_TYPES, QUESTIONNAIRE_LINK } from "@/helpers";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useAuthStore } from "@/stores";
|
||||
import router from "@/router";
|
||||
|
||||
const authStore = useAuthStore();
|
||||
const { user } = storeToRefs(authStore);
|
||||
|
||||
const { t } = useI18n({});
|
||||
|
||||
const applicationStore = useApplicationStore();
|
||||
|
|
@ -132,6 +136,11 @@ const apply = async () => {
|
|||
isApplying.value = false;
|
||||
};
|
||||
|
||||
const downloadQuestionnaire = async () => {
|
||||
window.open(QUESTIONNAIRE_LINK + user.value.token, '_blank');
|
||||
// await applicationStore.downloadQuestionnaire(user.value.token);
|
||||
};
|
||||
|
||||
onBeforeMount(async () => {
|
||||
await applicationStore.getApplication();
|
||||
if(!application.value) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<div class="text-xs text-slate-400 ml-3">Created {{ normalizeDate(ticket.created_at) }}</div>
|
||||
</div>
|
||||
<div class="w-full truncate text-slate-500 mt-0.5">
|
||||
{{ ticket.content }}
|
||||
{{ $t('STATUS') }}: {{ ticket.status }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
<div v-if="user" class="font-medium text-base">
|
||||
{{ user.firstname }} {{ user.lastname }}
|
||||
</div>
|
||||
<div class="text-slate-500">{{ $f()[0].jobs[0] }}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue