Загрузка на сайт

This commit is contained in:
iriska-gri committed 2023-12-08 10:40:37 +03:00
1 parent 40f432a740
commit 500c809188
7 files changed
+31 -30

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "front", "name": "front",
"version": "0.0.33", "version": "0.0.34",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "front", "name": "front",
"version": "0.0.33", "version": "0.0.34",
"dependencies": { "dependencies": {
"@mdi/font": "7.0.96", "@mdi/font": "7.0.96",
"@vuelidate/core": "^2.0.3", "@vuelidate/core": "^2.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "front", "name": "front",
"version": "0.0.33", "version": "0.0.34",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
+1 -1
View File
@@ -1,7 +1,7 @@
<template> <template>
<!-- cycle --> <!-- cycle -->
<v-carousel <v-carousel
cycle
interval="10000" interval="10000"
cover cover
height="450" height="450"
+5 -1
View File
@@ -52,6 +52,7 @@
<v-row class="flex-grow-0"> <v-row class="flex-grow-0">
<v-col class="py-0"> <v-col class="py-0">
<v-switch <v-switch
v-if="accountStore.user.is_staff"
v-model="changeData" v-model="changeData"
class="pl-3 d-flex justify-end" class="pl-3 d-flex justify-end"
color="teal" color="teal"
@@ -134,6 +135,7 @@
import CardUsers from '@/components/cardUsers.vue' import CardUsers from '@/components/cardUsers.vue'
import DialogSearch from './dialog-search.vue' import DialogSearch from './dialog-search.vue'
import { baseURL } from '@/utils/axios-api' import { baseURL } from '@/utils/axios-api'
import {useAccountStore} from '@/store/AccountStore'
export default { export default {
components: { components: {
@@ -155,6 +157,7 @@ export default {
const iduser = ref('') const iduser = ref('')
const result = ref({}) const result = ref({})
const changeData = ref(false) const changeData = ref(false)
const accountStore = useAccountStore()
const getcard = async (idus) => { const getcard = async (idus) => {
@@ -227,7 +230,8 @@ export default {
namepos, namepos,
changeData, changeData,
baseURL, baseURL,
burl burl,
accountStore
} }
} }
@@ -272,18 +272,7 @@
</v-main> </v-main>
<v-main v-else class="d-flex justify-center align-center text-h3 bg-teal-lighten-2"> <v-main v-else class="d-flex justify-center align-center text-h3 bg-teal-lighten-2">
<!-- <v-parallax
:src="`${burl}/media/newsimage/hello.png`"
>
<div class="d-flex flex-column fill-height justify-center align-center text-white">
<h1 class="text-h4 font-weight-thin mb-4">
Vuetify
</h1>
<h4 class="subheading">
Build your application today!
</h4>
</div>
</v-parallax> -->
<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}/media/newsimage/ng.png`" :image="`${burl}/media/newsimage/ng.png`"
+4 -10
View File
@@ -11,23 +11,16 @@
<v-row> <v-row>
<v-col class="pr-0 pt-0 d-flex pt-3 flex-column"> <v-col class="pr-0 pt-0 d-flex pt-3 flex-column">
<event-calendar/> <event-calendar/>
<!-- <v-card class="h-100 bg-transparent pa-2 d-flex flex-column">
<v-row class="d-flex">
<v-col class="flex-column d-flex">
<event-calendar/>
</v-col>
</v-row>
</v-card> -->
</v-col> </v-col>
</v-row> </v-row>
</v-col> </v-col>
<v-col class="flex-column d-flex ma-3"> <v-col class="flex-column d-flex ma-3">
<v-row > <v-row >
<v-col cols="4" class="flex-grow-0 pa-0 pb-3"> <v-col cols="4" class="flex-grow-0 pa-0 pb-3" >
<digital-letna/> <digital-letna/>
</v-col> </v-col>
<v-col class="flex-column d-flex pr-0 pt-0 pb-0"> <v-col class="flex-column d-flex pr-0 pt-0 pb-0" >
<v-card class=" flex-column pik overflow-auto"> <v-card class=" flex-column pik overflow-auto">
<News-list-home /> <News-list-home />
@@ -117,6 +110,7 @@
onMounted(() => { onMounted(() => {
favoritLinks() favoritLinks()
console.log(accountStore.user.is_staff, '=1==1=1=1=1=1=1=1=1=1==1==1=1=1=1=1');
}) })
const favoritLinks = () => { const favoritLinks = () => {
+17 -3
View File
@@ -1,9 +1,17 @@
<template> <template>
<v-row > <v-row v-if="accountStore.user.is_staff">
<load-round/> <load-round/>
</v-row> </v-row>
<!-- -->
<v-row v-else>
<v-col
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
Отдел кадров и безопасности
</v-col>
</v-row>
@@ -12,7 +20,7 @@
<script> <script>
import LoadRound from '@/components/load-round.vue' import LoadRound from '@/components/load-round.vue'
import {pagecounter} from '@/utils/universal_functions' import {pagecounter} from '@/utils/universal_functions'
import {useAccountStore} from '@/store/AccountStore'
export default { export default {
@@ -23,6 +31,12 @@ export default {
setup(){ setup(){
pagecounter() pagecounter()
const accountStore = useAccountStore()
return {
accountStore
}
} }