Карточка

This commit is contained in:
iriska-gri committed 2023-11-16 09:00:36 +03:00
1 parent 9c0671da7b
commit 63e5e64571
3 files changed
+53 -15

No files matched your search

BIN
View File
Binary file not shown.
+49 -8
View File
@@ -1,9 +1,26 @@
<template> <template>
<v-card> <v-card >
<v-card-title> <!-- <v-card-title>
<span class="text-h5">Карточка пользователя</span> <span class="text-h5">Карточка пользователя</span>
</v-card-title> </v-card-title> -->
<v-card-text class="flex-column d-flex pb-0">
<v-tabs
v-model="tab"
bg-color="teal-darken-3"
class="bggrad ma-1"
grow
>
<v-tab value="one">Информация</v-tab>
<v-tab value="two">Ответсвенности</v-tab>
<v-tab value="three">Комиссии</v-tab>
</v-tabs>
<v-window class="highttext" v-model="tab">
<v-window-item value="one">
<v-card-text class="flex-column d-flex pb-0">
<v-row class="flex-grow-0"> <v-row class="flex-grow-0">
<v-divider/> <v-divider/>
<v-col <v-col
@@ -42,7 +59,7 @@
<v-list class="pa-0 pt-3 custom_subtitle" density> <v-list class="pa-0 pt-3 custom_subtitle" density>
<v-list-item <v-list-item
v-for="n in subInformation()" v-for="n in subInformation()"
:key="n" :key="n"
class="py-0" class="py-0"
@@ -61,6 +78,23 @@
</v-row> </v-row>
</v-card-text> </v-card-text>
</v-window-item>
<v-window-item value="two">
<v-card-text>
Сфера ответсвенности
</v-card-text>
</v-window-item>
<v-window-item value="three">
<v-card-text>
комиссии
</v-card-text>
</v-window-item>
</v-window>
<v-card-actions class="align-self-end pt-0"> <v-card-actions class="align-self-end pt-0">
<v-btn <v-btn
@@ -69,7 +103,8 @@
@click="menusCloses" @click="menusCloses"
> >
Отмена Отмена
</v-btn> </v-btn>
<my-helper :pretext="userlinks"/>
</v-card-actions> </v-card-actions>
@@ -79,7 +114,7 @@
<script> <script>
import { clearAxios } from '@/utils/axios-api' import { clearAxios } from '@/utils/axios-api'
import { ref, onMounted } from 'vue' import { ref } from 'vue'
import {useAccountStore} from '@/store/AccountStore' import {useAccountStore} from '@/store/AccountStore'
import {checkremote} from '@/utils/universal_functions' import {checkremote} from '@/utils/universal_functions'
import { spravURL } from '@/utils/axios-api' import { spravURL } from '@/utils/axios-api'
@@ -103,6 +138,7 @@ export default {
const accountStore = useAccountStore() const accountStore = useAccountStore()
const userlinks = ref([]) const userlinks = ref([])
const tab = ref(false)
const loadlinksUser=async()=>{ const loadlinksUser=async()=>{
const res = await clearAxios.get('api/accounts/getuser/?userlogin='+props.loging) const res = await clearAxios.get('api/accounts/getuser/?userlogin='+props.loging)
@@ -135,7 +171,8 @@ export default {
basicInformation, basicInformation,
subInformation, subInformation,
checkremote, checkremote,
spravURL spravURL,
tab
} }
} }
} }
@@ -145,4 +182,8 @@ export default {
.custom_subtitle .v-list-item-subtitle { .custom_subtitle .v-list-item-subtitle {
opacity: 1!important; opacity: 1!important;
} }
.highttext {
height: 300px;
}
</style> </style>
+4 -7
View File
@@ -169,8 +169,7 @@
NewsListHome, NewsListHome,
LoadRound, LoadRound,
DigitalLetna, DigitalLetna,
EventCalendar
EventCalendar
}, },
@@ -182,19 +181,17 @@
pagecounter() pagecounter()
const accountStore = useAccountStore() const accountStore = useAccountStore()
onMounted(() => { onMounted(() => {
favoritLinks() favoritLinks()
}) })
const favoritLinks = () => { const favoritLinks = () => {
axiosApiInstance.get(`api/watcher/selectedlinks/`) axiosApiInstance.get(`api/watcher/selectedlinks/`)
.then(data => { .then(data => {
favorit.value = data.data favorit.value = data.data
}) })
} }