ДО ОТПУСКОВ

This commit is contained in:
iriska-gri committed 2023-11-20 10:53:31 +03:00
1 parent 8574c69532
commit d57a1e2258
8 files changed
+69 -176

No files matched your search

BIN
View File
Binary file not shown.
+12 -9
View File
@@ -39,7 +39,8 @@
<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"/>
<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>
</v-tooltip>
@@ -117,13 +118,7 @@ export default {
setup() {
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() {
axiosApiInstance.get('api/general_vacation/generalvacation/')
@@ -149,7 +144,8 @@ export default {
})
}
onMounted(() => {
f_generalvacation()
})
@@ -158,6 +154,8 @@ export default {
const selectedDate = ref(null)
return { events, selectedDate, f_generalvacation }
@@ -234,6 +232,11 @@ border-top-right-radius: 3px;
background: #c2e9d78c;
border-radius: 30px;
color: #333;
}
.vuecal__cell-content {
cursor: pointer;
}
.vuecal__body {
+3 -3
View File
@@ -83,13 +83,13 @@
<v-window-item class="overflow-y-auto highttext" value="two">
<!-- Вариант 1 -->
<!-- <v-list-item
<v-list-item
class="pa-3"
v-for = "(respos, key) in userlinks.responsibility"
:key="key">
{{ respos.sphere_of_responsibility }}
<v-divider class="border-opacity-50" color="teal-darken-1"></v-divider>
</v-list-item> -->
</v-list-item>
<!-- Вариант 2 -->
<!-- <v-expansion-panels variant="accordion">
@@ -141,7 +141,7 @@
>
Закрыть
</v-btn>
<my-helper :pretext="userlinks"/>
<!-- <my-helper :pretext="userlinks"/> -->
</v-card-actions>
+1 -2
View File
@@ -22,8 +22,7 @@
cover
eager
>
<!-- <my-helper :pretext="x"/> -->
<v-container
fill-height
@@ -59,6 +59,7 @@
import { ref } from 'vue'
import { baseURL } from '@/utils/axios-api'
export default {
+46 -158
View File
@@ -5,16 +5,7 @@
v-if="t_daily.length > 0"
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-for="x in t_daily"
:key="x"
@@ -49,20 +40,30 @@
</v-row>
</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-switch
<v-img
: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"
class="pl-3 d-flex justify-end mt-3"
class="pl-3 d-flex justify-end"
color="teal"
@click="changeData=!changeData">
</v-switch>
</v-row>
<v-row>
<v-col>
</v-col>
</v-row>
<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
accept=".xlsx"
@@ -71,10 +72,10 @@
density="compact"
label="Выберите файл"
hide-details
class="pt-2"
/>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn
icon="mdi-google-play"
@@ -87,21 +88,18 @@
</v-col>
</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>
<div class="text-center">
@@ -115,96 +113,11 @@
:namepos=namepos
@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-model="menuGetUserDialog"
persistent width="800">
<Card-users
:menuGetUserDialog="menuGetUserDialog"
:loging="iduser"
@menusClose="menuGetUserDialog = false" />
</v-dialog> -->
</div>
@@ -215,11 +128,11 @@ class="px-3" >
<script>
import { ref, onMounted,watch } from 'vue'
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 CardUsers from '@/components/cardUsers.vue'
import DialogSearch from './dialog-search.vue'
import { baseURL } from '@/utils/axios-api'
export default {
components: {
@@ -260,6 +173,8 @@ export default {
})
}
const burl = baseURL.slice(0,-1)
function proba(){
axiosApiInstance.get('api/feedback/feedbackdata/')
.then(data => {
@@ -285,39 +200,7 @@ export default {
})
}
// 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})
bgimage()
onMounted(() => {
@@ -341,7 +224,10 @@ export default {
result,
idpos,
namepos,
changeData
changeData,
baseURL,
burl
}
}
@@ -349,5 +235,7 @@ export default {
</script>
<style>
.fiction .v-input__control {
display: none;
}
</style>
+4 -2
View File
@@ -25,9 +25,11 @@ export function getfromserver(path, reactive){
}
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){
+2 -2
View File
@@ -107,7 +107,7 @@ class CarouselsAPIView(ListAPIView):
allbirthday = {
"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),
"published": 'true',
@@ -124,7 +124,7 @@ class CarouselsAPIView(ListAPIView):
birthday.append({
"title":'Поздравляем!',
"text": f"{k.fio} {brdtext[0].text}",
"text": f"{k.fio}!"+"\n"+ f"{brdtext[0].text}",
"link": "/media/"+str(brdimage[0].img),
"published": 'true',
"sender": "/media/default/dr.png",