xl
This commit is contained in:
1 parent
1931eed107
commit
847b499b71
2 files changed
+197
-216
No files matched your search
@@ -54,6 +54,7 @@ import { ref } from "vue";
|
|||||||
import { useAlertStore } from '@/store/useAlertStore'
|
import { useAlertStore } from '@/store/useAlertStore'
|
||||||
import { clearAxios } from "@/utils/axios-api";
|
import { clearAxios } from "@/utils/axios-api";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
idVacations: {
|
idVacations: {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-app>
|
<v-app>
|
||||||
<v-app-bar
|
<v-app-bar
|
||||||
:elevation="accountStore.cod2user?2:0"
|
:elevation="accountStore.cod2user ? 2 : 0"
|
||||||
density="compact"
|
density="compact"
|
||||||
color="app_bar"
|
color="app_bar"
|
||||||
class="pl-4"
|
class="pl-4"
|
||||||
@@ -31,130 +30,135 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<template v-if="accountStore.cod2user">
|
<template v-if="accountStore.cod2user">
|
||||||
<vcard-user
|
<vcard-user :author="accountStore.user" />
|
||||||
:author = accountStore.user
|
|
||||||
/>
|
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn
|
<v-btn
|
||||||
color="black_and_white"
|
color="black_and_white"
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
dark to="/faq"
|
dark
|
||||||
icon="mdi-comment-question-outline" />
|
to="/faq"
|
||||||
|
icon="mdi-comment-question-outline"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span>F.A.Q.</span>
|
<span>F.A.Q.</span>
|
||||||
|
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
|
|
||||||
<v-dialog
|
<v-dialog v-model="LikeDialog" persistent width="800">
|
||||||
v-model="LikeDialog"
|
|
||||||
persistent width="800">
|
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
|
|
||||||
<v-btn
|
<v-btn
|
||||||
color="black_and_white"
|
color="black_and_white"
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
dark icon="mdi-thumb-up-outline" >
|
dark
|
||||||
|
icon="mdi-thumb-up-outline"
|
||||||
|
>
|
||||||
<v-icon></v-icon>
|
<v-icon></v-icon>
|
||||||
<v-tooltip
|
<v-tooltip activator="parent" location="bottom"
|
||||||
activator="parent"
|
>Обратная связь</v-tooltip
|
||||||
location="bottom"
|
>
|
||||||
>Обратная связь</v-tooltip>
|
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<Card-like :LikeDialog="LikeDialog" @menusClose="closeinfo()" />
|
||||||
<Card-like
|
|
||||||
:LikeDialog="LikeDialog"
|
|
||||||
@menusClose="closeinfo()"
|
|
||||||
/>
|
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn icon @click="toggleTheme">
|
<v-btn icon @click="toggleTheme">
|
||||||
<v-icon
|
<v-icon v-bind="props" class="mr-1" color="lampa">
|
||||||
v-bind="props"
|
|
||||||
class="mr-1"
|
|
||||||
color="lampa">
|
|
||||||
mdi-lightbulb-outline
|
mdi-lightbulb-outline
|
||||||
</v-icon>
|
</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
<span> Сменить тему</span>
|
<span> Сменить тему</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<v-card class="" width="50">{{name}}</v-card>
|
|
||||||
|
<v-card v-show="message" class="" width="50">{{ name }}</v-card>
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn color="black_and_white" icon="mdi-account-multiple-outline" @click="drawer_right = !drawer_right" v-bind="props"/>
|
<v-btn
|
||||||
|
color="black_and_white"
|
||||||
|
icon="mdi-account-multiple-outline"
|
||||||
|
@click="drawer_right = !drawer_right"
|
||||||
|
v-bind="props"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span> {{ (drawer_right == true) ? 'Скрыть пользователей' : 'Показать пользователей'}} </span>
|
<span>
|
||||||
|
{{
|
||||||
|
drawer_right == true
|
||||||
|
? "Скрыть пользователей"
|
||||||
|
: "Показать пользователей"
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn color="black_and_white" icon="mdi-logout" @click="accountStore.logout" v-bind="props"/>
|
<v-btn
|
||||||
|
color="black_and_white"
|
||||||
|
icon="mdi-logout"
|
||||||
|
@click="accountStore.logout"
|
||||||
|
v-bind="props"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span> Выход </span>
|
<span> Выход </span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
||||||
|
|
||||||
<v-row justify="center">
|
<v-row justify="center">
|
||||||
<Auth-form
|
<Auth-form @challengealert="alert = true" />
|
||||||
@challengealert = "alert=true"
|
|
||||||
/>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-navigation-drawer v-if="accountStore.cod2user" :width="245" :rail="rail" permanent v-model="drawer">
|
<v-navigation-drawer
|
||||||
|
v-if="accountStore.cod2user"
|
||||||
|
:width="245"
|
||||||
|
:rail="rail"
|
||||||
|
permanent
|
||||||
|
v-model="drawer"
|
||||||
|
>
|
||||||
<v-row class="my-0 h-100">
|
<v-row class="my-0 h-100">
|
||||||
<v-col class="flex-column d-flex">
|
<v-col class="flex-column d-flex">
|
||||||
<v-row><v-col>
|
<v-row
|
||||||
|
><v-col>
|
||||||
<v-list nav density="compact">
|
<v-list nav density="compact">
|
||||||
|
|
||||||
<template v-for="(x, key) in navigations">
|
<template v-for="(x, key) in navigations">
|
||||||
<v-list-item v-if="!('submenu' in x)"
|
<v-list-item
|
||||||
|
v-if="!('submenu' in x)"
|
||||||
:key="x.key"
|
:key="x.key"
|
||||||
:title="x.name"
|
:title="x.name"
|
||||||
:value="x.name"
|
:value="x.name"
|
||||||
:href="x.link"
|
:href="x.link"
|
||||||
:disabled="x.path==''"
|
:disabled="x.path == ''"
|
||||||
:to="x.path"
|
:to="x.path"
|
||||||
:target="x.link?'_blank':''"
|
:target="x.link ? '_blank' : ''"
|
||||||
color="navigation">
|
color="navigation"
|
||||||
|
>
|
||||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-icon :icon="x.ico"/>
|
<v-icon :icon="x.ico" />
|
||||||
<v-tooltip
|
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||||
v-if="rail"
|
|
||||||
activator="parent"
|
|
||||||
location="top">
|
|
||||||
{{ x.name }}
|
{{ x.name }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
<v-list-group v-else
|
<v-list-group
|
||||||
:class="rail?'railmenu':''"
|
v-else
|
||||||
|
:class="rail ? 'railmenu' : ''"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="x.name">
|
:value="x.name"
|
||||||
|
>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-list-item
|
<v-list-item
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
:title="x.name"
|
:title="x.name"
|
||||||
:prepend-icon="x.ico"
|
:prepend-icon="x.ico"
|
||||||
color="navigation"
|
color="navigation"
|
||||||
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<v-tooltip
|
<v-tooltip
|
||||||
v-if="rail"
|
v-if="rail"
|
||||||
activator="parent"
|
activator="parent"
|
||||||
@@ -164,21 +168,17 @@
|
|||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</template>
|
</template>
|
||||||
<v-list-item v-for="(child, k) in x.submenu"
|
<v-list-item
|
||||||
|
v-for="(child, k) in x.submenu"
|
||||||
color="navigation"
|
color="navigation"
|
||||||
:href="child.link"
|
:href="child.link"
|
||||||
:key="k"
|
:key="k"
|
||||||
:value="child.name"
|
:value="child.name"
|
||||||
:title="!rail?child.name:menuTruncated(child.name)"
|
:title="!rail ? child.name : menuTruncated(child.name)"
|
||||||
:to="child.path"
|
:to="child.path"
|
||||||
:target="child.link?'_blank':''"
|
:target="child.link ? '_blank' : ''"
|
||||||
|
|
||||||
>
|
|
||||||
<v-tooltip
|
|
||||||
v-if="rail"
|
|
||||||
activator="parent"
|
|
||||||
location="top"
|
|
||||||
>
|
>
|
||||||
|
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||||
{{ child.name }}
|
{{ child.name }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
@@ -187,23 +187,18 @@
|
|||||||
</v-list>
|
</v-list>
|
||||||
|
|
||||||
<v-list nav density="compact">
|
<v-list nav density="compact">
|
||||||
|
<v-list-item
|
||||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
v-for="x of mainmenuStore.portallinks"
|
||||||
:key="x.name"
|
:key="x.name"
|
||||||
:title="x.name"
|
:title="x.name"
|
||||||
:value="x.name"
|
:value="x.name"
|
||||||
:href="x.link"
|
:href="x.link"
|
||||||
color="app_bar"
|
color="app_bar"
|
||||||
:target="x.link?'_blank':''"
|
:target="x.link ? '_blank' : ''"
|
||||||
>
|
>
|
||||||
|
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-icon
|
<v-icon :icon="x.imagecode" />
|
||||||
:icon="x.imagecode" />
|
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||||
<v-tooltip
|
|
||||||
v-if="rail"
|
|
||||||
activator="parent"
|
|
||||||
location="top">
|
|
||||||
{{ x.name }}
|
{{ x.name }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
</template>
|
</template>
|
||||||
@@ -214,7 +209,7 @@
|
|||||||
|
|
||||||
<v-row class="flex-grow-0" v-if="accountStore.user.is_staff">
|
<v-row class="flex-grow-0" v-if="accountStore.user.is_staff">
|
||||||
<v-col>
|
<v-col>
|
||||||
<default-portal-menu-list :rail=rail />
|
<default-portal-menu-list :rail="rail" />
|
||||||
<!-- <v-list nav density="compact" active-class="noneoutline">
|
<!-- <v-list nav density="compact" active-class="noneoutline">
|
||||||
<default-portal-menu-list :aMenuItem="supperuser"/>
|
<default-portal-menu-list :aMenuItem="supperuser"/>
|
||||||
<div v-if="getDevelopment()">
|
<div v-if="getDevelopment()">
|
||||||
@@ -229,32 +224,26 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
<v-row no-gutters class="flex-grow-0">
|
<v-row no-gutters class="flex-grow-0">
|
||||||
<v-col>
|
<v-col>
|
||||||
<page-counter :rail=rail />
|
<page-counter :rail="rail" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
|
|
||||||
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
||||||
<router-view />
|
<router-view />
|
||||||
|
|
||||||
|
<alert-default />
|
||||||
<alert-default />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</v-main>
|
</v-main>
|
||||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||||
|
|
||||||
<v-card
|
<v-card
|
||||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||||
:image="`${burl}${scrimg}`"
|
:image="`${burl}${scrimg}`"
|
||||||
>
|
>
|
||||||
<v-card-text class="justify-center bgCard h-100 ma-3 d-flex flex-column">
|
<v-card-text
|
||||||
|
class="justify-center bgCard h-100 ma-3 d-flex flex-column"
|
||||||
|
>
|
||||||
<v-row class="bgText flex-grow-0">
|
<v-row class="bgText flex-grow-0">
|
||||||
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||||
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
||||||
@@ -266,179 +255,177 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<alert-default />
|
<alert-default />
|
||||||
</v-main>
|
</v-main>
|
||||||
<v-navigation-drawer v-if="accountStore.cod2user"
|
<v-navigation-drawer
|
||||||
|
v-if="accountStore.cod2user"
|
||||||
v-model="drawer_right"
|
v-model="drawer_right"
|
||||||
rail permanent
|
rail
|
||||||
|
permanent
|
||||||
location="right"
|
location="right"
|
||||||
@click="rail = false">
|
@click="rail = false"
|
||||||
|
>
|
||||||
<Online-users />
|
<Online-users />
|
||||||
|
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
|
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { ref, computed } from "vue";
|
||||||
import { ref, computed} from 'vue'
|
import uf from "@/utils/universal_functions";
|
||||||
import uf from '@/utils/universal_functions'
|
import { useAccountStore } from "@/store/AccountStore";
|
||||||
import { useAccountStore } from '@/store/AccountStore'
|
import { useMainmenuStore } from "@/store/MainmenuStore";
|
||||||
import { useMainmenuStore } from '@/store/MainmenuStore'
|
|
||||||
import { useTheme } from "vuetify";
|
import { useTheme } from "vuetify";
|
||||||
import AuthForm from '@/components/UI/Auth-form.vue'
|
import AuthForm from "@/components/UI/Auth-form.vue";
|
||||||
import OnlineUsers from '@/components/UI/fiousercard/onlineUsers.vue'
|
import OnlineUsers from "@/components/UI/fiousercard/onlineUsers.vue";
|
||||||
import CardLike from '@/components/cardLike.vue'
|
import CardLike from "@/components/cardLike.vue";
|
||||||
import { axiosApiInstance, clearAxios } from '@/utils/axios-api'
|
import { axiosApiInstance, clearAxios } from "@/utils/axios-api";
|
||||||
|
|
||||||
import { baseURL } from '@/utils/axios-api'
|
import { baseURL } from "@/utils/axios-api";
|
||||||
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
|
import VcardUser from "@/components/UI/fiousercard/vcardUser.vue";
|
||||||
import PageCounter from '@/components/UI/defaultportal/page-counter.vue'
|
import PageCounter from "@/components/UI/defaultportal/page-counter.vue";
|
||||||
import DefaultPortalMenuList from '@/layouts/default/DefaultPortalMenuList.vue'
|
import DefaultPortalMenuList from "@/layouts/default/DefaultPortalMenuList.vue";
|
||||||
import {getDevelopment} from '@/utils/universal_functions'
|
import { getDevelopment } from "@/utils/universal_functions";
|
||||||
import { useDisplay } from 'vuetify'
|
import { useDisplay } from "vuetify";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
AuthForm,
|
AuthForm,
|
||||||
OnlineUsers,
|
OnlineUsers,
|
||||||
CardLike,
|
CardLike,
|
||||||
VcardUser,
|
VcardUser,
|
||||||
PageCounter,
|
PageCounter,
|
||||||
DefaultPortalMenuList
|
DefaultPortalMenuList,
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [uf],
|
mixins: [uf],
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const { name } = useDisplay()
|
const { name } = useDisplay();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const mainmenuStore = useMainmenuStore()
|
const mainmenuStore = useMainmenuStore();
|
||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore();
|
||||||
const drawer = ref(true)
|
const drawer = ref(true);
|
||||||
const drawer_right = ref(true)
|
const drawer_right = ref(true);
|
||||||
|
|
||||||
const LikeDialog = ref(false)
|
|
||||||
const rail = ref(false)
|
|
||||||
const showTooltip = ref(false)
|
|
||||||
const alert = ref(false)
|
|
||||||
const burl = baseURL.slice(0,-1)
|
|
||||||
const scrimg = ref([])
|
|
||||||
|
|
||||||
|
|
||||||
|
const LikeDialog = ref(false);
|
||||||
|
const rail = ref(false);
|
||||||
|
const showTooltip = ref(false);
|
||||||
|
const alert = ref(false);
|
||||||
|
const burl = baseURL.slice(0, -1);
|
||||||
|
const scrimg = ref([]);
|
||||||
|
|
||||||
|
const message = computed({
|
||||||
|
get: () => {
|
||||||
|
return process.env.NODE_ENV == "development" ? true : false;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const screenimg = () => {
|
const screenimg = () => {
|
||||||
|
if (!accountStore.cod2user) {
|
||||||
if(!accountStore.cod2user){
|
clearAxios.get(`api/navigation/screensaver/`).then((data) => {
|
||||||
clearAxios.get(`api/navigation/screensaver/`)
|
scrimg.value = data.data[0].img;
|
||||||
.then(data => {
|
});
|
||||||
scrimg.value = data.data[0].img
|
|
||||||
})}
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
screenimg()
|
screenimg();
|
||||||
|
|
||||||
const menuTruncated = (menus) => {
|
const menuTruncated = (menus) => {
|
||||||
return menus.slice(0,2).toUpperCase()
|
return menus.slice(0, 2).toUpperCase();
|
||||||
}
|
};
|
||||||
|
|
||||||
const toggleTheme = () => {
|
const toggleTheme = () => {
|
||||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
theme.global.name.value = theme.global.current.value.dark
|
||||||
}
|
? "light"
|
||||||
|
: "dark";
|
||||||
|
};
|
||||||
|
|
||||||
mainmenuStore.loadlinks()
|
mainmenuStore.loadlinks();
|
||||||
|
|
||||||
const gittlink = () => {
|
const gittlink = () => {
|
||||||
|
const link =
|
||||||
const link = baseURL=='http://127.0.0.1:8000/'?'http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects':'http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22'
|
baseURL == "http://127.0.0.1:8000/"
|
||||||
return link
|
? "http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects"
|
||||||
}
|
: "http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22";
|
||||||
|
return link;
|
||||||
|
};
|
||||||
|
|
||||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||||
|
|
||||||
|
|
||||||
const oRasrab = [
|
const oRasrab = [
|
||||||
{
|
{
|
||||||
name: 'Gitt',
|
name: "Gitt",
|
||||||
ico: 'mdi-github',
|
ico: "mdi-github",
|
||||||
link: gittlink()
|
link: gittlink(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Swagger',
|
name: "Swagger",
|
||||||
ico: 'mdi-puzzle',
|
ico: "mdi-puzzle",
|
||||||
link: 'http://127.0.0.1:8000/swagger/'
|
link: "http://127.0.0.1:8000/swagger/",
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
|
|
||||||
|
|
||||||
// ]
|
// ]
|
||||||
|
|
||||||
const navigations = ref([
|
const navigations = ref([
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'Структура',
|
name: "Структура",
|
||||||
ico: 'mdi-source-branch',
|
ico: "mdi-source-branch",
|
||||||
submenu: [
|
|
||||||
|
|
||||||
{
|
|
||||||
name: 'ОКиБ',
|
|
||||||
path: "/okib"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Сотрудники',
|
|
||||||
ico: 'mdi-account-multiple-outline',
|
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
name: 'Справочник',
|
name: "ОКиБ",
|
||||||
link: 'http://10.252.44.33/accounting6/members.php'
|
path: "/okib",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Сотрудники",
|
||||||
|
ico: "mdi-account-multiple-outline",
|
||||||
|
submenu: [
|
||||||
|
{
|
||||||
|
name: "Справочник",
|
||||||
|
link: "http://10.252.44.33/accounting6/members.php",
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// name: 'О пользователе',
|
// name: 'О пользователе',
|
||||||
// ico: 'mdi-account',
|
// ico: 'mdi-account',
|
||||||
// path: "/userinfo"
|
// path: "/userinfo"
|
||||||
// },
|
// },
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Деятельность',
|
name: "Деятельность",
|
||||||
ico: 'mdi-bulletin-board',
|
ico: "mdi-bulletin-board",
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
name: 'Обеспечивающая',
|
name: "Обеспечивающая",
|
||||||
path: "/providing"
|
path: "/providing",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Новости',
|
name: "Новости",
|
||||||
ico: 'mdi-newspaper',
|
ico: "mdi-newspaper",
|
||||||
path: "/news"
|
path: "/news",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'О портале',
|
name: "О портале",
|
||||||
ico: 'mdi-information-variant',
|
ico: "mdi-information-variant",
|
||||||
path: "/portal"
|
path: "/portal",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'Об инспекции',
|
name: "Об инспекции",
|
||||||
ico: 'mdi-city',
|
ico: "mdi-city",
|
||||||
path: "/inspection"
|
path: "/inspection",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ical',
|
name: "ical",
|
||||||
ico: 'mdi-calendar',
|
ico: "mdi-calendar",
|
||||||
path: "/ical"
|
path: "/ical",
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
@@ -446,37 +433,37 @@ export default {
|
|||||||
// ico: 'mdi-cake-variant',
|
// ico: 'mdi-cake-variant',
|
||||||
// path: "/fnshol"
|
// path: "/fnshol"
|
||||||
// }
|
// }
|
||||||
])
|
]);
|
||||||
|
|
||||||
const imageSrc = computed(() => {
|
const imageSrc = computed(() => {
|
||||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||||
})
|
});
|
||||||
|
|
||||||
const closeinfo = () => {
|
const closeinfo = () => {
|
||||||
LikeDialog.value = false
|
LikeDialog.value = false;
|
||||||
// feedalert.value=true
|
// feedalert.value=true
|
||||||
}
|
};
|
||||||
|
|
||||||
const getSafetyChapter = () => {
|
const getSafetyChapter = () => {
|
||||||
axiosApiInstance.get('api/safety/gettypes/').then(response => {
|
axiosApiInstance.get("api/safety/gettypes/").then((response) => {
|
||||||
response.data.forEach(item => {
|
response.data.forEach((item) => {
|
||||||
if(!item.path.startsWith('/')) {
|
if (!item.path.startsWith("/")) {
|
||||||
item.path = '/' + item.path
|
item.path = "/" + item.path;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.data.length > 0) {
|
if (response.data.length > 0) {
|
||||||
let safetyMenu = {
|
let safetyMenu = {
|
||||||
name: 'Безопасность',
|
name: "Безопасность",
|
||||||
ico: 'mdi-security',
|
ico: "mdi-security",
|
||||||
submenu: response.data
|
submenu: response.data,
|
||||||
|
};
|
||||||
|
navigations.value.splice(5, 0, safetyMenu);
|
||||||
}
|
}
|
||||||
navigations.value.splice(5, 0, safetyMenu)
|
});
|
||||||
}
|
};
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
getSafetyChapter()
|
getSafetyChapter();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
theme,
|
theme,
|
||||||
@@ -499,13 +486,11 @@ getSafetyChapter()
|
|||||||
name,
|
name,
|
||||||
closeinfo,
|
closeinfo,
|
||||||
baseURL,
|
baseURL,
|
||||||
getDevelopment
|
getDevelopment,
|
||||||
}
|
message,
|
||||||
}
|
};
|
||||||
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.mystat {
|
.mystat {
|
||||||
@@ -515,25 +500,20 @@ getSafetyChapter()
|
|||||||
z-index: 1005;
|
z-index: 1005;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.btnNav .v-navigation-drawer__content {
|
.btnNav .v-navigation-drawer__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.railmenu .v-list-group__items .v-list-item {
|
.railmenu .v-list-group__items .v-list-item {
|
||||||
padding-inline-start: 11px!important;
|
padding-inline-start: 11px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.textcolor {
|
.textcolor {
|
||||||
color: #2f535e
|
color: #2f535e;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tr-popup {
|
#tr-popup {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user