Алерт

This commit is contained in:
iriska-gri committed 2024-03-14 17:03:47 +03:00
1 parent 53a1fe6195
commit db9a6e1c35
6 files changed
+70 -28

No files matched your search

+5
View File
@@ -69,4 +69,9 @@ import {useAccountStore} from '@/store/AccountStore'
.w100 {
max-width: 100%!important
}
.bottom-alert {
bottom: 10px;
left: 40%;
}
</style>
+3 -3
View File
@@ -15,7 +15,7 @@
<feedstar-like
:rating=feedbackdata
@update:rating="feedbackdata.nowrating = $event"
/>
/>
<v-row class="mt-6">
<v-col class="pa-0 px-3">
<v-textarea
@@ -73,7 +73,7 @@ export default {
setup(props, context) {
setup(props, {emit}) {
const feedbackdata= ref({nowcomment: {comment: '' }, nowrating: []})
function f_feedbackdata() {
@@ -116,7 +116,7 @@ export default {
}
function menusCloses() {
context.emit('menusClose')
emit('menusClose')
}
function feedSend() {
+1 -4
View File
@@ -165,8 +165,5 @@ export default {
height: 150px;
}
.bottom-alert {
bottom: 10px;
left: 40%;
}
</style>
+14 -20
View File
@@ -66,8 +66,9 @@
<Card-like
:LikeDialog="LikeDialog"
@menusClose="closeinfo()" />
:LikeDialog="LikeDialog"
@menusClose="closeinfo()"
/>
</v-dialog>
<v-tooltip location="bottom">
@@ -249,6 +250,8 @@
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
<router-view />
<alert-default />
</v-main>
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
@@ -283,20 +286,7 @@
<Online-users />
</v-navigation-drawer>
<v-alert
color="#C51162"
icon="mdi-material-design"
theme="dark"
border
width = "500"
position="fixed"
class="bottom-alert"
v-model="feedalert"
closable
>
Phasellus blandit leo ut odio. Morbi mattis ullamcorper velit. Donec orci lectus, aliquam ut, faucibus non, euismod id, nulla. In ut quam vitae odio lacinia tincidunt.
</v-alert>
</v-app>
</template>
@@ -316,6 +306,7 @@ import { clearAxios } from '@/utils/axios-api'
import { baseURL } from '@/utils/axios-api'
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
import PageCounter from '../../components/UI/defaultportal/page-counter.vue'
import AlertDefault from './alertDefault.vue'
export default {
components: {
@@ -323,7 +314,8 @@ export default {
OnlineUsers,
CardLike,
VcardUser,
PageCounter
PageCounter,
AlertDefault
},
mixins: [uf],
@@ -336,7 +328,7 @@ export default {
const accountStore = useAccountStore()
const drawer = ref(true)
const drawer_right = ref(true)
const feedalert = ref(false)
const LikeDialog = ref(false)
const rail = ref(false)
const showTooltip = ref(false)
@@ -472,7 +464,7 @@ export default {
const closeinfo = () => {
LikeDialog.value = false
feedalert.value=true
// feedalert.value=true
}
@@ -492,7 +484,7 @@ export default {
rail,
showTooltip,
menuTruncated,
feedalert,
// feedalert,
alert,
burl,
supperuser,
@@ -538,4 +530,6 @@ export default {
.myopacity .v-list-item__overlay {
opacity: 0;
}
</style>
@@ -0,0 +1,33 @@
<template>
<v-alert
color="#C51162"
icon="mdi-material-design"
theme="dark"
border
width = "500"
position="fixed"
class="bottom-alert"
v-model="feedalert"
closable
>
Оценка отправлена, спасибо за участие
</v-alert>
</template>
<script>
import { ref, computed} from 'vue'
export default {
setup() {
const feedalert = ref(true)
return {
feedalert
}
}
}
</script>
<style>
</style>
+14 -1
View File
@@ -11,5 +11,18 @@ export const usePortalFilterStore = defineStore('filter', () => {
return { date_period }
},
)
)
export const useAlertStore = defineStore('uniAlert', () => {
const alert = ref({ "alert": true,
"text": new Date(),
})
return { alert }
})