Merge branch 'dev-denzel' into cja_new
This commit is contained in:
commit
aad2eac2c0
1 file changed
+2
-3
@@ -76,6 +76,7 @@
|
|||||||
>Назначить сотрудникам</v-tooltip>
|
>Назначить сотрудникам</v-tooltip>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn
|
||||||
|
v-if="cardValue.author === accountStore.user.id"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
color="red-lighten-5"
|
color="red-lighten-5"
|
||||||
:size="$vuetify.display.smAndDown ? 'small' : 'default'"
|
:size="$vuetify.display.smAndDown ? 'small' : 'default'"
|
||||||
@@ -212,7 +213,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
pagecounter();
|
pagecounter();
|
||||||
const accountStore = useAccountStore();
|
const accountStore = useAccountStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const activeTab = ref(0);
|
const activeTab = ref(0);
|
||||||
const currentTest = ref('');
|
const currentTest = ref('');
|
||||||
@@ -299,7 +300,6 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const response = await getTestToUser(id);
|
const response = await getTestToUser(id);
|
||||||
|
|
||||||
console.log('API Response:', response);
|
|
||||||
const assignmentsByUser = response.reduce((acc, testing) => {
|
const assignmentsByUser = response.reduce((acc, testing) => {
|
||||||
if (testing.user_details && testing.is_active) {
|
if (testing.user_details && testing.is_active) {
|
||||||
const existingUser = acc.find(u => u.id === testing.user_details.id);
|
const existingUser = acc.find(u => u.id === testing.user_details.id);
|
||||||
@@ -313,7 +313,6 @@ export default {
|
|||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
}, []);
|
}, []);
|
||||||
console.log('Transformed Data:', assignmentsByUser);
|
|
||||||
|
|
||||||
assignedEmployees.value = assignmentsByUser.map(user => user.id);
|
assignedEmployees.value = assignmentsByUser.map(user => user.id);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user