w
This commit is contained in:
commit
4716effcf7
309 files changed
+153369
No files matched your search
@@ -0,0 +1,592 @@
|
||||
<template>
|
||||
<v-app>
|
||||
<v-navigation-drawer
|
||||
app
|
||||
stateless
|
||||
v-model="drawer"
|
||||
:mini-variant="mini"
|
||||
width="190"
|
||||
color="main_theme"
|
||||
>
|
||||
<!-- название сайта начало -->
|
||||
|
||||
<namePrograms
|
||||
@minis="minis"
|
||||
:mini="mini"
|
||||
/>
|
||||
<v-divider></v-divider>
|
||||
<navigationPanel
|
||||
:items="items"
|
||||
:mini="mini"
|
||||
:messengerview="messengerview"
|
||||
:messengertotal="messengertotal"
|
||||
@messengervi="messengerview=!messengerview"
|
||||
@collapselist="collapselist"
|
||||
/>
|
||||
|
||||
<!-- название сайта конец -->
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-main class="flex-col NavigationLayot_calendar">
|
||||
|
||||
<!-- Центр сайта и выплывающий ватсуп -->
|
||||
<v-app-bar
|
||||
dense
|
||||
flat
|
||||
class="main_theme flex-grow-0"
|
||||
>
|
||||
|
||||
<v-app-bar
|
||||
dense
|
||||
flat
|
||||
:collapse="calendar"
|
||||
class="main_theme"
|
||||
>
|
||||
<v-col
|
||||
v-if="calendar"
|
||||
class="px-0"
|
||||
>
|
||||
<MyIco
|
||||
class="text-center"
|
||||
icons = 'mdi-calendar'
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
<v-col class="flex-col flex-grow-1 pa-0" v-else>
|
||||
<v-row no-gutters class="primary main_theme ">
|
||||
<v-divider vertical class="divider-calendar-before"></v-divider>
|
||||
<template v-for="(value, i) in dateCalendar" >
|
||||
<month
|
||||
:key="i"
|
||||
:class="{ 'month-calendar': value.month }"
|
||||
:value="value"
|
||||
/>
|
||||
<v-divider v-if="i<dateCalendar.length-1"
|
||||
:key="'div' + i"
|
||||
vertical
|
||||
inset
|
||||
class="divider-calendar"
|
||||
></v-divider>
|
||||
</template>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
<v-divider
|
||||
v-if="!calendar"
|
||||
vertical
|
||||
/>
|
||||
<v-col class="flex-grow-0 px-0">
|
||||
|
||||
<MyIco
|
||||
@click="closeCalenadar"
|
||||
:icons ="calendar?'mdi-chevron-right':'mdi-chevron-left'"
|
||||
/>
|
||||
</v-col>
|
||||
<v-divider vertical/>
|
||||
</v-app-bar>
|
||||
|
||||
<div class="infobar flex-row flex-grow-1 pa-0">
|
||||
|
||||
<v-col class="flex-grow-0 pa-0 px-1 align-self-center">
|
||||
<ToggleTheme class="flex-grow-0"/>
|
||||
</v-col>
|
||||
<v-divider vertical/>
|
||||
<v-col class="flex-grow-1 flex-col">
|
||||
<v-row class="flex-row flex-grow-1 align-self-center">
|
||||
<v-col class="flex-grow-0 py-0">
|
||||
<v-avatar size="45">
|
||||
<img
|
||||
:alt="user.initial"
|
||||
:src="'photo'in user?user.photo:`http://${serverurl}/static/default/avatardef.png`"
|
||||
>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col class="flex-grow-1 flex-col ">
|
||||
<v-row class="flex-col flex-grow-0 ">
|
||||
<v-col class="pa-0"> <span class="initial-user ">{{ user.initial }} </span></v-col>
|
||||
<v-col class="pa-0">
|
||||
|
||||
<span>{{ user.otdel }} </span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
|
||||
<v-divider vertical/>
|
||||
<v-col class="flex-grow-0 px-1 k align-self-center">
|
||||
|
||||
</v-col>
|
||||
|
||||
<v-divider vertical/>
|
||||
<v-col class="flex-grow-0 pa-0 px-1 align-self-center">
|
||||
<MyIco
|
||||
icons = 'mdi-information-outline'
|
||||
size="small"
|
||||
/>
|
||||
</v-col>
|
||||
<v-divider vertical/>
|
||||
<v-col class="flex-grow-0 pa-0 px-1 align-self-center">
|
||||
<MyIco
|
||||
icons = 'mdi-cog-outline'
|
||||
size="small"
|
||||
/>
|
||||
</v-col>
|
||||
<v-divider vertical/>
|
||||
<v-col class="flex-grow-0 pa-0 px-1 align-self-center">
|
||||
<MyIco
|
||||
@click="logout"
|
||||
size="small"
|
||||
icons = 'mdi-logout-variant'
|
||||
/>
|
||||
</v-col>
|
||||
<v-divider vertical class="mr-1"/>
|
||||
</div>
|
||||
<!-- <v-col
|
||||
class="bg8"
|
||||
:xl="calendar?'':'4'"
|
||||
>q</v-col> -->
|
||||
|
||||
<!-- <v-row class="main_theme row-main">
|
||||
<v-app-bar>
|
||||
<template>
|
||||
<v-col
|
||||
class="primary py-0 main_theme"
|
||||
>
|
||||
<v-row no-gutters class="primary main_theme">
|
||||
<v-divider vertical class="divider-calendar-before"></v-divider>
|
||||
<template v-for="(value, i) in dateCalendar" >
|
||||
<month
|
||||
:key="i"
|
||||
:class="{ 'month-calendar': value.month }"
|
||||
:value="value"
|
||||
/>
|
||||
<v-divider v-if="i<dateCalendar.length-1"
|
||||
:key="'div' + i"
|
||||
vertical
|
||||
inset
|
||||
class="divider-calendar"
|
||||
></v-divider>
|
||||
</template>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-col
|
||||
class="main_theme pa-2"
|
||||
|
||||
>
|
||||
<div class="main_theme flex-grow-1 pl-3 d-flex">
|
||||
<v-avatar size="50">
|
||||
<img
|
||||
:alt="user.initial"
|
||||
:src="'photo'in user?user.photo:`http://${serverurl}/static/default/avatardef.png`"
|
||||
>
|
||||
</v-avatar>
|
||||
|
||||
<div class="ps-2 d-flex flex-column">
|
||||
<span class="initial-user k">{{ user.initial }} </span>
|
||||
<span>{{ user.otdel }} </span>
|
||||
|
||||
</div>
|
||||
<ToggleTheme
|
||||
class="flex-grow-0"
|
||||
/>
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
<v-col class="flex-grow-0 flex-col py-0 mr-4 iconsbox align-self-center">
|
||||
<v-icon small color="btns">mdi-information-outline</v-icon>
|
||||
<v-icon small color="btns">mdi-cog-outline</v-icon>
|
||||
<div class="pointer" @click="logout">
|
||||
<v-icon
|
||||
color="btns"
|
||||
small
|
||||
>
|
||||
mdi-logout-variant
|
||||
</v-icon>
|
||||
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
|
||||
|
||||
|
||||
</v-app-bar>
|
||||
<v-container
|
||||
fluid
|
||||
class="flex-grow-1 flex-col pa-0"
|
||||
v-if="loadPage"
|
||||
>
|
||||
<v-slide-x-transition>
|
||||
<v-row
|
||||
v-show="messengerview"
|
||||
style="position:fixed; z-index:50; top:95px; left: 202px;"
|
||||
>
|
||||
<v-col class="nl_whatsup">
|
||||
<messengerMain
|
||||
@totaller="totaller"
|
||||
@closesupogramm="messengerview=false"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-slide-x-transition>
|
||||
<slot />
|
||||
</v-container>
|
||||
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import moment from "moment";
|
||||
import messengerMain from "@/components/supogramm/messenger-main.vue";
|
||||
import ToggleTheme from '../components/UI/ToggleTheme.vue';
|
||||
import { syncUpdateToken, logout, URL } from "@/utils/api";
|
||||
import { createNamespacedHelpers } from "vuex";
|
||||
|
||||
import namePrograms from './navigation/name-programs.vue';
|
||||
import month from './calendar/month.vue';
|
||||
import NavigationPanel from './navigation/navigation-panel.vue';
|
||||
|
||||
const { mapGetters } = createNamespacedHelpers("auth");
|
||||
export default {
|
||||
components: {
|
||||
ToggleTheme,
|
||||
messengerMain,
|
||||
namePrograms,
|
||||
NavigationPanel,
|
||||
month
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
calendar:false,
|
||||
messengertotal:0,
|
||||
serverurl:URL,
|
||||
messengerview:false,
|
||||
groupexpand:true,
|
||||
calendarLength: 7,
|
||||
dateCalendar: [],
|
||||
dataCalendar: {},
|
||||
loadPage: false,
|
||||
drawer: true,
|
||||
user: {},
|
||||
items: [
|
||||
{title: "Главная", icon: "mdi-home-variant-outline", link: "/"},
|
||||
{
|
||||
title: "Проектная деятельность",
|
||||
sub: [
|
||||
{ title: "Проекты и задачи", icon: "fa-list-ol", link: "/projects", sub:
|
||||
[{ title: "Проекты", icon: "mdi-vector-circle", link: "/projects"},
|
||||
{ title: "Задачи", icon: "mdi-calendar-edit-outline", link: "/tasks"},
|
||||
{ title: "Работы", icon: "mdi-archive-edit", link: "/works"},
|
||||
{ title: "Поручения", icon: "mdi-account-arrow-left-outline", link: "/assignments"}
|
||||
|
||||
|
||||
]
|
||||
},
|
||||
{ title: "Совещания", icon: "mdi-account-group-outline", link: "/events" },
|
||||
{ title: "Календарь", icon: "mdi-calendar-month-outline", link: "/calendar" },
|
||||
{
|
||||
title: "Документация",
|
||||
icon: "mdi-file-document-multiple-outline",
|
||||
link: "/documentation",
|
||||
},
|
||||
{ title: "Компетенции", icon: "mdi-head-check-outline", link: "/competence" },
|
||||
{ title: "Итерации", icon: "mdi-repeat", link: "/iteration" },
|
||||
]
|
||||
|
||||
},
|
||||
{
|
||||
title: "Статистика и аналитика",
|
||||
sub: [
|
||||
{ title: "Дашборд", icon: "mdi-monitor-dashboard", link: "/dashboard" },
|
||||
{ title: "Отчеты", icon: "mdi-file-chart-outline ", link: "/raport" },
|
||||
{ title: "Стратегии", icon: "mdi-chess-queen", link: "/strategy" },
|
||||
],
|
||||
},
|
||||
// {title:"ВатСУП", icon:"mdi-forum"}
|
||||
],
|
||||
mini: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
totaller(val){
|
||||
this.messengertotal=val
|
||||
},
|
||||
createCalendar() {
|
||||
// new Date("2022-01-30")
|
||||
const nowDate = moment(Date.now());
|
||||
let month = "";
|
||||
for (let i = 0; i < 7; i++) {
|
||||
let changeDate = nowDate.clone().add(i, "days");
|
||||
if (changeDate.locale("ru").format("MM") != month) {
|
||||
month = changeDate.locale("ru").format("MM");
|
||||
this.dateCalendar.push({ text: month.toUpperCase(), month: true });
|
||||
}
|
||||
this.dataCalendar[changeDate.format("YYYY-MM-DD")] = {
|
||||
assignment: "",
|
||||
};
|
||||
this.dateCalendar.push({
|
||||
text: `${changeDate
|
||||
.locale("ru")
|
||||
.format("ddd")
|
||||
.toUpperCase()}, ${changeDate.locale("ru").format("DD")}`,
|
||||
month: false,
|
||||
data: this.dataCalendar[changeDate.format("YYYY-MM-DD")],
|
||||
});
|
||||
}
|
||||
},
|
||||
build() {
|
||||
this.user = this.getDrawUser;
|
||||
|
||||
this.createCalendar();
|
||||
this.dataCalendar[moment().add(5, 'days').format("YYYY-MM-DD")].assignment = 1;
|
||||
},
|
||||
logout() {
|
||||
logout(this.$store);
|
||||
},
|
||||
minis(){
|
||||
this.mini = !this.mini
|
||||
},
|
||||
messengervi(mes){
|
||||
this.messengerview = mes
|
||||
|
||||
},
|
||||
collapselist(datas) {
|
||||
|
||||
// this.$refs[datas.key].forEach((el, index) => {
|
||||
// if (index != datas.i) el.$children[0].isActive = false;
|
||||
// })
|
||||
console.log(datas, 'mkkoookop');
|
||||
},
|
||||
closeCalenadar() {
|
||||
this.calendar=!this.calendar
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapGetters(["getUser", "getDrawUser"]),
|
||||
|
||||
|
||||
},
|
||||
mounted() {
|
||||
// console.log(moment().add(5, 'days').format("YYYY-MM-DD"), 'lllllllllll');
|
||||
if (!this.getUser) {
|
||||
syncUpdateToken(this.$store).then(() => {
|
||||
this.build()
|
||||
this.loadPage = true;
|
||||
})
|
||||
} else {
|
||||
this.build()
|
||||
this.loadPage = true;
|
||||
}
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/utils/colors.scss";
|
||||
$top_diff: 75px;
|
||||
|
||||
.v-main__wrap {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
}
|
||||
// ----------отображение версии. убрать в финале
|
||||
// .hiddened {
|
||||
// opacity: 0;
|
||||
// }
|
||||
// .v-main__wrap {
|
||||
// display: flex !important;
|
||||
// flex-direction: column;
|
||||
// }
|
||||
// // ----------------------------------------------
|
||||
|
||||
// .v-application--is-ltr .v-list-item__action:first-child, .v-application--is-ltr .v-list-item__icon:first-child {
|
||||
// margin-right: 23px!important;
|
||||
// }
|
||||
// .v-list-group .v-list-group__header .v-list-item__icon.v-list-group__header__append-icon {
|
||||
// min-width: 20px!important;
|
||||
// }
|
||||
// .v-list-group :nth-child(1) {
|
||||
// color: var(--v-btns-base)!important;
|
||||
// // background: var(--v-main_theme-base)!important;
|
||||
// }
|
||||
// .displaynone {
|
||||
// display: none!important;
|
||||
// }
|
||||
// .v-list-item:not(.v-list-item--active):not(.v-list-item--disabled) {
|
||||
// color: var(--v-btns-lighten1) !important;
|
||||
// }
|
||||
// .v-list-item--active {
|
||||
// color: var(--v-btns-base)!important;
|
||||
// }
|
||||
// .v-list-item--active:hover::before, .v-list-item--active::before {
|
||||
// opacity: 0.1!important;
|
||||
// }
|
||||
// .main_themeubheader {
|
||||
|
||||
// white-space: nowrap;
|
||||
|
||||
// .v-list-item__title {color: rgb(255, 255, 255);
|
||||
// text-transform: uppercase;
|
||||
// font-size: 0.8rem;
|
||||
// }
|
||||
// .hov :hover {
|
||||
// color: var(--v-btns-base)!important;
|
||||
// }
|
||||
// &.hidden {
|
||||
// opacity: 0;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
.allitems {
|
||||
border-left: 3px solid transparent;
|
||||
font-size: .5rem;
|
||||
|
||||
}
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.top-height {
|
||||
height: $top_diff;
|
||||
}
|
||||
.calendar-main {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background: white;
|
||||
}
|
||||
.topcalendar-item {
|
||||
border-left: 3px solid white;
|
||||
}
|
||||
// .main-block-content {
|
||||
// width: 100%;
|
||||
// flex-grow: 3;
|
||||
// }
|
||||
.month-calendar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-grow: 0;
|
||||
margin-left: 2px;
|
||||
transform: rotate(180deg);
|
||||
// border-left: 1px dotted white;
|
||||
color: var(--v-inyand2-base);
|
||||
font-size: .7rem;
|
||||
writing-mode: tb-rl;
|
||||
}
|
||||
.shell-content .divider-calendar {
|
||||
border-color: #737d8f;
|
||||
}
|
||||
.shell-content .divider-calendar-before {
|
||||
border: 2px solid #5a0303;
|
||||
}
|
||||
.text-card-calendar {
|
||||
font-size: 0.7rem;
|
||||
color: var(--v-inyand2-base);
|
||||
}
|
||||
.icon-card-calendar i {
|
||||
font-size: 1.2rem;
|
||||
color: white;
|
||||
}
|
||||
.calendar-count {
|
||||
font-size: 0.5rem;
|
||||
line-height: 1.1;
|
||||
color: white;
|
||||
background: #ff698c;
|
||||
margin: 0 2px;
|
||||
}
|
||||
.right-side-user-info > div {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
.right-side-user-info > div i {
|
||||
color: white;
|
||||
font-size: 1em;
|
||||
}
|
||||
.initial-user {
|
||||
// text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
// color-main:
|
||||
.subgroup{
|
||||
background: var(--v-main_theme-base)!important;
|
||||
}
|
||||
|
||||
.nl_whatsup {
|
||||
background: var(--v-chat-base)!important;
|
||||
}
|
||||
// .groupmenu {
|
||||
// background: $color-maindarken
|
||||
// }
|
||||
|
||||
.hidden{
|
||||
opacity: 0;
|
||||
}
|
||||
// @media (max-width: 1650px) {
|
||||
// .m-disabled {
|
||||
// display: none;
|
||||
// }
|
||||
// }
|
||||
.v-toolbar__content {
|
||||
padding: 0!important;
|
||||
}
|
||||
.v-application--is-ltr .v-list-item__icon:last-of-type:not(:only-child) {
|
||||
margin: 0!important;
|
||||
|
||||
}
|
||||
|
||||
.infobar {
|
||||
min-width: 25vw;
|
||||
}
|
||||
|
||||
// @media (min-width: 1904px) {
|
||||
// .nl_whatsup {
|
||||
// min-width: 50vw;
|
||||
// min-height: 88vh;
|
||||
// }
|
||||
|
||||
// }
|
||||
// @media (max-width: 1903px) {
|
||||
// .nl_whatsup {
|
||||
// min-width: 80vw;
|
||||
// min-height: 80vh;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// @media (max-width: 1264px) {
|
||||
// .nl_whatsup {
|
||||
// min-width: 75vw;
|
||||
// min-height: 75vh;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// @media (max-width: 960px) {
|
||||
// .nl_whatsup {
|
||||
// min-width: 70vw;
|
||||
// min-height: 70vh;
|
||||
// }
|
||||
// }
|
||||
|
||||
// @media (max-width: 600px) {
|
||||
// .nl_whatsup {
|
||||
// min-width: 65vw;
|
||||
// min-height: 65vh;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
Reference in new issue
Block a user