hh
This commit is contained in:
1 parent
6ae52dc583
commit
26e5b08e2e
1043 files changed
+1671
No files matched your search
@@ -0,0 +1,359 @@
|
||||
<template>
|
||||
<v-container fluid class="d-flex mx-0">
|
||||
<v-row>
|
||||
<v-col class="d-flex flex-column" lg=7>
|
||||
<v-row class="flex-grow-0">
|
||||
<v-col class="pr-0 pb-0">
|
||||
<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-numeral bg-back_number_carousel">
|
||||
<v-card-title class="statstyle py-0 text-overline font-weight-bold bg-back_number_carousel">
|
||||
{{x.position__name}}
|
||||
</v-card-title>
|
||||
<v-card-text @click="detailRound(x.position)" class="numstyle mt-2 py-0 font-weight-bold pointer bg-back_number_carousel">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='Number(x.user__count)' :duration='2'/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<!-- </v-img> -->
|
||||
</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-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"
|
||||
>
|
||||
<v-row class="ma-3">
|
||||
<v-col
|
||||
v-for="x in 6"
|
||||
:key="x"
|
||||
lg=6
|
||||
class="pa-1"
|
||||
>
|
||||
<v-btn
|
||||
prepend-icon="mdi-wikipedia"
|
||||
block
|
||||
variant="outlined"
|
||||
class="ma-1"
|
||||
>
|
||||
Wiki
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-col>
|
||||
<v-col class="d-flex flex-column pl-0 justify-space-between" lg=3>
|
||||
<v-card
|
||||
class="h-100 bg-transparent flex-column d-flex "
|
||||
elevation="1"
|
||||
>
|
||||
<v-row>
|
||||
<v-col cols="auto" class="pa-0">
|
||||
<v-card height="93vh" class="overflow-auto ">
|
||||
<News-list-home />
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- <div class="flex-grow-1 flex-column bg-red overflow-auto"> -->
|
||||
<!-- <News-list-home/> -->
|
||||
<!-- </div> -->
|
||||
<!-- <News-list v-if="accountStore.cod2user"/> -->
|
||||
|
||||
|
||||
|
||||
</v-card>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<div class="text-center">
|
||||
|
||||
<v-dialog
|
||||
v-model="dialogDetailRound"
|
||||
width="500"
|
||||
>
|
||||
<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-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>
|
||||
</v-col>
|
||||
<v-col lg=7 class="pa-0"> <v-textarea
|
||||
v-model="searchname"
|
||||
append-inner-icon="mdi-magnify"
|
||||
hide-details
|
||||
class="mx-2"
|
||||
label="Поиск"
|
||||
rows="1"
|
||||
></v-textarea></v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <v-btn variant="text" icon="mdi-magnify"></v-btn> -->
|
||||
</v-toolbar>
|
||||
|
||||
</v-card-title>
|
||||
{{ searchname}}
|
||||
|
||||
|
||||
<div
|
||||
v-for="(x, key) in t_dailyRound.daily"
|
||||
:key="key"
|
||||
class="px-3" >
|
||||
|
||||
<v-list>
|
||||
<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"
|
||||
>
|
||||
|
||||
</v-card>
|
||||
<!-- @click="getcard" -->
|
||||
</div>
|
||||
|
||||
</v-card>
|
||||
</v-card>
|
||||
|
||||
|
||||
|
||||
</v-dialog>
|
||||
</div>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, onMounted,watch } from 'vue'
|
||||
import {useAppStore} from '@/store/app'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
import NewsList from '@/components/news-list.vue'
|
||||
import CarouselList from '@/components/carousel-list.vue'
|
||||
import CarouselNumbers from '@/components/carousel-numbers.vue'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
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'
|
||||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
NewsList,
|
||||
CarouselList,
|
||||
CarouselNumbers,
|
||||
CalendarFull,
|
||||
NewsListHome
|
||||
},
|
||||
|
||||
setup(){
|
||||
const t_baseCriteria = ref([])
|
||||
const t_daily = ref('')
|
||||
const t_dailyRound = ref('')
|
||||
const dialogDetailRound = ref(false)
|
||||
const searchname = ref('')
|
||||
const idpos = ref('')
|
||||
|
||||
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
proba(),
|
||||
dailyfun()
|
||||
})
|
||||
|
||||
const appStore = useAppStore()
|
||||
pagecounter()
|
||||
const model= null
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
watch(()=> searchname.value,(newValue,oldValue)=>{
|
||||
if(newValue){
|
||||
axiosApiInstance.get(`api/general_vacation/dailyload/?id=${idpos.value}&searchname=${newValue}`)
|
||||
.then(data => {
|
||||
console.log(newValue);
|
||||
// t_daily.value = data.data.daily
|
||||
})
|
||||
}
|
||||
}, {deep:true})
|
||||
|
||||
|
||||
function proba(){
|
||||
axiosApiInstance.get('api/feedback/feedbackdata/')
|
||||
.then(data => {
|
||||
t_baseCriteria.value = data.data.results
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
function dailyfun(){
|
||||
axiosApiInstance.get('api/general_vacation/dailyload/')
|
||||
.then(data => {
|
||||
// console.log();
|
||||
t_daily.value = data.data.daily
|
||||
})
|
||||
}
|
||||
|
||||
const detailRound = (pos) => {
|
||||
idpos.value=pos
|
||||
dialogDetailRound.value=!dialogDetailRound.value
|
||||
axiosApiInstance.get(`api/general_vacation/dailyload/?id=${pos}`)
|
||||
.then(data => {
|
||||
|
||||
t_dailyRound.value = data.data
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
return {
|
||||
accountStore,
|
||||
model,
|
||||
appStore,
|
||||
proba,
|
||||
t_daily,
|
||||
t_dailyRound,
|
||||
detailRound,
|
||||
dialogDetailRound,
|
||||
checkremote,
|
||||
spravURL,
|
||||
searchname
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
.v-picker-title, .v-picker__header, .v-picker__actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pik {
|
||||
height: 97%;
|
||||
}
|
||||
|
||||
.hicard {
|
||||
height: 40%!important;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.fg {
|
||||
height: 240px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.bgWithoutNum {
|
||||
background: url("/src/assets/bg-for-number-carousel.png");
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.fixed-bar {
|
||||
position: sticky;
|
||||
position: -webkit-sticky; /* for Safari */
|
||||
top: 0em;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user