Подготовка к показу
This commit is contained in:
1 parent
2df44d13eb
commit
a9b8cec2b0
7 files changed
+23
-77
No files matched your search
@@ -70,7 +70,7 @@
|
|||||||
v-model="dailyfiles"
|
v-model="dailyfiles"
|
||||||
variant="underlined"
|
variant="underlined"
|
||||||
density="compact"
|
density="compact"
|
||||||
label="Выберите ф-л"
|
|
||||||
hide-details
|
hide-details
|
||||||
class="pt-2 ml-0 text-white"
|
class="pt-2 ml-0 text-white"
|
||||||
/>
|
/>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
variant="text"
|
variant="text"
|
||||||
color="teal-darken-4"
|
color="teal-darken-4"
|
||||||
:disabled="dailyfiles==0?true:false"
|
:disabled="dailyfiles==0?true:false"
|
||||||
@click="onPickFile"
|
@click="onPickFile('roundfilse')"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- </v-col> -->
|
<!-- </v-col> -->
|
||||||
@@ -183,10 +183,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const onPickFile = () => {
|
const onPickFile = (ex) => {
|
||||||
const sdata = new FormData()
|
const sdata = new FormData()
|
||||||
sdata.append('dailyfiles', dailyfiles.value[0])
|
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
|
info.value = result.data
|
||||||
dailyfun()
|
dailyfun()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col class=" flex-column d-flex">
|
<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-col>
|
||||||
<v-icon
|
<v-icon
|
||||||
class="pt-2"
|
class="pt-2"
|
||||||
@@ -52,8 +52,8 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
</v-row>
|
</v-row> -->
|
||||||
<v-row>
|
<!-- <v-row>
|
||||||
|
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-file-input
|
<v-file-input
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
</v-row>
|
</v-row> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -91,59 +91,7 @@
|
|||||||
</v-row> -->
|
</v-row> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</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>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -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)"/>
|
<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="subheading me-2">{{x.scores.filter(e=> e.score==false).length}}</span>
|
||||||
<span class="me-1">·</span>
|
<span class="me-1">·</span>
|
||||||
<v-icon size="x-small" class="me-1" icon="mdi-message-text-outline" @click="openComent(x.id)"/>
|
<v-icon size="x-small" class="me-1" icon="mdi-message-text-outline"/>
|
||||||
<span class="pointer subheading">{{ x.comment.length }}</span>
|
<span class="subheading">{{ x.comment.length }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
@@ -83,7 +83,6 @@ export default {
|
|||||||
divs.value = []
|
divs.value = []
|
||||||
})
|
})
|
||||||
const newss=ref([])
|
const newss=ref([])
|
||||||
const dialogCommentShow = ref(false)
|
|
||||||
const burl = baseURL.slice(0,-1)
|
const burl = baseURL.slice(0,-1)
|
||||||
const textcomment = ref('')
|
const textcomment = ref('')
|
||||||
const idnews = ref(0)
|
const idnews = ref(0)
|
||||||
@@ -107,8 +106,7 @@ export default {
|
|||||||
|
|
||||||
const addComment = () => {
|
const addComment = () => {
|
||||||
axiosApiInstance.post(`api/navigation/news/`, {news: idnews.value, text: textcomment.value}).then(result => {
|
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=""
|
textcomment.value=""
|
||||||
}
|
}
|
||||||
@@ -144,7 +142,6 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
const openComent = (news) => {
|
const openComent = (news) => {
|
||||||
dialogCommentShow.value=!dialogCommentShow.value
|
|
||||||
idnews.value = news
|
idnews.value = news
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,8 +166,7 @@ export default {
|
|||||||
burl,
|
burl,
|
||||||
limitText,
|
limitText,
|
||||||
toggleIncrementLike,
|
toggleIncrementLike,
|
||||||
dialogCommentShow,
|
accountStore,
|
||||||
accountStore,
|
|
||||||
dateformat,
|
dateformat,
|
||||||
splitname,
|
splitname,
|
||||||
textcomment,
|
textcomment,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
v-for="(x, i) in newss.result" :key=i>
|
v-for="(x, i) in newss.result" :key=i>
|
||||||
|
|
||||||
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
<v-list-item class="w-100 pl-4 py-2 pt-3">
|
||||||
|
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<v-list-item-title>{{x.author.fio}}</v-list-item-title>
|
<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"/> -->
|
<!-- <my-helper :pretext="route.path == '/news' && 'id' in route.query"/> -->
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<my-helper :pretext="onlineuser"/>
|
||||||
<v-list-item v-for="x in onlineuser"
|
<v-list-item v-for="x in onlineuser"
|
||||||
:key="x"
|
:key="x"
|
||||||
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
|
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
|
||||||
title="x"
|
title="x"
|
||||||
nav
|
nav
|
||||||
@click="whatuser(x)">
|
@click="whatuser(x)">
|
||||||
|
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-dialog
|
<v-dialog
|
||||||
v-model="menuGetUserDialog"
|
v-model="menuGetUserDialog"
|
||||||
|
|||||||
@@ -145,6 +145,7 @@
|
|||||||
:title="x.name"
|
:title="x.name"
|
||||||
:value="x.name"
|
:value="x.name"
|
||||||
:href="x.link"
|
:href="x.link"
|
||||||
|
:disabled="x.path=='/securyty'"
|
||||||
:to="x.path"
|
:to="x.path"
|
||||||
color="navigation">
|
color="navigation">
|
||||||
|
|
||||||
@@ -390,11 +391,11 @@ export default {
|
|||||||
name: 'Справочник',
|
name: 'Справочник',
|
||||||
link: 'http://10.252.44.33/accounting6/members.php'
|
link: 'http://10.252.44.33/accounting6/members.php'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: 'О пользователе',
|
// name: 'О пользователе',
|
||||||
ico: 'mdi-account',
|
// ico: 'mdi-account',
|
||||||
path: "/userinfo"
|
// path: "/userinfo"
|
||||||
},
|
// },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -118,4 +118,4 @@ class ShortUserSerializer(serializers.ModelSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
model = DictEmployee
|
model = DictEmployee
|
||||||
fields = ['familyname', 'name', 'parentname', 'id']
|
fields = ['familyname', 'name', 'parentname', 'id', 'login']
|
||||||
Reference in new issue
Block a user