s
This commit is contained in:
1 parent
d5be0fd5ad
commit
2a2718689c
7 files changed
+14
-9
No files matched your search
BIN
Binary file not shown.
Generated
+2
-2
@@ -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",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.16",
|
||||
"version": "0.0.17",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
@@ -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"}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
>
|
||||
Excel
|
||||
</v-btn>
|
||||
|
||||
<!-- :href="`${baseURL}media/DailyRoundUp.xlsx`"
|
||||
download -->
|
||||
<v-btn
|
||||
:href="`${baseURL}media/DailyRoundUp.xlsx`"
|
||||
download
|
||||
|
||||
class="mr-2"
|
||||
color="modal_btn"
|
||||
@click="excelOp"
|
||||
@@ -53,7 +53,12 @@ export default {
|
||||
const dailyfiles = ref('')
|
||||
const visiting = ref({})
|
||||
const excelOp = () => {
|
||||
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()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ class DailyRoundUpAPIView(APIView):
|
||||
|
||||
|
||||
|
||||
return Response(file_path)
|
||||
return Response({'path':file_path})
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user