Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
inspect_report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengjinlei
inspect_report
Commits
1aaf7a8e
Commit
1aaf7a8e
authored
Apr 24, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
group页面修改
parent
1fc67647
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
tasksapi.py
src/inspect_report/api/tasksapi.py
+9
-0
group.html
src/inspect_report/templates/inspect/group.html
+1
-1
No files found.
src/inspect_report/api/tasksapi.py
View file @
1aaf7a8e
...
@@ -602,6 +602,15 @@ class TasksApi(viewsets.ViewSet):
...
@@ -602,6 +602,15 @@ class TasksApi(viewsets.ViewSet):
seats
=
paginator
.
page
(
1
)
seats
=
paginator
.
page
(
1
)
except
EmptyPage
:
except
EmptyPage
:
seats
=
paginator
.
page
(
paginator
.
num_pages
)
seats
=
paginator
.
page
(
paginator
.
num_pages
)
agent_names
=
[
x
[
'agentName'
]
for
x
in
seats
]
seats_code_name_list
=
Seat
.
objects
.
filter
(
code__in
=
agent_names
)
.
values
(
'code'
,
'name'
)
seats_code_name
=
dict
()
for
seat_code_name
in
seats_code_name_list
:
seats_code_name
[
seat_code_name
[
'code'
]]
=
seat_code_name
[
'name'
]
for
rule_dict
in
seats
:
rule_dict
[
'seatName'
]
=
seats_code_name
.
get
(
rule_dict
[
'agentName'
],
rule_dict
[
'agentName'
])
return
Response
({
'code'
:
0
,
'msg'
:
'success'
,
'count'
:
total_count
,
'data'
:
seats
.
object_list
})
return
Response
({
'code'
:
0
,
'msg'
:
'success'
,
'count'
:
total_count
,
'data'
:
seats
.
object_list
})
...
...
src/inspect_report/templates/inspect/group.html
View file @
1aaf7a8e
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
<el-table
style=
'margin-top:-20px'
:data=
"poptableData"
height=
'300'
>
<el-table
style=
'margin-top:-20px'
:data=
"poptableData"
height=
'300'
>
<el-table-column
prop=
"agentName"
label=
"坐席id"
width=
'190'
></el-table-column>
<el-table-column
prop=
"agentName"
label=
"坐席id"
width=
'190'
></el-table-column>
{#
<el-table-column
prop=
"customName"
label=
"客户"
width=
'190'
></el-table-column>
#}
<el-table-column
prop=
"seatName"
label=
"坐席名称"
width=
'190'
></el-table-column>
<el-table-column
prop=
"remainTime"
label=
"通话时间(秒)"
>
<el-table-column
prop=
"remainTime"
label=
"通话时间(秒)"
>
{#
<template
slot-scope=
'scope'
>
#}
{#
<template
slot-scope=
'scope'
>
#}
{#
<span>
{{formatSeconds(scope.row.remainTime)}}
</span>
#}
{#
<span>
{{formatSeconds(scope.row.remainTime)}}
</span>
#}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment