From 2a2718689c792df9e4619c5103192a6f5234ea92 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 +- media/DailyRoundUp.xlsx | Bin 10329 -> 10328 bytes 7 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}) diff --git a/media/DailyRoundUp.xlsx b/media/DailyRoundUp.xlsx index 94617c66589655293d41b247acbe279871d99ffb..8378d0cb234ac2c3dc05e498dd7797f98aed7ebf 100644 GIT binary patch delta 558 zcmcZ^a3g>xz?+#xgn@y9gP|~QBG0<|!o0}v&j(i?cm)(Y&B(wY2&7Z;lLLzK3ySrV z^NUjTDspp{PCV#$*np=kKK0e!(o05sfzwY5s85(MgXNK!BTLP1=ynCB@`dZ_I zV}}3i>$gpnYCfcQDfkVOYuS{r=KNbr401Lp7Y8tK_CN8}a$6*OxK@1c!;g~u0zCEm zW-~i#9?`8xO6HZG(NY=Fb2BotFtDxv#u=t=2j0po%SIiQn8;->F3;yJ-Za6vi2LgI z+Kb`F=6Na)zkYmJ8E03Xn{-(zb=S5P29qA@y?VK*Kx&rMKGD~o->hf4dDX)4qvi#* z-75N5zvY$Be;G6-RL?bTU3t)otsz&>-hT4yqHMkBuXDTh{%-%Mbiwq`FY~{g$N{wZ z8lycMQ(@j_agJxAAo{;P<{;J9#!!HbA{DxIN{+sIYP}0 zq-KJe4CBekYt@uMoQpsX*W`C<>QNwdXHFb_sl?2{@EjQUyuk2>fdz?+#xgn@y9gF!fWBG0;d;o!({g@3=_y#|V%W@KOx1kx$_$pJy5auFr9O*6uqU)P9Pt-Co-gR5c9_ZK00?uYsxnyD<$s97fKvb6sG zRldgXtD+VvsUn&)T3lm#-mEaG3Ov?-JEM-N}{{1G&*