Возврат диалогового окна для комментария новостей

This commit is contained in:
iriska-gri committed 2023-12-04 08:34:03 +03:00
1 parent 19d248721c
commit 3f04b32518
11 files changed
+84 -11

No files matched your search

+10
View File
@@ -29,6 +29,7 @@
"vue-cal": "^4.8.1",
"vue-chartjs": "^5.2.0",
"vue-jwt-decode": "^0.1.0",
"vue-masonry-gallery": "^1.1.1",
"vue-router": "^4.0.0",
"vue3-autocounter": "^1.0.6",
"vuelidate": "^0.7.7",
@@ -21745,6 +21746,15 @@
"node": ">=4.0.0"
}
},
"node_modules/vue-masonry-gallery": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/vue-masonry-gallery/-/vue-masonry-gallery-1.1.1.tgz",
"integrity": "sha512-XwszmFZQ5a1j9i/7yuxgO0rf/l55V/DI9V19aO0bAjOMV3KBGwfYkm5PP6AGYNNio8Q+ZswXE6lYXM+gKNNlYQ==",
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
}
},
"node_modules/vue-pronto": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/vue-pronto/-/vue-pronto-2.4.0.tgz",
+1
View File
@@ -31,6 +31,7 @@
"vue-cal": "^4.8.1",
"vue-chartjs": "^5.2.0",
"vue-jwt-decode": "^0.1.0",
"vue-masonry-gallery": "^1.1.1",
"vue-router": "^4.0.0",
"vue3-autocounter": "^1.0.6",
"vuelidate": "^0.7.7",
+14 -3
View File
@@ -38,12 +38,21 @@
</v-col>
<v-col cols="12" class="py-0">
<v-text-field
:type="eyeshow ? 'text' : 'password'"
v-model="anon.password"
label="Пароль"
variant="underlined"
type="password"
:error-messages="errorer('password')"
/>
@click:append-inner="eyeshow= !eyeshow"
>
<template v-slot:append-inner>
<v-icon size="x-small" :icon="eyeshow ? 'mdi-eye' : 'mdi-eye-off'" @click="eyeshow= !eyeshow">
</v-icon>
</template>
</v-text-field>
</v-col>
</v-row>
</v-container>
@@ -112,6 +121,7 @@ export default {
const menuAuthDialog = ref(false)
const err = ref('')
const alert = ref(false)
const eyeshow = ref(false)
const anon=reactive({
@@ -170,7 +180,8 @@ export default {
logging,
errorer,
alert,
err
err,
eyeshow
}
}
+49 -3
View File
@@ -179,6 +179,7 @@
>
<v-card-title class="pt-0 pb-1">
<v-row></v-row>
{{x.title}}
</v-card-title>
@@ -284,14 +285,18 @@
>
<v-row class="ma-0 my-3 overflow-auto h-0">
<v-col class="pa-0">
<v-card-text class="pt-0">
<v-card-text class="pt-0" >
<v-row>
<v-col
v-for="n in x.gallery"
:key="n"
class="d-flex child-flex"
cols="4"
cols="2"
>
<!-- <vue-masonry-gallery :imgsArr="imgsArr"></vue-masonry-gallery> -->
<v-img
:src="`${burl}${n.img}`"
:lazy-src="`${burl}${n.img}`"
@@ -305,6 +310,7 @@
align="center"
justify="center"
>
<v-progress-circular
indeterminate
color="grey-lighten-5"
@@ -406,6 +412,43 @@
</v-col>
</v-row>
</v-col>
<v-dialog
v-model="dialogCommentShow"
persistent
width="550"
>
<v-card>
<v-card-title class="text-h5">
Прокоментировать новость
</v-card-title>
<v-card-text>
<v-textarea
variant="solo"
hide-details
rows="5"
v-model="textcomment"
></v-textarea>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="modal_btn"
variant="text"
@click="dialogCommentShow = false"
>
Отмена
</v-btn>
<v-btn
color="modal_btn"
variant="text"
@click="addComment"
>
Отправить
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
@@ -438,6 +481,7 @@ export default {
const newss=ref([])
const imgsArr=ref(['http://127.0.0.1:8000/media/newsgallery/2023/12/01/world-of-warcraft-wow-znak.jpg'])
const dialogCommentShow = ref(false)
const gallery = ref(false)
const burl = baseURL.slice(0,-1)
@@ -446,6 +490,7 @@ export default {
const page = ref(1)
const selecnews = ref(2)
const route = useRoute()
let str = `api/navigation/news/?name=${route.path}&page=${page.value-1}&selected=${selecnews.value}`
@@ -592,7 +637,8 @@ export default {
route,
spravURL,
formatText,
gallery
gallery,
imgsArr
@@ -285,11 +285,11 @@
</div>
</v-parallax> -->
<v-card
class="h-100 w-100 d-flex justify-center flex-column"
:image="`${burl}/media/newsimage/hello.png`"
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
:image="`${burl}/media/newsimage/ng.png`"
>
<p class="text-center text-white">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
<p class="mt-3 text-subtitle-1 text-center text-white">Авторизуйтесь для получения доступа к контенту портала</p>
<!-- <p class="text-center textcolor font-weight-black">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
<p class="mt-3 text-subtitle-1 text-center textcolor">Авторизуйтесь для получения доступа к контенту портала</p> -->
</v-card>
<!-- <div
> :image="`${burl}/media/newsimage/hello.png`"
@@ -482,4 +482,8 @@ export default {
.railmenu .v-list-group__items .v-list-item {
padding-inline-start: 11px!important;
}
.textcolor {
color: #00b9f3;
}
</style>
+2 -1
View File
@@ -14,7 +14,7 @@ import { createApp } from 'vue'
import { registerPlugins } from '@/plugins'
import components from '@/components/UI/index'
import Vue3Autocounter from 'vue3-autocounter';
import VueWMasonryGallery from "vue-masonry-gallery";
const app = createApp(App)
@@ -23,6 +23,7 @@ components.forEach((component) => {
})
app.component('vue3-autocounter', Vue3Autocounter)
app.component('vue-masonry-gallery', VueWMasonryGallery)
// Vue.use(VueScrollTo)
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB