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
2034f25c
Commit
2034f25c
authored
Apr 24, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rule页面修改
parent
8bcf8545
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
tasksapi.py
src/inspect_report/api/tasksapi.py
+9
-0
rule.html
src/inspect_report/templates/inspect/rule.html
+1
-3
No files found.
src/inspect_report/api/tasksapi.py
View file @
2034f25c
...
@@ -531,6 +531,15 @@ class TasksApi(viewsets.ViewSet):
...
@@ -531,6 +531,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
})
@
action
([
'post'
],
detail
=
False
)
@
action
([
'post'
],
detail
=
False
)
...
...
src/inspect_report/templates/inspect/rule.html
View file @
2034f25c
...
@@ -165,9 +165,7 @@
...
@@ -165,9 +165,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=
"seatName"
label=
"坐席名称"
width=
'190'
></el-table-column>
<el-table-column prop="customName" 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