Карточка

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