Merge branch 'feature/create_app' of http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2 into feature/create_app
This commit is contained in:
commit
e94f7a69cd
4 files changed
+19
-7
No files matched your search
BIN
Binary file not shown.
@@ -117,7 +117,7 @@ export default {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
|
|
||||||
for (let x in data.data) {
|
for (let x in data.data) {
|
||||||
console.log(data.data, 'data-----------------------');
|
|
||||||
// if (x =="Отпуск") {
|
// if (x =="Отпуск") {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<v-list-item v-for="x in onlineuser"
|
|
||||||
|
|
||||||
|
<v-list-item v-for="x in onlineuser" v-show=" x!=accountStore.user.login"
|
||||||
: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-dialog
|
<v-dialog
|
||||||
@@ -23,6 +27,7 @@
|
|||||||
|
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -42,14 +47,21 @@ export default {
|
|||||||
const loging = ref('')
|
const loging = ref('')
|
||||||
const menuGetUserDialog=ref(false)
|
const menuGetUserDialog=ref(false)
|
||||||
const wsfuncs={onliner:function(data){
|
const wsfuncs={onliner:function(data){
|
||||||
// console.log(onlineuser)
|
|
||||||
let newset = new Set(data)
|
let newset = new Set(data)
|
||||||
onlineuser.value = Array.from(newset)
|
onlineuser.value = Array.from(newset)
|
||||||
// console.log(onlineuser)
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
const accountStore = useAccountStore()
|
const accountStore = useAccountStore()
|
||||||
let onlineuser= ref([''])
|
let onlineuser= ref([''])
|
||||||
|
// const userlinks = ref([])
|
||||||
|
|
||||||
|
// const loadlinksUser=async()=>{
|
||||||
|
// // console.log(`accountStore`, accountStore);
|
||||||
|
// const res = await clearAxios.get('api/accounts/getuser/?userlogin='+props.loging)
|
||||||
|
// userlinks.value=res.data
|
||||||
|
// }
|
||||||
|
// const gh = () => {
|
||||||
|
// console.log('hi');
|
||||||
|
// }
|
||||||
|
|
||||||
const connect = new WebSocket(baseWS+"ws/watcher/?token="+localStorage.access)
|
const connect = new WebSocket(baseWS+"ws/watcher/?token="+localStorage.access)
|
||||||
|
|
||||||
@@ -61,6 +73,7 @@ export default {
|
|||||||
|
|
||||||
connect.onmessage=(e)=>{
|
connect.onmessage=(e)=>{
|
||||||
let data = JSON.parse(e.data)
|
let data = JSON.parse(e.data)
|
||||||
|
|
||||||
wsfuncs[data['message']['action']](data.message.data)
|
wsfuncs[data['message']['action']](data.message.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +86,7 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return {loging, menuGetUserDialog, onlineuser, checkremote,spravURL, whatuser}
|
return {loging, menuGetUserDialog, onlineuser, checkremote,spravURL, whatuser, accountStore, gh}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class PlanCalendarAdmin(admin.ModelAdmin):
|
|||||||
list_display = ('name', 'start_work_period', 'end_work_period')
|
list_display = ('name', 'start_work_period', 'end_work_period')
|
||||||
list_filter = ('start_work_period', 'end_work_period')
|
list_filter = ('start_work_period', 'end_work_period')
|
||||||
fields = ('name', 'start_work_period', 'end_work_period')
|
fields = ('name', 'start_work_period', 'end_work_period')
|
||||||
ordering = ('-start_work_period',)
|
|
||||||
|
|
||||||
admin.site.register(GeneralVacation, GeneralVacationAdmin),
|
admin.site.register(GeneralVacation, GeneralVacationAdmin),
|
||||||
admin.site.register(PlanCalendar, PlanCalendarAdmin)
|
admin.site.register(PlanCalendar, PlanCalendarAdmin)
|
||||||
Reference in new issue
Block a user