ДО ОТПУСКОВ
This commit is contained in:
1 parent
8574c69532
commit
d57a1e2258
8 files changed
+64
-171
No files matched your search
Binary file not shown.
@@ -39,7 +39,8 @@
|
|||||||
|
|
||||||
<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 @click="selectedDate =new Date()" 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>
|
||||||
|
|
||||||
@@ -117,13 +118,7 @@ export default {
|
|||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const events = ref([
|
const events = ref([
|
||||||
// {
|
|
||||||
// start: '2023-11-15',
|
|
||||||
// end: '2023-11-21',
|
|
||||||
// title: 'Need to go shopping',
|
|
||||||
// content: '<i class="icon material-icons">shopping_cart</i>',
|
|
||||||
// class: 'leisure'
|
|
||||||
// },
|
|
||||||
])
|
])
|
||||||
function f_generalvacation() {
|
function f_generalvacation() {
|
||||||
axiosApiInstance.get('api/general_vacation/generalvacation/')
|
axiosApiInstance.get('api/general_vacation/generalvacation/')
|
||||||
@@ -150,6 +145,7 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
f_generalvacation()
|
f_generalvacation()
|
||||||
})
|
})
|
||||||
@@ -160,6 +156,8 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return { events, selectedDate, f_generalvacation }
|
return { events, selectedDate, f_generalvacation }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,6 +232,11 @@ border-top-right-radius: 3px;
|
|||||||
background: #c2e9d78c;
|
background: #c2e9d78c;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.vuecal__cell-content {
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vuecal__body {
|
.vuecal__body {
|
||||||
|
|||||||
@@ -83,13 +83,13 @@
|
|||||||
|
|
||||||
<v-window-item class="overflow-y-auto highttext" value="two">
|
<v-window-item class="overflow-y-auto highttext" value="two">
|
||||||
<!-- Вариант 1 -->
|
<!-- Вариант 1 -->
|
||||||
<!-- <v-list-item
|
<v-list-item
|
||||||
class="pa-3"
|
class="pa-3"
|
||||||
v-for = "(respos, key) in userlinks.responsibility"
|
v-for = "(respos, key) in userlinks.responsibility"
|
||||||
:key="key">
|
:key="key">
|
||||||
{{ respos.sphere_of_responsibility }}
|
{{ respos.sphere_of_responsibility }}
|
||||||
<v-divider class="border-opacity-50" color="teal-darken-1"></v-divider>
|
<v-divider class="border-opacity-50" color="teal-darken-1"></v-divider>
|
||||||
</v-list-item> -->
|
</v-list-item>
|
||||||
|
|
||||||
<!-- Вариант 2 -->
|
<!-- Вариант 2 -->
|
||||||
<!-- <v-expansion-panels variant="accordion">
|
<!-- <v-expansion-panels variant="accordion">
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
>
|
>
|
||||||
Закрыть
|
Закрыть
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<my-helper :pretext="userlinks"/>
|
<!-- <my-helper :pretext="userlinks"/> -->
|
||||||
|
|
||||||
|
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
eager
|
eager
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- <my-helper :pretext="x"/> -->
|
|
||||||
|
|
||||||
<v-container
|
<v-container
|
||||||
fill-height
|
fill-height
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { baseURL } from '@/utils/axios-api'
|
import { baseURL } from '@/utils/axios-api'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,7 @@
|
|||||||
v-if="t_daily.length > 0"
|
v-if="t_daily.length > 0"
|
||||||
class="h-100 w-100 d-flex flex-column"
|
class="h-100 w-100 d-flex flex-column"
|
||||||
>
|
>
|
||||||
<!-- <v-row class="h-0">
|
|
||||||
<v-col>
|
|
||||||
<v-switch
|
|
||||||
class="pl-1"
|
|
||||||
color="primary"
|
|
||||||
:model-value="true">
|
|
||||||
</v-switch>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
</v-row> -->
|
|
||||||
<v-row
|
<v-row
|
||||||
v-for="x in t_daily"
|
v-for="x in t_daily"
|
||||||
:key="x"
|
:key="x"
|
||||||
@@ -49,20 +40,30 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
<v-card
|
<v-card
|
||||||
v-else class="h-100 w-100 d-flex justify-center "
|
v-else class="h-100 w-100 d-flex justify-center flex-column"
|
||||||
>
|
>
|
||||||
<v-card-text v-if="!changeData" class="flex-column">
|
|
||||||
|
|
||||||
<v-row>
|
<v-img
|
||||||
<v-switch
|
:src="`${burl}/media/newsimage/2023/09/28/sea.jpg`"
|
||||||
|
gradient="to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)"
|
||||||
|
height="200px"
|
||||||
|
cover
|
||||||
|
>
|
||||||
|
<v-row class="flex-grow-0">
|
||||||
|
<v-col class="py-0">
|
||||||
|
<v-switch
|
||||||
v-model="changeData"
|
v-model="changeData"
|
||||||
class="pl-3 d-flex justify-end mt-3"
|
class="pl-3 d-flex justify-end"
|
||||||
color="teal"
|
color="teal"
|
||||||
@click="changeData=!changeData">
|
@click="changeData=!changeData">
|
||||||
</v-switch>
|
</v-switch>
|
||||||
</v-row>
|
</v-col>
|
||||||
<v-row>
|
</v-row>
|
||||||
<v-col>
|
<v-row >
|
||||||
|
<v-col class="fiction flex-column d-flex align-self-center">
|
||||||
|
<v-card-text class="flex-column align-self-center " v-if="changeData">
|
||||||
|
<v-row>
|
||||||
|
<v-col class="pr-0 pl-5">
|
||||||
<v-file-input
|
<v-file-input
|
||||||
|
|
||||||
accept=".xlsx"
|
accept=".xlsx"
|
||||||
@@ -71,10 +72,10 @@
|
|||||||
density="compact"
|
density="compact"
|
||||||
label="Выберите файл"
|
label="Выберите файл"
|
||||||
hide-details
|
hide-details
|
||||||
|
class="pt-2"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
|
||||||
<v-row>
|
|
||||||
<v-col class="text-center">
|
<v-col class="text-center">
|
||||||
<v-btn
|
<v-btn
|
||||||
icon="mdi-google-play"
|
icon="mdi-google-play"
|
||||||
@@ -87,21 +88,18 @@
|
|||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
<v-card-text v-else>
|
||||||
|
|
||||||
|
<v-row class="text-h5 text-white text-center h-75" align-content="center">Данные не загружены </v-row>
|
||||||
|
|
||||||
|
</v-card-text>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-img>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<v-card-text v-else>
|
|
||||||
<v-row class="flex-grow-0 ">
|
|
||||||
<v-col class="pa-0 d-flex flex-column justify-center">
|
|
||||||
<v-switch
|
|
||||||
v-model="changeData"
|
|
||||||
class="pl-3 d-flex justify-end mt-3"
|
|
||||||
color="teal"
|
|
||||||
@click="changeData=!changeData">
|
|
||||||
</v-switch>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
<v-row class="text-h5 text-center h-75" align-content="center">Данные не загружены</v-row>
|
|
||||||
</v-card-text>
|
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
@@ -115,96 +113,11 @@
|
|||||||
:namepos=namepos
|
:namepos=namepos
|
||||||
@searchClose="dialogDetailRound=!dialogDetailRound"
|
@searchClose="dialogDetailRound=!dialogDetailRound"
|
||||||
/>
|
/>
|
||||||
<!-- <v-card class="bg-white pa-3 px-0" width="550"
|
|
||||||
height="600">
|
|
||||||
|
|
||||||
<v-card
|
|
||||||
class="mx-auto overflow-auto mx-0 px-3"
|
|
||||||
width="550"
|
|
||||||
height="600"
|
|
||||||
flat
|
|
||||||
>
|
|
||||||
|
|
||||||
<v-card-title class="fixed-bar bg-white">
|
|
||||||
|
|
||||||
<v-row class="bggrad">
|
|
||||||
<v-col class="text-center text-black_and_white">
|
|
||||||
{{t_dailyRound.position}}
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
<v-row>
|
|
||||||
<v-col class="pa-0 mb-3">
|
|
||||||
|
|
||||||
<v-textarea
|
|
||||||
v-model="searchname"
|
|
||||||
clearable
|
|
||||||
prepend-inner-icon="mdi-magnify"
|
|
||||||
hide-details
|
|
||||||
class="mx-0"
|
|
||||||
label="Поиск"
|
|
||||||
rows="1"
|
|
||||||
no-resize
|
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
|
|
||||||
|
|
||||||
</v-card-title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div
|
|
||||||
v-for="(x, key) in result"
|
|
||||||
:key="key"
|
|
||||||
class="px-3" >
|
|
||||||
|
|
||||||
<v-list class="py-0">
|
|
||||||
<v-list-subheader>{{key}} </v-list-subheader>
|
|
||||||
</v-list>
|
|
||||||
|
|
||||||
<v-card
|
|
||||||
v-for="item in x"
|
|
||||||
:key="item"
|
|
||||||
|
|
||||||
class="bg-transparent"
|
|
||||||
density="compact"
|
|
||||||
:prepend-avatar="checkremote(`${spravURL}${item.login}.jpg`)"
|
|
||||||
:title="item.fio"
|
|
||||||
:subtitle="item.post"
|
|
||||||
variant="text"
|
|
||||||
@click="getcard(item.login)"
|
|
||||||
>
|
|
||||||
|
|
||||||
</v-card>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</v-card>
|
|
||||||
<v-divider/>
|
|
||||||
<v-card-actions class="align-self-end pb-0">
|
|
||||||
<v-btn
|
|
||||||
color="more_details_btn"
|
|
||||||
variant="text"
|
|
||||||
@click="dialogDetailRound=!dialogDetailRound"
|
|
||||||
|
|
||||||
>
|
|
||||||
Закрыть
|
|
||||||
</v-btn>
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card> -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
<!-- <v-dialog
|
|
||||||
v-model="menuGetUserDialog"
|
|
||||||
persistent width="800">
|
|
||||||
|
|
||||||
<Card-users
|
|
||||||
:menuGetUserDialog="menuGetUserDialog"
|
|
||||||
:loging="iduser"
|
|
||||||
@menusClose="menuGetUserDialog = false" />
|
|
||||||
</v-dialog> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -215,11 +128,11 @@ class="px-3" >
|
|||||||
<script>
|
<script>
|
||||||
import { ref, onMounted,watch } from 'vue'
|
import { ref, onMounted,watch } from 'vue'
|
||||||
import { axiosApiInstance } from '@/utils/axios-api'
|
import { axiosApiInstance } from '@/utils/axios-api'
|
||||||
import {checkremote} from '@/utils/universal_functions'
|
import {checkremote, bgimage} from '@/utils/universal_functions'
|
||||||
import { spravURL } from '@/utils/axios-api'
|
import { spravURL } from '@/utils/axios-api'
|
||||||
import CardUsers from '@/components/cardUsers.vue'
|
import CardUsers from '@/components/cardUsers.vue'
|
||||||
import DialogSearch from './dialog-search.vue'
|
import DialogSearch from './dialog-search.vue'
|
||||||
|
import { baseURL } from '@/utils/axios-api'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
@@ -260,6 +173,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const burl = baseURL.slice(0,-1)
|
||||||
|
|
||||||
function proba(){
|
function proba(){
|
||||||
axiosApiInstance.get('api/feedback/feedbackdata/')
|
axiosApiInstance.get('api/feedback/feedbackdata/')
|
||||||
.then(data => {
|
.then(data => {
|
||||||
@@ -285,39 +200,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
bgimage()
|
||||||
// const filterItems = (query) => {
|
|
||||||
// console.log(t_dailyRound.value['daily'], '----------t_dailyRound.value');
|
|
||||||
|
|
||||||
|
|
||||||
// result.value={}
|
|
||||||
// Object.keys(t_dailyRound.value['daily']).map(el1 => {
|
|
||||||
// let myarr = t_dailyRound.value['daily'][el1].filter((el) =>el.fio.toLowerCase().includes(query.toLowerCase()))
|
|
||||||
|
|
||||||
// if(myarr.length>0)
|
|
||||||
// {
|
|
||||||
// result.value[el1] = myarr
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
|
||||||
// )
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// watch(()=> searchname.value,(newValue,oldValue)=>{
|
|
||||||
|
|
||||||
// if(newValue){
|
|
||||||
// filterItems(newValue)
|
|
||||||
|
|
||||||
// }
|
|
||||||
// else {
|
|
||||||
// result.value = JSON.parse(JSON.stringify(t_dailyRound.value['daily']))
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
|
||||||
// }, {deep:true})
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
@@ -341,7 +224,10 @@ export default {
|
|||||||
result,
|
result,
|
||||||
idpos,
|
idpos,
|
||||||
namepos,
|
namepos,
|
||||||
changeData
|
changeData,
|
||||||
|
baseURL,
|
||||||
|
burl
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,5 +235,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.fiction .v-input__control {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -25,9 +25,11 @@ export function getfromserver(path, reactive){
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function bgimage(filecheck){
|
export function bgimage(filecheck){
|
||||||
return new URL(`@assets/bg-for-number-carousel.png`, import.meta.url).href
|
const h = new URL(`@assets/bg-for-number-carousel.png`, import.meta.url).href
|
||||||
|
console.log(h, 'ffffffffffffffffffffffffffffff');
|
||||||
|
return h
|
||||||
}
|
}
|
||||||
|
// bg-for-number-carousel.png
|
||||||
|
|
||||||
export function checkremote(filecheck){
|
export function checkremote(filecheck){
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class CarouselsAPIView(ListAPIView):
|
|||||||
|
|
||||||
allbirthday = {
|
allbirthday = {
|
||||||
"title":'Дни рождения',
|
"title":'Дни рождения',
|
||||||
"text": "в этом месяце:\n"+"\n".join([f"{x.birthdate.strftime('%d')} - {x.fio}" for x in manbrd]),
|
"text": "\n".join([f"{x.birthdate.strftime('%d')} - {x.fio}" for x in manbrd]),
|
||||||
"link": "/media/"+str(brdimage[0].img),
|
"link": "/media/"+str(brdimage[0].img),
|
||||||
"published": 'true',
|
"published": 'true',
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ class CarouselsAPIView(ListAPIView):
|
|||||||
|
|
||||||
birthday.append({
|
birthday.append({
|
||||||
"title":'Поздравляем!',
|
"title":'Поздравляем!',
|
||||||
"text": f"{k.fio} {brdtext[0].text}",
|
"text": f"{k.fio}!"+"\n"+ f"{brdtext[0].text}",
|
||||||
"link": "/media/"+str(brdimage[0].img),
|
"link": "/media/"+str(brdimage[0].img),
|
||||||
"published": 'true',
|
"published": 'true',
|
||||||
"sender": "/media/default/dr.png",
|
"sender": "/media/default/dr.png",
|
||||||
|
|||||||
Reference in new issue
Block a user