Первая заливка
This commit is contained in:
1 parent
5a628c6acd
commit
576b59c076
6 files changed
+14
-17
No files matched your search
@@ -53,15 +53,16 @@
|
|||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
|
<!-- todayButton -->
|
||||||
<v-card class="h-100">
|
<v-card class="h-100">
|
||||||
<vue-cal
|
<vue-cal
|
||||||
locale="ru"
|
locale="ru"
|
||||||
xsmall
|
xsmall
|
||||||
:time="false"
|
:time="false"
|
||||||
hide-view-selector
|
hide-view-selector
|
||||||
todayButton
|
|
||||||
split
|
split
|
||||||
hideTitleBar
|
header-format= "DD"
|
||||||
:events="events"
|
:events="events"
|
||||||
active-view="day"
|
active-view="day"
|
||||||
:disable-views="['years', 'year', 'month', 'week']"
|
: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 }">
|
<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"/>
|
<v-icon v-bind="props" icon="mdi-crosshairs-gps" size="x-small" class="pt-1 pr-3" color="more_details_btn"/>
|
||||||
</template>
|
</template>
|
||||||
</v-tooltip>
|
</v-tooltip> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
class="pt-2"
|
class="pt-2"
|
||||||
icon="mdi-file-excel"
|
icon="mdi-file-excel"
|
||||||
color="green-darken-3"
|
color="green-darken-3"
|
||||||
@click="excelOp('roundfilse')"
|
@click="excelOp('excround')"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -120,15 +120,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// const excelVacation = () => {
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const onPickFile = (ex) => {
|
const onPickFile = (ex) => {
|
||||||
console.log(ex, 'sdata');
|
console.log(ex, 'ssssssssssssssssssssssssssssssssssssssssssssdata');
|
||||||
const sdata = new FormData()
|
const sdata = new FormData()
|
||||||
sdata.append('dailyfiles', dailyfiles.value[0])
|
sdata.append('dailyfiles', dailyfiles.value[0])
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<my-helper :pretext="onlineuser"/>
|
<!-- <my-helper :pretext="onlineuser"/> -->
|
||||||
<v-list-item v-for="x in onlineuser"
|
<v-list-item v-for="x in onlineuser"
|
||||||
:key="x"
|
:key="x"
|
||||||
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
|
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class roundExcel():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def excround(self):
|
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]
|
self.df['tabel'] = self.df['login'].str.split('-', expand = True)[1]+self.df['login'].str.split('-', expand = True)[2]
|
||||||
file_path = 'media/DailyRoundUp.xlsx'
|
file_path = 'media/DailyRoundUp.xlsx'
|
||||||
thins = Side(border_style="thin")
|
thins = Side(border_style="thin")
|
||||||
|
|||||||
@@ -46,10 +46,11 @@ class DailyRoundUpAPIView(APIView):
|
|||||||
|
|
||||||
|
|
||||||
re = roundExcel(user)
|
re = roundExcel(user)
|
||||||
if request.GET.get("excel") == 'round':
|
file_path = getattr(re, request.GET.get("excel"))()
|
||||||
file_path = re.excround()
|
# if request.GET.get("excel") == 'round':
|
||||||
if request.GET.get("excel") == 'vacation':
|
# file_path = re.excround()
|
||||||
file_path = re.excelvacation()
|
# if request.GET.get("excel") == 'vacation':
|
||||||
|
# file_path = re.excelvacation()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user