From 515a66711ecb0bf71f6aeb2dfb0b591920e098fe Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:50:55 +0300 Subject: [PATCH] dd --- db.sqlite3 | Bin 323584 -> 323584 bytes front/src/components/UI/Calendar-full.vue | 2 +- front/src/components/onlineUsers.vue | 35 +++++++++++++++------- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index 64355add7d72d9faff1fb30b101976c19737a500..a96c875a697040cd371c0db2b10dc6418ecfe329 100644 GIT binary patch delta 493 zcmZutF-ROi6y5nVyL;}L{VNh8YTz&yLA<+}jo!K&4m66DT$=25Q6Z!Zqzc#syCa2= z5O7K@M1>S0E4K&|w6U-dA$P?EixqOj1cHj#1i`GALJ288@AKZ{Ki;2>+h^nU_g$p= zp?j26*Qf92Nf5rx&%LH6coB+BmW7X(KBtKl{$Be!PpoonoJ6&8_;@cbcvkQXcRcQT zgN2;n14DyDHn$%o^nVm7C!zQ-adVH`IWb^6w)>C!mJ(e~f+oyeg<(a(1B|hPr(xUh zGRn#VSe=TZ7_M6=WI56YR2*ffLoMimmM zln~30&iA2>P{B%4KY%I5-my|*{YJqJml#ux?6w&zhVp9)ccSRw0$n z2-Q$<4m-_PcP3iv#(c|<7D)N}s*?P%7?&&}KnYlN!Y`8Fu zk-z<_8{_t?ZcLNK^$jd^jVu%l%&iP9t&C0dj10_;jLnSEy3=9lh5dQQB^O;nb_1P~^XJ5b+%f!*X*-#;ueR}0` zCY|m7mou?S$m#QaX5jzI|BC-6{~rF0{AK*9{C@nl{5t%i{49L`r>h)baslcI=GwmV z6q7#7wAD=9+drRU5@cl7XE{2Z{Q^@wP&S^0$tq;}hnq}#jH27WU18$mmeXggW#I4S zm*UIi_2Ie6HI4HnClf~~`wF&$Y+9@zr>i_*a$;gj2I>`Oo&NASlX?4=r%XW1ynV}4 H79TDEol { for (let x in data.data) { - console.log(data.data, 'data-----------------------'); + // if (x =="Отпуск") { diff --git a/front/src/components/onlineUsers.vue b/front/src/components/onlineUsers.vue index 0476b918b..3ef46c5de 100644 --- a/front/src/components/onlineUsers.vue +++ b/front/src/components/onlineUsers.vue @@ -1,11 +1,15 @@ @@ -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} } }