Добавлены ссылки
This commit is contained in:
1 parent
01cb7fc00b
commit
aa7569f3ba
1 file changed
+69
-3
@@ -127,6 +127,7 @@
|
||||
:href="x.link"
|
||||
:disabled="x.path==''"
|
||||
:to="x.path"
|
||||
:target="x.link?'_blank':''"
|
||||
color="navigation">
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
@@ -148,7 +149,9 @@
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico">
|
||||
:prepend-icon="x.ico"
|
||||
|
||||
>
|
||||
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
@@ -167,6 +170,7 @@
|
||||
:title="!rail?child.name:menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link?'_blank':''"
|
||||
:class="child.link?'myopacity':''"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
@@ -181,6 +185,7 @@
|
||||
</v-list>
|
||||
|
||||
<v-list nav density="compact">
|
||||
|
||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
@@ -203,6 +208,33 @@
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-row class="flex-grow-0" v-if="accountStore.user.is_staff">
|
||||
<v-col>
|
||||
<v-list nav density active-class="noneoutline">
|
||||
<v-list-item v-for="(x, key) in supperuser"
|
||||
:key="key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:target="x.link?'_blank':''"
|
||||
slim
|
||||
class="text-blue-grey-lighten-1 myopacity"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico" size="x_small"/>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col>
|
||||
<page-counter :rail=rail />
|
||||
@@ -321,6 +353,31 @@ export default {
|
||||
|
||||
mainmenuStore.loadlinks()
|
||||
|
||||
const gittlink = () => {
|
||||
|
||||
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'
|
||||
return link
|
||||
}
|
||||
|
||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||
|
||||
const supperuser = [
|
||||
|
||||
{
|
||||
name: 'Панель администратора',
|
||||
ico: 'mdi-wrench',
|
||||
link: baseURL+'admin'
|
||||
|
||||
},
|
||||
{
|
||||
name: 'Gitt',
|
||||
ico: 'mdi-github',
|
||||
link: gittlink()
|
||||
|
||||
|
||||
}
|
||||
]
|
||||
|
||||
const navigations = [
|
||||
|
||||
{
|
||||
@@ -385,13 +442,15 @@ export default {
|
||||
ico: 'mdi-city',
|
||||
path: "/inspection"
|
||||
},
|
||||
|
||||
|
||||
// {
|
||||
// name: 'К празднику',
|
||||
// ico: 'mdi-cake-variant',
|
||||
// path: "/fnshol"
|
||||
// }
|
||||
]
|
||||
|
||||
|
||||
const imageSrc = computed(() => {
|
||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||
})
|
||||
@@ -417,7 +476,8 @@ export default {
|
||||
menuTruncated,
|
||||
|
||||
alert,
|
||||
burl
|
||||
burl,
|
||||
supperuser
|
||||
}
|
||||
}
|
||||
|
||||
@@ -452,5 +512,11 @@ export default {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.noneoutline {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.myopacity .v-list-item__overlay {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user