dd
This commit is contained in:
1 parent
0f9a724e2a
commit
b93516cb16
6 files changed
+99
-175
No files matched your search
@@ -2,6 +2,7 @@ import jwt
|
||||
import requests
|
||||
import json
|
||||
from django.conf import settings
|
||||
from portal.settings import myDEBUG
|
||||
from django.forms.models import model_to_dict
|
||||
from rest_framework import authentication, exceptions
|
||||
from datetime import datetime
|
||||
@@ -9,10 +10,9 @@ from .models import User
|
||||
from userauth.models import *
|
||||
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
|
||||
from rest_framework_simplejwt.views import TokenObtainPairView
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
User = get_user_model()
|
||||
myDEBUG=True
|
||||
|
||||
|
||||
# class Authexception(Exception):
|
||||
# def __init__(self, *args):
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
hello
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -49,6 +49,8 @@
|
||||
</v-dialog>
|
||||
|
||||
|
||||
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
|
||||
@@ -7,187 +7,91 @@
|
||||
<Carousel-list/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- <v-row>
|
||||
<v-col class="pt-1 pr-0 pb-0 flex-col">
|
||||
<Calendar-full
|
||||
:initial="'listYear'"
|
||||
:head=true
|
||||
|
||||
/>
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
|
||||
<v-row>
|
||||
<v-col class="pr-0 pt-0 flex-column">
|
||||
<v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
|
||||
<v-row class="d-flex">
|
||||
<v-col> <Calendar-full
|
||||
/></v-col>
|
||||
<v-col> <Calendar-full
|
||||
:initial="'listYear'"
|
||||
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- {{appStore.countvisitor}} -->
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
<!-- </v-locale-provider> -->
|
||||
<!-- </v-col> -->
|
||||
<!-- <v-col>
|
||||
<v-btn
|
||||
@click="proba">
|
||||
Button
|
||||
</v-btn>
|
||||
{{appStore.countvisitor.totalvisit}}
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
|
||||
</v-col>
|
||||
<v-col class="flex-column d-flex flex-grow-0 px-0" lg="2">
|
||||
<v-row class="flex-grow-1 ma-0 mx-1">
|
||||
<v-col class="pt-0">
|
||||
|
||||
<v-card v-if="t_daily.length > 0" class="h-100 flex-column" >
|
||||
|
||||
<v-row v-for="x in t_daily" :key="x" v-show="x.position!=6">
|
||||
|
||||
<v-col >
|
||||
<v-card
|
||||
|
||||
class="ma-2 d-flex flex-column"
|
||||
height="100"
|
||||
|
||||
elevation="0"
|
||||
|
||||
>
|
||||
|
||||
<v-card class="h-100 text-center g text-black_grey bg-black_and_white">
|
||||
<v-card-title class="statstyle py-0 text-overline font-weight-bold bg-black_and_white">
|
||||
{{x.position__name}}
|
||||
</v-card-title>
|
||||
<v-card-text @click="detailRound(x.position)" class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='Number(x.user__count)' :duration='2'/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<!-- </v-img> :image="imageLenta" :prepend-avatar="imageLenta" -->
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<!-- :image="imageLenta" -->
|
||||
<v-card
|
||||
v-else class="h-100 d-flex justify-center "
|
||||
|
||||
|
||||
>
|
||||
<v-card-text class="align-self-center flex-column mt-8">
|
||||
<v-row>
|
||||
<v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
|
||||
<v-row class="d-flex">
|
||||
<v-col>
|
||||
<v-file-input
|
||||
v-bind="props"
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
hide-details
|
||||
<Calendar-full/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<Calendar-full
|
||||
:initial="'listYear'"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn
|
||||
icon="mdi-google-play"
|
||||
size="x-large"
|
||||
variant="text"
|
||||
color="teal-darken-4"
|
||||
:disabled="dailyfiles==0?true:false"
|
||||
@click="onPickFile"
|
||||
/>
|
||||
|
||||
<!-- <v-icon
|
||||
icon="mdi-download"
|
||||
|
||||
color="teal-darken-4"
|
||||
/> -->
|
||||
<!-- <v-btn
|
||||
append-icon="mdi-note-plus"
|
||||
size="small"
|
||||
color="teal-darken-4"
|
||||
variant="text"
|
||||
v-bind="props"
|
||||
>
|
||||
Загрузить
|
||||
</v-btn> -->
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col class="flex-column d-flex flex-grow-0 px-0" lg="2">
|
||||
<v-row class="flex-grow-1 ma-0 mx-1">
|
||||
<v-col class="pt-0">
|
||||
<!-- <digital-letna/> -->
|
||||
<v-card v-if="t_daily.length > 0" class="h-100 flex-column" >
|
||||
<v-row v-for="x in t_daily" :key="x" v-show="x.position!=6">
|
||||
<v-col>
|
||||
<v-card
|
||||
class="ma-2 d-flex flex-column"
|
||||
height="100"
|
||||
elevation="0"
|
||||
>
|
||||
<v-card class="h-100 text-center text-black_grey bg-black_and_white">
|
||||
<v-card-title class="statstyle py-0 text-overline font-weight-bold bg-black_and_white">
|
||||
{{x.position__name}}
|
||||
</v-card-title>
|
||||
<v-card-text
|
||||
@click="detailRound(x.position)"
|
||||
class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"
|
||||
>
|
||||
<vue3-autocounter
|
||||
ref='counter'
|
||||
:startAmount='0'
|
||||
:endAmount='Number(x.user__count)'
|
||||
:duration='2'
|
||||
/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-card-text>
|
||||
|
||||
<!-- <p class="align-self-center text-h5 "> -->
|
||||
<!-- <v-row justify="center"> -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <v-dialog
|
||||
v-model="dialoground"
|
||||
persistent
|
||||
width="500"
|
||||
>
|
||||
<template v-slot:activator="{ props }"> -->
|
||||
|
||||
<!-- <v-btn
|
||||
append-icon="mdi-note-plus"
|
||||
size="large"
|
||||
color="teal-darken-4"
|
||||
variant="text"
|
||||
v-bind="props"
|
||||
>
|
||||
Загрузить
|
||||
</v-btn> -->
|
||||
|
||||
<!-- </template> -->
|
||||
<!-- <v-card>
|
||||
<v-card-title>
|
||||
<span class="text-h5">Загрузить файл</span>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
|
||||
<load-round/>
|
||||
|
||||
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="dialoground = false"
|
||||
</v-card>
|
||||
<v-card
|
||||
v-else class="h-100 d-flex justify-center "
|
||||
>
|
||||
Закрыть
|
||||
</v-btn>
|
||||
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog> -->
|
||||
<v-card-text class="align-self-center flex-column mt-8">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-file-input
|
||||
v-bind="props"
|
||||
accept=".xlsx"
|
||||
v-model="dailyfiles"
|
||||
variant="underlined"
|
||||
density="compact"
|
||||
label="Выберите файл"
|
||||
hide-details
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn
|
||||
icon="mdi-google-play"
|
||||
size="x-large"
|
||||
variant="text"
|
||||
color="teal-darken-4"
|
||||
:disabled="dailyfiles==0?true:false"
|
||||
@click="onPickFile"
|
||||
/>
|
||||
|
||||
|
||||
<!-- </v-row> -->
|
||||
<!-- Данные по сотрудникам не загружены -->
|
||||
<!-- <v-btn icon="mdi-calendar" size="x-large"></v-btn> -->
|
||||
<!-- </p> -->
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="flex-grow-0 ma-0 mx-1">
|
||||
<v-col class="py-0">
|
||||
<v-card class="h-100 flex-colmn"
|
||||
@@ -360,6 +264,8 @@
|
||||
import {checkremote, bgimage} from '@/utils/universal_functions'
|
||||
import CardUsers from '@/components/cardUsers.vue'
|
||||
import LoadRound from '@/components/load-round.vue'
|
||||
import DigitalLetna from '@/components/digital-letna.vue'
|
||||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
@@ -369,7 +275,8 @@
|
||||
CalendarFull,
|
||||
NewsListHome,
|
||||
CardUsers,
|
||||
LoadRound
|
||||
LoadRound,
|
||||
DigitalLetna
|
||||
},
|
||||
|
||||
setup(){
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user