Merge remote-tracking branch 'origin/develop' into dev-denzel
This commit is contained in:
commit
12150e738a
9 files changed
+84
-31
No files matched your search
@@ -62,6 +62,7 @@
|
||||
:disabled="result[question.id]?.length >= question.settings.multiChoice && !result[question.id]?.includes(answer.id)"
|
||||
density="compact">
|
||||
{{ answer.employee?.fio || answer.name }}
|
||||
|
||||
<template v-slot:prepend="{ isSelected }">
|
||||
<v-list-item-action start>
|
||||
<v-checkbox-btn :model-value="isSelected"></v-checkbox-btn>
|
||||
@@ -148,15 +149,11 @@ import {useAccountStore} from "@/store/AccountStore";
|
||||
import {checkremote} from "@/utils/universal_functions";
|
||||
import VoteAnimation from "@/components/vote/VoteAnimation.vue";
|
||||
|
||||
|
||||
export default {
|
||||
name: 'CurrentVote',
|
||||
components: {VoteAnimation},
|
||||
methods: {
|
||||
checkremote,
|
||||
spravURL() {
|
||||
return spravURL
|
||||
}
|
||||
},
|
||||
|
||||
emits: ['closer'],
|
||||
props: {
|
||||
data: {
|
||||
@@ -255,6 +252,8 @@ export default {
|
||||
|
||||
|
||||
return {
|
||||
spravURL,
|
||||
checkremote,
|
||||
groupedAnswers,
|
||||
activepick,
|
||||
opendialog,
|
||||
|
||||
@@ -64,6 +64,7 @@ export function checkremote(filecheck) {
|
||||
export default str;
|
||||
|
||||
export function splitname(name) {
|
||||
|
||||
return name.familyname + " " + name.name[0] + "." + name.parentname[0] + ".";
|
||||
}
|
||||
|
||||
@@ -71,7 +72,7 @@ export function pagecounter() {
|
||||
// Функция записи посещения страницы сотрудникам.
|
||||
// В случае, если в роуте присутствует ключ мета и в нем ико - тогда производится запись
|
||||
const router = useRouter();
|
||||
console.log('meta' in router.currentRoute.value && 'ico' in router.currentRoute.value.meta);
|
||||
|
||||
if('meta' in router.currentRoute.value && 'ico' in router.currentRoute.value.meta){
|
||||
const accountStore = useAccountStore();
|
||||
const appStore = useAppStore();
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</v-tabs-window-item>
|
||||
<!-- Конструктор -->
|
||||
<v-tabs-window-item v-if="accountStore.user.is_staff" class="h-100 overflow-auto" value="constructor">
|
||||
<VoteConstructor @updating="updating"/>
|
||||
<VoteConstructor @updating="updating" ref="constructor"/>
|
||||
</v-tabs-window-item>
|
||||
</v-window>
|
||||
|
||||
@@ -91,6 +91,7 @@ export default {
|
||||
const route = useRoute();
|
||||
const res = ref(null);
|
||||
const result = ref(null);
|
||||
const constructor = ref(null)
|
||||
|
||||
const updating = async (param) => {
|
||||
const data = await getVotes(param);
|
||||
@@ -165,7 +166,15 @@ export default {
|
||||
}
|
||||
};
|
||||
|
||||
watch(currentTab, async () => await updating(currentTab.value))
|
||||
watch(currentTab, async () => {
|
||||
if (currentTab.value !== 'constructor') {
|
||||
await updating(currentTab.value)
|
||||
console.log(constructor.value, '!!!');
|
||||
if (constructor.value !== null) {
|
||||
constructor.value.resetForm()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
watch(
|
||||
() => route,
|
||||
@@ -207,7 +216,8 @@ export default {
|
||||
updating,
|
||||
res,
|
||||
tabs,
|
||||
result
|
||||
result,
|
||||
constructor
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user