Merge branch 'feature/create_app' of http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2 into feature/create_app

This commit is contained in:
Alex committed 2023-10-10 13:00:05 +03:00
commit e94f7a69cd
4 files changed
+26 -14

No files matched your search

BIN
View File
Binary file not shown.
+1 -1
View File
@@ -117,7 +117,7 @@ export default {
.then(data => {
for (let x in data.data) {
console.log(data.data, 'data-----------------------');
// if (x =="Отпуск") {
+25 -12
View File
@@ -1,18 +1,22 @@
<template>
<div>
<v-list-item v-for="x in onlineuser"
:key="x"
<v-list-item v-for="x in onlineuser" v-show=" x!=accountStore.user.login"
:key="x"
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
title="x"
nav
@click="whatuser(x)"
>
<v-dialog
v-model="menuGetUserDialog"
persistent
width="600"
>
>
{{spravURL}}
<Card-users
:menuGetUserDialog="menuGetUserDialog"
@@ -23,6 +27,7 @@
</v-dialog>
</v-list-item>
</div>
</template>
@@ -41,15 +46,22 @@ export default {
setup(){
const loging = ref('')
const menuGetUserDialog=ref(false)
const wsfuncs={onliner:function(data){
// console.log(onlineuser)
const wsfuncs={onliner:function(data){
let newset = new Set(data)
onlineuser.value = Array.from(newset)
// console.log(onlineuser)
onlineuser.value = Array.from(newset)
}}
const accountStore = useAccountStore()
let onlineuser= ref([''])
// const userlinks = ref([])
}}
const accountStore = useAccountStore()
let onlineuser= 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)
@@ -60,7 +72,8 @@ export default {
}
connect.onmessage=(e)=>{
let data = JSON.parse(e.data)
let data = JSON.parse(e.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}
}
}
-1
View File
@@ -13,7 +13,6 @@ class PlanCalendarAdmin(admin.ModelAdmin):
list_display = ('name', 'start_work_period', 'end_work_period')
list_filter = ('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(PlanCalendar, PlanCalendarAdmin)