diff --git a/db.sqlite3 b/db.sqlite3 index 6dd44b6c3..038c141d7 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/front/package-lock.json b/front/package-lock.json index 81d7ef1cd..9a17f0692 100644 --- a/front/package-lock.json +++ b/front/package-lock.json @@ -1,12 +1,12 @@ { "name": "front", - "version": "0.0.16", + "version": "0.0.17", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "front", - "version": "0.0.16", + "version": "0.0.17", "dependencies": { "@fullcalendar/core": "^6.1.8", "@fullcalendar/daygrid": "^6.1.8", diff --git a/front/package.json b/front/package.json index c52f48b90..bddaa309a 100644 --- a/front/package.json +++ b/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "0.0.16", + "version": "0.0.17", "scripts": { "dev": "vite", "build": "vite build", diff --git a/front/src/utils/universal_functions.js b/front/src/utils/universal_functions.js index 8b03caf31..a988f0425 100644 --- a/front/src/utils/universal_functions.js +++ b/front/src/utils/universal_functions.js @@ -33,7 +33,7 @@ export function checkremote(filecheck){ if(tmp.complete){ return filecheck } - else {return "https://avatars.mds.yandex.net/i?id=e581fbd83b62938eb98e4d1110c176eabdb19946-9181179-images-thumbs&n=13"} + else {return "https://pixelbox.ru/wp-content/uploads/2021/11/avatar-whatsapp-pixelbox.ru-36.jpg"} } diff --git a/front/src/views/nested_view/o_OKiB.vue b/front/src/views/nested_view/o_OKiB.vue index 60f387f9e..099f86ba3 100644 --- a/front/src/views/nested_view/o_OKiB.vue +++ b/front/src/views/nested_view/o_OKiB.vue @@ -11,10 +11,10 @@ > Excel - + { - getfromserver(`api/general_vacation/dailyroundup/`, visiting) + axiosApiInstance.get(`api/general_vacation/dailyroundup/`).then(result => { + let link = document.createElement("a") + link.href = baseURL+result.data.path + link.click() + link.remove() + }) } diff --git a/general_vacation/views.py b/general_vacation/views.py index e961850bc..839a1128f 100644 --- a/general_vacation/views.py +++ b/general_vacation/views.py @@ -205,7 +205,7 @@ class DailyRoundUpAPIView(APIView): - return Response(file_path) + return Response({'path':file_path}) diff --git a/media/DailyRoundUp.xlsx b/media/DailyRoundUp.xlsx index 94617c665..8378d0cb2 100644 Binary files a/media/DailyRoundUp.xlsx and b/media/DailyRoundUp.xlsx differ