Подготовка к показу

This commit is contained in:
iriska-gri committed 2023-11-23 09:55:58 +03:00
1 parent 2df44d13eb
commit a9b8cec2b0
7 files changed
+23 -77

No files matched your search

+4 -4
View File
@@ -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')"
/>
<!-- </v-col> -->
@@ -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()
})
+4 -56
View File
@@ -42,7 +42,7 @@
</v-col>
<v-col class=" flex-column d-flex">
<v-row class="flex-grow-0 align-self-end">
<!-- <v-row class="flex-grow-0 align-self-end">
<v-col>
<v-icon
class="pt-2"
@@ -52,8 +52,8 @@
/>
</v-col>
</v-row>
<v-row>
</v-row> -->
<!-- <v-row>
<v-col>
<v-file-input
@@ -74,7 +74,7 @@
/>
</v-col>
</v-row>
</v-row> -->
@@ -91,59 +91,7 @@
</v-row> -->
</v-col>
</v-row>
<!-- <v-row class="flex-grow-0">
<v-col class="bg-red">
1
</v-col>
<v-col class="bg-yellow">
2
</v-col>
</v-row> -->
<!-- <v-row class="justify-center align-center ma-3">
<v-col cols="1" class="px-0 pt-5">
<v-icon icon="mdi-file-excel"
color="green-darken-3"
@click="excelOp"/>
</v-col>
<v-col
cols="10"
class="text-h6 text-grey text-center d-flex align-baseline align-self-center text--lighten-1 font-weight-light px-0"
>
<v-file-input
accept=".xlsx"
v-model="dailyfiles"
variant="underlined"
density="compact"
label="Выберите файл"
hide-details
class="mr-2"/>
</v-col>
<v-col cols="1" class="px-0 pb-0 pt-7">
<v-icon icon="mdi-download"
color="blue-grey-darken-2"
@click="onPickFile"/>
</v-col>
</v-row> -->
</template>
+4 -8
View File
@@ -33,8 +33,8 @@
<v-icon size="x-small" class="me-1" :icon="x.scores.filter(e=> e.user==accountStore.user.login && e.score == false).length>0?'mdi-thumb-down':'mdi-thumb-down-outline'" @click="toggleIncrementLike(x.id, false)"/>
<span class="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
<span class="me-1">·</span>
<v-icon size="x-small" class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
<span class="pointer subheading">{{ x.comment.length }}</span>
<v-icon size="x-small" class="me-1" icon="mdi-message-text-outline"/>
<span class="subheading">{{ x.comment.length }}</span>
</div>
</template>
</v-list-item>
@@ -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,
+2 -2
View File
@@ -8,7 +8,7 @@
v-for="(x, i) in newss.result" :key=i>
<v-list-item class="w-100 pl-4 py-2 pt-3">
<template v-slot:prepend>
@@ -20,7 +20,7 @@
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
<v-list-item-subtitle>Участник</v-list-item-subtitle>
<!-- <v-list-item-subtitle>Участник</v-list-item-subtitle> -->
<!-- <my-helper :pretext="route.path == '/news' && 'id' in route.query"/> -->
</v-list-item>
+2 -1
View File
@@ -1,12 +1,13 @@
<template>
<div>
<my-helper :pretext="onlineuser"/>
<v-list-item v-for="x in onlineuser"
:key="x"
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
title="x"
nav
@click="whatuser(x)">
</v-list-item>
<v-dialog
v-model="menuGetUserDialog"
@@ -145,6 +145,7 @@
:title="x.name"
:value="x.name"
:href="x.link"
:disabled="x.path=='/securyty'"
:to="x.path"
color="navigation">
@@ -390,11 +391,11 @@ export default {
name: 'Справочник',
link: 'http://10.252.44.33/accounting6/members.php'
},
{
name: 'О пользователе',
ico: 'mdi-account',
path: "/userinfo"
},
// {
// name: 'О пользователе',
// ico: 'mdi-account',
// path: "/userinfo"
// },
]
},
{