Алерт
This commit is contained in:
1 parent
3027968b4f
commit
019d73da6e
6 files changed
+70
-28
No files matched your search
@@ -69,4 +69,9 @@ import {useAccountStore} from '@/store/AccountStore'
|
|||||||
.w100 {
|
.w100 {
|
||||||
max-width: 100%!important
|
max-width: 100%!important
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottom-alert {
|
||||||
|
bottom: 10px;
|
||||||
|
left: 40%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<feedstar-like
|
<feedstar-like
|
||||||
:rating=feedbackdata
|
:rating=feedbackdata
|
||||||
@update:rating="feedbackdata.nowrating = $event"
|
@update:rating="feedbackdata.nowrating = $event"
|
||||||
/>
|
/>
|
||||||
<v-row class="mt-6">
|
<v-row class="mt-6">
|
||||||
<v-col class="pa-0 px-3">
|
<v-col class="pa-0 px-3">
|
||||||
<v-textarea
|
<v-textarea
|
||||||
@@ -73,7 +73,7 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
setup(props, context) {
|
setup(props, {emit}) {
|
||||||
const feedbackdata= ref({nowcomment: {comment: '' }, nowrating: []})
|
const feedbackdata= ref({nowcomment: {comment: '' }, nowrating: []})
|
||||||
|
|
||||||
function f_feedbackdata() {
|
function f_feedbackdata() {
|
||||||
@@ -116,7 +116,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function menusCloses() {
|
function menusCloses() {
|
||||||
context.emit('menusClose')
|
emit('menusClose')
|
||||||
}
|
}
|
||||||
|
|
||||||
function feedSend() {
|
function feedSend() {
|
||||||
|
|||||||
@@ -165,8 +165,5 @@ export default {
|
|||||||
height: 150px;
|
height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-alert {
|
|
||||||
bottom: 10px;
|
|
||||||
left: 40%;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@@ -66,8 +66,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<Card-like
|
<Card-like
|
||||||
:LikeDialog="LikeDialog"
|
:LikeDialog="LikeDialog"
|
||||||
@menusClose="closeinfo()" />
|
@menusClose="closeinfo()"
|
||||||
|
/>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
@@ -249,6 +250,8 @@
|
|||||||
|
|
||||||
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
||||||
<router-view />
|
<router-view />
|
||||||
|
|
||||||
|
<alert-default />
|
||||||
|
|
||||||
</v-main>
|
</v-main>
|
||||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||||
@@ -283,20 +286,7 @@
|
|||||||
<Online-users />
|
<Online-users />
|
||||||
|
|
||||||
</v-navigation-drawer>
|
</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>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -316,6 +306,7 @@ import { clearAxios } from '@/utils/axios-api'
|
|||||||
import { baseURL } from '@/utils/axios-api'
|
import { baseURL } from '@/utils/axios-api'
|
||||||
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
|
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
|
||||||
import PageCounter from '../../components/UI/defaultportal/page-counter.vue'
|
import PageCounter from '../../components/UI/defaultportal/page-counter.vue'
|
||||||
|
import AlertDefault from './alertDefault.vue'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
@@ -323,7 +314,8 @@ export default {
|
|||||||
OnlineUsers,
|
OnlineUsers,
|
||||||
CardLike,
|
CardLike,
|
||||||
VcardUser,
|
VcardUser,
|
||||||
PageCounter
|
PageCounter,
|
||||||
|
AlertDefault
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [uf],
|
mixins: [uf],
|
||||||
@@ -336,7 +328,7 @@ export default {
|
|||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore()
|
||||||
const drawer = ref(true)
|
const drawer = ref(true)
|
||||||
const drawer_right = ref(true)
|
const drawer_right = ref(true)
|
||||||
const feedalert = ref(false)
|
|
||||||
const LikeDialog = ref(false)
|
const LikeDialog = ref(false)
|
||||||
const rail = ref(false)
|
const rail = ref(false)
|
||||||
const showTooltip = ref(false)
|
const showTooltip = ref(false)
|
||||||
@@ -472,7 +464,7 @@ export default {
|
|||||||
|
|
||||||
const closeinfo = () => {
|
const closeinfo = () => {
|
||||||
LikeDialog.value = false
|
LikeDialog.value = false
|
||||||
feedalert.value=true
|
// feedalert.value=true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -492,7 +484,7 @@ export default {
|
|||||||
rail,
|
rail,
|
||||||
showTooltip,
|
showTooltip,
|
||||||
menuTruncated,
|
menuTruncated,
|
||||||
feedalert,
|
// feedalert,
|
||||||
alert,
|
alert,
|
||||||
burl,
|
burl,
|
||||||
supperuser,
|
supperuser,
|
||||||
@@ -538,4 +530,6 @@ export default {
|
|||||||
.myopacity .v-list-item__overlay {
|
.myopacity .v-list-item__overlay {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</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>
|
||||||
@@ -11,5 +11,18 @@ export const usePortalFilterStore = defineStore('filter', () => {
|
|||||||
|
|
||||||
return { date_period }
|
return { date_period }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
export const useAlertStore = defineStore('uniAlert', () => {
|
||||||
|
|
||||||
|
const alert = ref({ "alert": true,
|
||||||
|
"text": new Date(),
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
return { alert }
|
||||||
|
})
|
||||||
Reference in new issue
Block a user