Загрузка на сайт
This commit is contained in:
1 parent
40f432a740
commit
500c809188
7 files changed
+31
-30
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.33",
|
||||
"version": "0.0.34",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "front",
|
||||
"version": "0.0.33",
|
||||
"version": "0.0.34",
|
||||
"dependencies": {
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.33",
|
||||
"version": "0.0.34",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<!-- cycle -->
|
||||
<v-carousel
|
||||
|
||||
cycle
|
||||
interval="10000"
|
||||
cover
|
||||
height="450"
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
<v-row class="flex-grow-0">
|
||||
<v-col class="py-0">
|
||||
<v-switch
|
||||
v-if="accountStore.user.is_staff"
|
||||
v-model="changeData"
|
||||
class="pl-3 d-flex justify-end"
|
||||
color="teal"
|
||||
@@ -134,6 +135,7 @@
|
||||
import CardUsers from '@/components/cardUsers.vue'
|
||||
import DialogSearch from './dialog-search.vue'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
export default {
|
||||
|
||||
components: {
|
||||
@@ -155,6 +157,7 @@ export default {
|
||||
const iduser = ref('')
|
||||
const result = ref({})
|
||||
const changeData = ref(false)
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
|
||||
const getcard = async (idus) => {
|
||||
@@ -227,7 +230,8 @@ export default {
|
||||
namepos,
|
||||
changeData,
|
||||
baseURL,
|
||||
burl
|
||||
burl,
|
||||
accountStore
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,18 +272,7 @@
|
||||
|
||||
</v-main>
|
||||
<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
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}/media/newsimage/ng.png`"
|
||||
|
||||
@@ -11,23 +11,16 @@
|
||||
<v-row>
|
||||
<v-col class="pr-0 pt-0 d-flex pt-3 flex-column">
|
||||
<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-row>
|
||||
</v-col>
|
||||
<v-col class="flex-column d-flex ma-3">
|
||||
<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/>
|
||||
</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">
|
||||
|
||||
<News-list-home />
|
||||
@@ -117,6 +110,7 @@
|
||||
|
||||
onMounted(() => {
|
||||
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 = () => {
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
<template>
|
||||
<v-row >
|
||||
<v-row v-if="accountStore.user.is_staff">
|
||||
<load-round/>
|
||||
|
||||
</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>
|
||||
import LoadRound from '@/components/load-round.vue'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
|
||||
export default {
|
||||
|
||||
@@ -23,6 +31,12 @@ export default {
|
||||
setup(){
|
||||
|
||||
pagecounter()
|
||||
const accountStore = useAccountStore()
|
||||
return {
|
||||
accountStore
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user