|
|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
<template>
|
|
|
|
|
<q-layout style="background-color: #f5f5f5;" view="lHh Lpr lFf">
|
|
|
|
|
<q-header>
|
|
|
|
|
<q-layout view="lHh Lpr lFf">
|
|
|
|
|
<q-header elevated>
|
|
|
|
|
<q-toolbar>
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="$q.screen.width < 1200"
|
|
|
|
|
flat
|
|
|
|
|
dense
|
|
|
|
|
round
|
|
|
|
|
@ -11,75 +10,31 @@
|
|
|
|
|
aria-label="Menu"
|
|
|
|
|
@click="leftDrawerOpen = !leftDrawerOpen"
|
|
|
|
|
/>
|
|
|
|
|
<q-space />
|
|
|
|
|
<q-btn-dropdown flat :label="'Иван Иванов'">
|
|
|
|
|
<q-list>
|
|
|
|
|
<q-item clickable v-close-popup tabindex="0" v-ripple>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label>Выйти</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side>
|
|
|
|
|
<q-icon name="exit_to_app" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-btn-dropdown>
|
|
|
|
|
|
|
|
|
|
<q-toolbar-title>
|
|
|
|
|
Форум ЭкспеРО
|
|
|
|
|
</q-toolbar-title>
|
|
|
|
|
</q-toolbar>
|
|
|
|
|
</q-header>
|
|
|
|
|
|
|
|
|
|
<q-drawer
|
|
|
|
|
v-model="leftDrawerOpen"
|
|
|
|
|
show-if-above
|
|
|
|
|
content-class="bg-white"
|
|
|
|
|
bordered
|
|
|
|
|
content-class="bg-grey-1"
|
|
|
|
|
>
|
|
|
|
|
<q-list>
|
|
|
|
|
<q-item-label
|
|
|
|
|
header
|
|
|
|
|
style="background-color: #7B89CA; height: 50px"
|
|
|
|
|
class="text-white text-h6 text-center"
|
|
|
|
|
style="background-color: #7B89CA"
|
|
|
|
|
class="text-white text-h6"
|
|
|
|
|
>
|
|
|
|
|
ЭкспеРО
|
|
|
|
|
Меню
|
|
|
|
|
</q-item-label>
|
|
|
|
|
<q-item
|
|
|
|
|
v-for="option in menu.options"
|
|
|
|
|
:key="option.title"
|
|
|
|
|
clickable
|
|
|
|
|
@click="menu.chosenOption = option"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section
|
|
|
|
|
v-if="option.icon"
|
|
|
|
|
avatar
|
|
|
|
|
>
|
|
|
|
|
<q-icon :name="option.icon" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label>{{ option.title }}</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<div v-if="menu.chosenOption">
|
|
|
|
|
<q-item style="background-color: #7b89ca">
|
|
|
|
|
<q-item-section>
|
|
|
|
|
{{menu.chosenOption.title}}
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item
|
|
|
|
|
v-for="suboption in menu.chosenOption.suboptions"
|
|
|
|
|
:key="suboption.title"
|
|
|
|
|
clickable
|
|
|
|
|
>
|
|
|
|
|
<q-item-section
|
|
|
|
|
v-if="suboption.icon"
|
|
|
|
|
avatar
|
|
|
|
|
>
|
|
|
|
|
<q-icon :name="suboption.icon" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label>{{ suboption.title }}</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</div>
|
|
|
|
|
<EssentialLink
|
|
|
|
|
v-for="link in essentialLinks"
|
|
|
|
|
:key="link.title"
|
|
|
|
|
v-bind="link"
|
|
|
|
|
/>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-drawer>
|
|
|
|
|
|
|
|
|
|
@ -90,108 +45,51 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import EssentialLink from 'components/EssentialLink'
|
|
|
|
|
import EssentialLink from 'components/EssentialLink'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'MainLayout',
|
|
|
|
|
|
|
|
|
|
// components: {
|
|
|
|
|
// EssentialLink
|
|
|
|
|
// },
|
|
|
|
|
components: {
|
|
|
|
|
EssentialLink
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
leftDrawerOpen: false,
|
|
|
|
|
menu: {
|
|
|
|
|
chosenOption: null,
|
|
|
|
|
options: [
|
|
|
|
|
essentialLinks: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Приборная панель',
|
|
|
|
|
caption: 'Перейти на глагне',
|
|
|
|
|
icon: 'backspace',
|
|
|
|
|
suboptions: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Пользователи',
|
|
|
|
|
icon: 'school',
|
|
|
|
|
link: 'https://quasar.dev'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Дополнительные поля',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Зоны ответственности',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
link: '/'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Пользователи',
|
|
|
|
|
icon: 'school',
|
|
|
|
|
suboptions: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Пользователи',
|
|
|
|
|
caption: 'Перейти на площадку',
|
|
|
|
|
icon: 'school',
|
|
|
|
|
link: 'https://quasar.dev'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Дополнительные поля',
|
|
|
|
|
caption: 'Выйти из платформы',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Зоны ответственности',
|
|
|
|
|
caption: 'Выйти из платформы',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Дополнительные поля',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
suboptions: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Пользователи',
|
|
|
|
|
icon: 'school',
|
|
|
|
|
link: 'https://quasar.dev'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Дополнительные поля',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Зоны ответственности',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Зоны ответственности',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
suboptions: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Пользователи',
|
|
|
|
|
icon: 'school',
|
|
|
|
|
link: 'https://quasar.dev'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Дополнительные поля',
|
|
|
|
|
title: 'Группы черт',
|
|
|
|
|
caption: 'Выйти из платформы',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Зоны ответственности',
|
|
|
|
|
icon: 'subdirectory_arrow_left',
|
|
|
|
|
link: 'https://github.com/quasarframework'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|