dd
This commit is contained in:
1 parent
4ae64194ec
commit
515a66711e
3 files changed
+25
-12
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"
|
|
||||||
:key="x"
|
|
||||||
|
<v-list-item v-for="x in onlineuser" v-show=" x!=accountStore.user.login"
|
||||||
|
: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>
|
||||||
@@ -41,15 +46,22 @@ export default {
|
|||||||
setup(){
|
setup(){
|
||||||
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()
|
||||||
|
let onlineuser= ref([''])
|
||||||
|
// const userlinks = ref([])
|
||||||
|
|
||||||
}}
|
// const loadlinksUser=async()=>{
|
||||||
const accountStore = useAccountStore()
|
// // console.log(`accountStore`, accountStore);
|
||||||
let onlineuser= ref([''])
|
// 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)
|
||||||
|
|
||||||
@@ -60,7 +72,8 @@ 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}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user