This commit is contained in:
iriska-gri committed 2023-10-31 13:54:13 +03:00
1 parent 3e697a37f2
commit bb500d4f03
10 files changed
+206 -31

No files matched your search

+84 -16
View File
@@ -75,14 +75,70 @@
</v-card-text>
</v-card>
<!-- </v-img> -->
<!-- </v-img> :image="imageLenta" :prepend-avatar="imageLenta" -->
</v-card>
</v-col>
<v-divider/>
</v-row>
</v-card>
<v-card v-else class="h-100 d-flex justify-center bgWithoutNum">
<p class="align-self-center text-h5 text-center">Данные по сотрудникам не загружены</p>
<v-card
v-else class="h-100 d-flex justify-center"
:image="imageLenta"
>
<p class="align-self-center text-h5 text-center">
<v-row justify="center">
<v-dialog
v-model="dialoground"
persistent
width="1024"
>
<template v-slot:activator="{ props }">
<v-btn
color="primary"
v-bind="props"
>
Open Dialog
</v-btn>
</template>
<v-card>
<v-card-title>
<span class="text-h5">Загрузить файл</span>
</v-card-title>
<v-card-text>
<v-container>
<load-round/>
</v-container>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="blue-darken-1"
variant="text"
@click="dialoground = false"
>
Close
</v-btn>
<v-btn
color="blue-darken-1"
variant="text"
@click="dialoground = false"
>
Save
</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-col>
</v-row>
@@ -107,7 +163,7 @@
</v-btn>
</v-col>
</v-row>
<my-helper :pretext="t_daily.length"/>
</v-card>
</v-col>
</v-row>
@@ -160,7 +216,7 @@
<v-card-title class="fixed-bar bg-white">
<v-toolbar class="bg-teal-lighten-2 ">
<!-- <my-helper :pretext="t_dailyRound"/> -->
<v-row class="ma-0">
<v-col class="pa-3 align-self-center">
<v-toolbar-title>{{t_dailyRound.position}}</v-toolbar-title>
@@ -231,7 +287,7 @@
</template>
<script>
import { ref, onMounted,watch } from 'vue'
import { ref, onMounted,watch, computed } from 'vue'
import {useAppStore} from '@/store/app'
import {useAccountStore} from '@/store/AccountStore'
import {pagecounter} from '@/utils/universal_functions'
@@ -242,8 +298,9 @@
import CalendarFull from '@/components/UI/Calendar-full.vue'
import NewsListHome from '@/components/news-list-home.vue'
import { spravURL } from '@/utils/axios-api'
import {checkremote} from '@/utils/universal_functions'
import CardUsers from '@/components/cardUsers.vue'
import {checkremote, bgimage} from '@/utils/universal_functions'
import CardUsers from '@/components/cardUsers.vue'
import LoadRound from '@/components/load-round.vue'
export default {
components: {
@@ -252,7 +309,8 @@ import CardUsers from '@/components/cardUsers.vue'
CarouselNumbers,
CalendarFull,
NewsListHome,
CardUsers
CardUsers,
LoadRound
},
setup(){
@@ -264,6 +322,7 @@ import CardUsers from '@/components/cardUsers.vue'
const idpos = ref('')
const menuGetUserDialog = ref(false)
const iduser = ref('')
const dialoground = ref(false)
@@ -309,11 +368,15 @@ import CardUsers from '@/components/cardUsers.vue'
}
function dailyfun(){
axiosApiInstance.get('api/general_vacation/dailyload/')
// if (t_daily.value.length>0){
axiosApiInstance.get('api/general_vacation/dailyload/')
.then(data => {
// console.log();
t_daily.value = data.data.daily
})
// }
}
const detailRound = (pos) => {
@@ -331,6 +394,10 @@ import CardUsers from '@/components/cardUsers.vue'
iduser.value = idus
}
const imageLenta=computed(()=> {
return new URL(`/src/assets/bg-for-number-carousel.png`, import.meta.url).href;
})
return {
accountStore,
model,
@@ -341,11 +408,15 @@ import CardUsers from '@/components/cardUsers.vue'
detailRound,
dialogDetailRound,
checkremote,
bgimage,
spravURL,
searchname,
menuGetUserDialog,
getcard,
iduser
iduser,
imageLenta,
dialoground
}
}
}
@@ -374,10 +445,7 @@ import CardUsers from '@/components/cardUsers.vue'
overflow: auto;
}
.bgWithoutNum {
background: url("/src/assets/bg-for-number-carousel.png");
opacity: 0.7;
}
.fixed-bar {
position: sticky;