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> - +