Доделать алерт на обратную связь
This commit is contained in:
1 parent
339f4ceab2
commit
688249a328
8 files changed
+33
-12
No files matched your search
@@ -10,20 +10,21 @@
|
|||||||
icon="mdi-information"
|
icon="mdi-information"
|
||||||
color="cyan-darken-3"
|
color="cyan-darken-3"
|
||||||
size="12"
|
size="12"
|
||||||
|
class="cursor-help"
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<span class="text-caption">
|
<span class="text-caption ">
|
||||||
Информация о странице: <br/>
|
Информация о странице: <br/>
|
||||||
{{router.currentRoute.value.meta.title}} <br/>
|
{{router.currentRoute.value.meta.title}} <br/>
|
||||||
с {{formatComa(appStore.countvisitor.visitdate)}}
|
с {{formatComa(appStore.countvisitor.visitdate)}}
|
||||||
</span>
|
</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<p>Посещений всего: {{ appStore.countvisitor.totalvisit }}</p>
|
<p class="cursor-default">Посещений всего: {{ appStore.countvisitor.totalvisit }}</p>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<p>Посещений сегодня: {{ appStore.countvisitor.visittoday }}</p>
|
<p class="cursor-default">Посещений сегодня: {{ appStore.countvisitor.visittoday }}</p>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<p>Из них уникальных: {{ appStore.countvisitor.uniqtoday }}</p>
|
<p class="cursor-default">Из них уникальных: {{ appStore.countvisitor.uniqtoday }}</p>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item v-else class="align-center">
|
<v-list-item v-else class="align-center">
|
||||||
|
|||||||
@@ -53,7 +53,9 @@
|
|||||||
|
|
||||||
|
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -71,6 +73,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setup(props, context) {
|
setup(props, context) {
|
||||||
const feedbackdata= ref({nowcomment: {comment: '' }, nowrating: []})
|
const feedbackdata= ref({nowcomment: {comment: '' }, nowrating: []})
|
||||||
|
|
||||||
@@ -121,6 +125,7 @@ export default {
|
|||||||
console.log(feedbackdata.value.nowrating, 'feedbackdata.value.nowrating----------------------');
|
console.log(feedbackdata.value.nowrating, 'feedbackdata.value.nowrating----------------------');
|
||||||
axiosApiInstance.post(`api/feedback/feedbackdata/`, {nowrating : feedbackdata.value.nowrating, nowcomment: feedbackdata.value.nowcomment} ).then(data => {})
|
axiosApiInstance.post(`api/feedback/feedbackdata/`, {nowrating : feedbackdata.value.nowrating, nowcomment: feedbackdata.value.nowcomment} ).then(data => {})
|
||||||
menusCloses()
|
menusCloses()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {feedbackdata, average, menusCloses, myLabel, feedSend}
|
return {feedbackdata, average, menusCloses, myLabel, feedSend}
|
||||||
|
|||||||
@@ -28,8 +28,7 @@
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text
|
<v-card-text
|
||||||
@click="detailRound(x.position, x.position__name)"
|
@click="detailRound(x.position, x.position__name)"
|
||||||
class="numstyle mt-2 py-0 font-weight-bold cursor-
|
class="numstyle mt-2 py-0 font-weight-bold cursor-pointer bg-black_and_white"
|
||||||
pointer bg-black_and_white"
|
|
||||||
>
|
>
|
||||||
|
|
||||||
<vue3-autocounter
|
<vue3-autocounter
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
<Card-like
|
<Card-like
|
||||||
:LikeDialog="LikeDialog"
|
:LikeDialog="LikeDialog"
|
||||||
@menusClose="LikeDialog = false" />
|
@menusClose="closeinfo()" />
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
<v-tooltip location="bottom">
|
<v-tooltip location="bottom">
|
||||||
@@ -283,7 +283,19 @@
|
|||||||
<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>
|
||||||
@@ -324,7 +336,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)
|
||||||
@@ -455,7 +467,10 @@ export default {
|
|||||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const closeinfo = () => {
|
||||||
|
LikeDialog.value = false
|
||||||
|
feedalert.value=true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -474,10 +489,11 @@ export default {
|
|||||||
rail,
|
rail,
|
||||||
showTooltip,
|
showTooltip,
|
||||||
menuTruncated,
|
menuTruncated,
|
||||||
|
feedalert,
|
||||||
alert,
|
alert,
|
||||||
burl,
|
burl,
|
||||||
supperuser
|
supperuser,
|
||||||
|
closeinfo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 267 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 264 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
Reference in new issue
Block a user