Первая заливка

This commit is contained in:
iriska-gri committed 2023-11-23 10:59:29 +03:00
1 parent 5a628c6acd
commit 576b59c076
6 files changed
+14 -17

No files matched your search

@@ -53,15 +53,16 @@
</v-card>
</v-col>
<v-col>
<!-- todayButton -->
<v-card class="h-100">
<vue-cal
locale="ru"
xsmall
:time="false"
hide-view-selector
todayButton
split
hideTitleBar
header-format= "DD"
:events="events"
active-view="day"
:disable-views="['years', 'year', 'month', 'week']"
@@ -81,11 +82,11 @@
<v-tooltip text="Сегодня" location="bottom">
<!-- <v-tooltip text="Сегодня" location="bottom">
<template v-slot:activator="{ props }">
<v-icon v-bind="props" icon="mdi-crosshairs-gps" size="x-small" class="pt-1 pr-3" color="more_details_btn"/>
</template>
</v-tooltip>
</v-tooltip> -->
+2 -7
View File
@@ -9,7 +9,7 @@
class="pt-2"
icon="mdi-file-excel"
color="green-darken-3"
@click="excelOp('roundfilse')"
@click="excelOp('excround')"
/>
</v-col>
@@ -120,15 +120,10 @@ export default {
})
}
// const excelVacation = () => {
// }
const onPickFile = (ex) => {
console.log(ex, 'sdata');
console.log(ex, 'ssssssssssssssssssssssssssssssssssssssssssssdata');
const sdata = new FormData()
sdata.append('dailyfiles', dailyfiles.value[0])
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<div>
<my-helper :pretext="onlineuser"/>
<!-- <my-helper :pretext="onlineuser"/> -->
<v-list-item v-for="x in onlineuser"
:key="x"
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
+1 -1
View File
@@ -18,7 +18,7 @@ class roundExcel():
pass
def excround(self):
print(self.df )
print(self.df, 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq')
self.df['tabel'] = self.df['login'].str.split('-', expand = True)[1]+self.df['login'].str.split('-', expand = True)[2]
file_path = 'media/DailyRoundUp.xlsx'
thins = Side(border_style="thin")
+5 -4
View File
@@ -46,10 +46,11 @@ class DailyRoundUpAPIView(APIView):
re = roundExcel(user)
if request.GET.get("excel") == 'round':
file_path = re.excround()
if request.GET.get("excel") == 'vacation':
file_path = re.excelvacation()
file_path = getattr(re, request.GET.get("excel"))()
# if request.GET.get("excel") == 'round':
# file_path = re.excround()
# if request.GET.get("excel") == 'vacation':
# file_path = re.excelvacation()
Binary file not shown.