Fix lists
This commit is contained in:
parent
e50c8cc17f
commit
ab26f502df
@ -867,15 +867,15 @@ onMounted(async () => {
|
||||
// Загрузка справочников
|
||||
const [objects, clients, employees, requisitions] = await Promise.all([
|
||||
fetchObjectsListData(`/objects?fields=short`),
|
||||
fetchClientsListData('/clients?fields=short'),
|
||||
fetchEmployeesListData('/users?fields=short'),
|
||||
fetchClientsListData('/clients?fields=short&no_pagination=1'),
|
||||
fetchEmployeesListData('/users?fields=short&no_pagination=1'),
|
||||
fetchRequisitionsListData('/requisitions?no_pagination=1&exclude_linked_for_deal=1' + (dealId ? '&exclude_linked_for_deal_id=' + dealId : ''))
|
||||
]);
|
||||
|
||||
objectsListSideOne.value = objects.data?.data || [];
|
||||
objectsListSideTwo.value = objects.data?.data || [];
|
||||
clientsList.value = clients.data?.data.data || [];
|
||||
employeesList.value = employees.data?.success ? employees.data.data : [];
|
||||
clientsList.value = clients.data?.data || [];
|
||||
employeesList.value = employees.data?.data || [];
|
||||
|
||||
const reqList = requisitions.data?.data?.map(item => ({
|
||||
id: item.id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user