Левое меню

This commit is contained in:
iriska-gri committed 2023-10-05 13:41:30 +03:00
1 parent d8a9d31938
commit c5dab0b2a6
6 files changed
+59 -13

No files matched your search

+18 -9
View File
@@ -1,8 +1,6 @@
<template>
<v-container class="py-1 newsVH px-0 bg-transparent overflow-auto">
<!-- <my-helper
:pretext ="newss"
/> -->
<v-card
class="mx-auto mb-0 "
v-for="(x, i) in newss" :key= i
@@ -105,13 +103,15 @@
class="d-flex align-center flex-column py-3"
>
<div class="text-subtitle-2">{{dateformat(y.cdate)}}
<v-btn
icon='mdi-thumb-down-outline'
color="red-lighten-2"
/>
variant="text"
size="small"
icon='mdi-delete'
color="blue-grey-darken-1"
@click="deletComment(y.id, x.id)"
/>
</div>
<v-card
@@ -234,7 +234,15 @@ export default {
}
}, {deep:true})
const deletComment = (id, news) => {
axiosApiInstance.post(`api/navigation/news/`, {delid: id, news: news}).then(result => {
// dialogCommentShow.value=!dialogCommentShow.value
newss.value[newss.value.findIndex(e=> e.id==result.data['news'])].comment = result.data.comment
console.log(result.data, 'result.data-----------------')
})
}
return {
@@ -249,7 +257,8 @@ export default {
textcomment,
openComent,
addComment,
idnews
idnews,
deletComment
}