From dfce04b5d2bfc587b26b4aca117a5ba6505a6101 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:13:17 +0300 Subject: [PATCH] s --- db.sqlite3 | Bin 376832 -> 376832 bytes front/package-lock.json | 4 ++-- front/package.json | 2 +- front/src/utils/universal_functions.js | 2 +- front/src/views/nested_view/o_OKiB.vue | 13 +++++++++---- general_vacation/views.py | 2 +- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index 6dd44b6c308f1149be00dd261df140add4777598..038c141d78f6437569337047f40a159a4a54aa5a 100644 GIT binary patch delta 308 zcmZo@5N~J@pCHZnaiWYfZ=TOo~f^fxnC|owtbFk83smU7lk+bzBP5B_1%vY%hDj qw2G6>g|(PLk!kwIwXD`GMy5bp72h#AwJ(3g1jNkSm%n0(yb1u?a$tf0 delta 323 zcmZo@5N~J@pCHY6Yod%Z%&adZuRPrpAUw21drZh6cJurV0kAGTZ;eF>yFDOL8xt&c1+2cDmXErjG4v7BC&+ zVqsulnKb?5A|?%9dmuCQ!u$*SE;d|jnx40s$zuEc)l8})T$23J4E&Gz*YOuj7dXIV zyxs8tlL$W>!&-i428QX;=b2VAOL7TLXTQK?Jl){}li2ov3ry9V)34rOG7w|ohdIj7 zoPmM$r!ym?;)U7M1#dCgFfvW|15xtZyKga7vWiG@r84lB@ul+?ar<$t=D*8xjHhn8 z)B~oN?IjPG)^JW&SjEc5!kfmlZF=GpCSwlcSOx~h6N-$}72h#AwJ(3g1jNkSm%n0( Gyb1ucrDnqb 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})