From a9b8cec2b0cf400f1dce2c9a289eaf999c702f5c Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:55:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BA=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/digital-letna.vue | 8 +-- src/front/src/components/load-round.vue | 60 ++----------------- src/front/src/components/news-list-home.vue | 12 ++-- src/front/src/components/news-list-news.vue | 4 +- src/front/src/components/onlineUsers.vue | 3 +- .../src/layouts/default/DefaultPortal.vue | 11 ++-- src/userauth/serializers.py | 2 +- 7 files changed, 23 insertions(+), 77 deletions(-) diff --git a/src/front/src/components/digital-letna.vue b/src/front/src/components/digital-letna.vue index 831a83ac5..7ac475f74 100644 --- a/src/front/src/components/digital-letna.vue +++ b/src/front/src/components/digital-letna.vue @@ -70,7 +70,7 @@ v-model="dailyfiles" variant="underlined" density="compact" - label="Выберите ф-л" + hide-details class="pt-2 ml-0 text-white" /> @@ -84,7 +84,7 @@ variant="text" color="teal-darken-4" :disabled="dailyfiles==0?true:false" - @click="onPickFile" + @click="onPickFile('roundfilse')" /> @@ -183,10 +183,10 @@ export default { }) } - const onPickFile = () => { + const onPickFile = (ex) => { const sdata = new FormData() sdata.append('dailyfiles', dailyfiles.value[0]) - axiosApiInstance.post(`api/general_vacation/dailyroundup/`, sdata).then(result => { + axiosApiInstance.post(`api/general_vacation/dailyroundup/?excel=${ex}`, sdata).then(result => { info.value = result.data dailyfun() }) diff --git a/src/front/src/components/load-round.vue b/src/front/src/components/load-round.vue index 384aaa166..cdace38e6 100644 --- a/src/front/src/components/load-round.vue +++ b/src/front/src/components/load-round.vue @@ -42,7 +42,7 @@ - + + @@ -91,59 +91,7 @@ --> - - - - diff --git a/src/front/src/components/news-list-home.vue b/src/front/src/components/news-list-home.vue index ee3115bbe..0ea513dea 100644 --- a/src/front/src/components/news-list-home.vue +++ b/src/front/src/components/news-list-home.vue @@ -33,8 +33,8 @@ {{x.scores.filter(e=> e.score==false).length}} · - - {{ x.comment.length }} + + {{ x.comment.length }} @@ -83,7 +83,6 @@ export default { divs.value = [] }) const newss=ref([]) - const dialogCommentShow = ref(false) const burl = baseURL.slice(0,-1) const textcomment = ref('') const idnews = ref(0) @@ -107,8 +106,7 @@ export default { const addComment = () => { axiosApiInstance.post(`api/navigation/news/`, {news: idnews.value, text: textcomment.value}).then(result => { - dialogCommentShow.value=!dialogCommentShow.value - newss.value.result[newss.value.result.findIndex(e=> e.id==result.data['news'])].comment = result.data.comment + newss.value.result[newss.value.result.findIndex(e=> e.id==result.data['news'])].comment = result.data.comment }) textcomment.value="" } @@ -144,7 +142,6 @@ export default { const openComent = (news) => { - dialogCommentShow.value=!dialogCommentShow.value idnews.value = news } @@ -169,8 +166,7 @@ export default { burl, limitText, toggleIncrementLike, - dialogCommentShow, - accountStore, + accountStore, dateformat, splitname, textcomment, diff --git a/src/front/src/components/news-list-news.vue b/src/front/src/components/news-list-news.vue index b68da6ce4..4d2e42952 100644 --- a/src/front/src/components/news-list-news.vue +++ b/src/front/src/components/news-list-news.vue @@ -8,7 +8,7 @@ v-for="(x, i) in newss.result" :key=i> - +