- {{key}} : {{ val.count }} {{ val.login }}
+
+
+
+
+
-
-
-
@@ -116,13 +117,16 @@ import lineGraph from '@/components/graph/line-graph.vue'
import { axiosApiInstance } from '@/utils/axios-api'
import Feedmodul from '@/components/UI/aboutportal/feedmodul.vue'
import DateSelect from '@/components/UI/date-select.vue'
-
+import TopUser from '@/components/UI/aboutportal/top-user.vue'
export default {
- components: { lineGraph,
+ components: {
+ lineGraph,
Feedmodul,
- DateSelect },
+ DateSelect,
+ TopUser
+ },
setup(){
@@ -227,26 +231,13 @@ setup(){
}
const visition = () => {
-
- // ${startdate.value}
-
axiosApiInstance.get(`api/watcher/counter/?start=${startdate.value}&end=${endate.value}`).then(result => {
visiting.value = result.data.result
feedback.value = result.data.feedback
-
})}
-
-
-
-
- //
pagecounter()
-
-
-
-
const countgrupp = () => {
let us = {}
let countall = {now: 0, week: 0, year: 0}
@@ -324,9 +315,12 @@ setup(){
if (!acc[splitname(item.author)]) {
acc[splitname(item.author)] = {count: 0, login: ''}
}
-
+
+ acc[splitname(item.author)]['fio'] = splitname(item.author)
acc[splitname(item.author)]['count'] += item.count
acc[splitname(item.author)]['login'] = item.author.login
+ acc[splitname(item.author)]['post'] = item.author.post
+
}
diff --git a/src/userauth/serializers.py b/src/userauth/serializers.py
index 0748d8bb5..32ad54472 100644
--- a/src/userauth/serializers.py
+++ b/src/userauth/serializers.py
@@ -118,4 +118,4 @@ class ShortUserSerializer(serializers.ModelSerializer):
class Meta:
model = DictEmployee
- fields = ['familyname', 'name', 'parentname', 'id', 'login']
\ No newline at end of file
+ fields = ['familyname', 'name', 'parentname', 'id', 'login', 'post', 'department']
\ No newline at end of file