diff --git a/resources/assets/js/api/Api.js b/resources/assets/js/api/Api.js index 6a3ee6dad..d8024421a 100644 --- a/resources/assets/js/api/Api.js +++ b/resources/assets/js/api/Api.js @@ -14,7 +14,7 @@ const services = { GET_LISTS_COMPLETED: "/light/completed", GET_USERS_PICTURES: "/light/users/data", FORMS_ARRAY: "/light/project/{pro_uid}/activity/{act_uid}/steps", - GET_NEW_CASES: "/light/start-case", + GET_NEW_CASES: "/case/start-cases?type_view=category", GET_HISTORY_CASES: "/light/history/{app_uid}", LOGOUT_USER: "/light/logout", UPLOAD_LOCATION: "/light/case/{app_uid}/upload/location", diff --git a/resources/assets/js/home/ModalNewRequest.vue b/resources/assets/js/home/ModalNewRequest.vue index 16a1bdb35..73bd16b7f 100644 --- a/resources/assets/js/home/ModalNewRequest.vue +++ b/resources/assets/js/home/ModalNewRequest.vue @@ -131,21 +131,21 @@ export default { categories = []; _.each(data, (o) => { index = _.findIndex(categories, (c) => { - return c.id == o.categoryId; + return c.id == o.pro_category; }); if (index == -1) { categories.push({ - id: o.categoryId, - title: o.categoryName, + id: o.pro_category, + title: o.category_name, items: [], }); index = categories.length - 1; } categories[index].items.push({ - title: o.text, - description: o.text, - task_uid: o.taskId, - pro_uid: o.processId, + title: o.pro_title, + description: o.pro_description, + task_uid: o.tas_uid, + pro_uid: o.pro_uid, onClick: that.startNewCase, }); });