dd
This commit is contained in:
1 parent
8753e5cc27
commit
8cf0239315
6 files changed
+40
-116
No files matched your search
@@ -2,6 +2,7 @@ import jwt
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from portal.settings import myDEBUG
|
||||||
from django.forms.models import model_to_dict
|
from django.forms.models import model_to_dict
|
||||||
from rest_framework import authentication, exceptions
|
from rest_framework import authentication, exceptions
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@@ -9,10 +10,9 @@ from .models import User
|
|||||||
from userauth.models import *
|
from userauth.models import *
|
||||||
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
|
from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
|
||||||
from rest_framework_simplejwt.views import TokenObtainPairView
|
from rest_framework_simplejwt.views import TokenObtainPairView
|
||||||
|
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
User = get_user_model()
|
User = get_user_model()
|
||||||
myDEBUG=True
|
|
||||||
|
|
||||||
# class Authexception(Exception):
|
# class Authexception(Exception):
|
||||||
# def __init__(self, *args):
|
# 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-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
|||||||
@@ -7,85 +7,59 @@
|
|||||||
<Carousel-list/>
|
<Carousel-list/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</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-row>
|
||||||
<v-col class="pr-0 pt-0 flex-column">
|
<v-col class="pr-0 pt-0 flex-column">
|
||||||
<v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
|
<v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
|
||||||
<v-row class="d-flex">
|
<v-row class="d-flex">
|
||||||
<v-col> <Calendar-full
|
<v-col>
|
||||||
/></v-col>
|
<Calendar-full/>
|
||||||
<v-col> <Calendar-full
|
</v-col>
|
||||||
|
<v-col>
|
||||||
|
<Calendar-full
|
||||||
:initial="'listYear'"
|
:initial="'listYear'"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- {{appStore.countvisitor}} -->
|
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- </v-locale-provider> -->
|
|
||||||
<!-- </v-col> -->
|
|
||||||
<!-- <v-col>
|
|
||||||
<v-btn
|
|
||||||
@click="proba">
|
|
||||||
Button
|
|
||||||
</v-btn>
|
|
||||||
{{appStore.countvisitor.totalvisit}}
|
|
||||||
</v-col> -->
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="flex-column d-flex flex-grow-0 px-0" lg="2">
|
<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-row class="flex-grow-1 ma-0 mx-1">
|
||||||
<v-col class="pt-0">
|
<v-col class="pt-0">
|
||||||
|
<!-- <digital-letna/> -->
|
||||||
<v-card v-if="t_daily.length > 0" class="h-100 flex-column" >
|
<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-row v-for="x in t_daily" :key="x" v-show="x.position!=6">
|
||||||
|
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-card
|
<v-card
|
||||||
|
|
||||||
class="ma-2 d-flex flex-column"
|
class="ma-2 d-flex flex-column"
|
||||||
height="100"
|
height="100"
|
||||||
|
|
||||||
elevation="0"
|
elevation="0"
|
||||||
|
|
||||||
>
|
>
|
||||||
|
<v-card class="h-100 text-center text-black_grey bg-black_and_white">
|
||||||
<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">
|
<v-card-title class="statstyle py-0 text-overline font-weight-bold bg-black_and_white">
|
||||||
{{x.position__name}}
|
{{x.position__name}}
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text @click="detailRound(x.position)" class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white">
|
<v-card-text
|
||||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='Number(x.user__count)' :duration='2'/>
|
@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-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<!-- </v-img> :image="imageLenta" :prepend-avatar="imageLenta" -->
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-divider/>
|
<v-divider/>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
<!-- :image="imageLenta" -->
|
|
||||||
<v-card
|
<v-card
|
||||||
v-else class="h-100 d-flex justify-center "
|
v-else class="h-100 d-flex justify-center "
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<v-card-text class="align-self-center flex-column mt-8">
|
<v-card-text class="align-self-center flex-column mt-8">
|
||||||
<v-row>
|
<v-row>
|
||||||
@@ -112,79 +86,9 @@
|
|||||||
@click="onPickFile"
|
@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-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
</v-card-text>
|
</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-btn>
|
|
||||||
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card>
|
|
||||||
</v-dialog> -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- </v-row> -->
|
|
||||||
<!-- Данные по сотрудникам не загружены -->
|
|
||||||
<!-- <v-btn icon="mdi-calendar" size="x-large"></v-btn> -->
|
|
||||||
<!-- </p> -->
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -360,6 +264,8 @@
|
|||||||
import {checkremote, bgimage} from '@/utils/universal_functions'
|
import {checkremote, bgimage} from '@/utils/universal_functions'
|
||||||
import CardUsers from '@/components/cardUsers.vue'
|
import CardUsers from '@/components/cardUsers.vue'
|
||||||
import LoadRound from '@/components/load-round.vue'
|
import LoadRound from '@/components/load-round.vue'
|
||||||
|
import DigitalLetna from '@/components/digital-letna.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
@@ -369,7 +275,8 @@
|
|||||||
CalendarFull,
|
CalendarFull,
|
||||||
NewsListHome,
|
NewsListHome,
|
||||||
CardUsers,
|
CardUsers,
|
||||||
LoadRound
|
LoadRound,
|
||||||
|
DigitalLetna
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user