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
fb1cff9b
Commit
fb1cff9b
authored
Apr 23, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
group页面修改
parent
8f44c252
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
tasksapi.py
src/inspect_report/api/tasksapi.py
+5
-8
group.js
static/inspect/js/group.js
+3
-3
No files found.
src/inspect_report/api/tasksapi.py
View file @
fb1cff9b
...
...
@@ -570,6 +570,7 @@ class TasksApi(viewsets.ViewSet):
{
'code'
:
0
,
'msg'
:
'success'
,
'count'
:
total_count
,
'data'
:
seats
.
object_list
})
@
action
([
'post'
],
detail
=
False
)
@
before_request
def
score_detail
(
self
,
req
:
Request
):
"""
坐席得分列表
...
...
@@ -577,19 +578,15 @@ class TasksApi(viewsets.ViewSet):
:return:
"""
agent_name
=
req
.
data
.
get
(
'agentName'
,
''
)
area
=
req
.
data
.
get
(
'task'
,
''
)
page
=
req
.
data
.
get
(
'page'
,
'1'
)
page_size
=
req
.
data
.
get
(
'page_size'
,
'10'
)
start_date
=
req
.
data
.
get
(
'start_date'
,
(
datetime
.
now
()
+
timedelta
(
days
=-
1
))
.
strftime
(
'
%
Y-
%
m-
%
d'
))
end_date
=
req
.
data
.
get
(
'end_date'
,
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d'
))
q_start_date
=
datetime
.
strptime
(
start_date
,
'
%
Y-
%
m-
%
d'
)
.
date
()
q_end_date
=
(
datetime
.
strptime
(
end_date
,
'
%
Y-
%
m-
%
d'
)
+
timedelta
(
days
=
1
))
.
date
()
session_condition
=
req
.
data
.
get
(
'date_condition'
,
{})
team
=
req
.
data
.
get
(
'team'
,
''
)
session_condition
=
{
'create_date__gte'
:
q_start_date
,
'create_date__lt'
:
q_end_date
}
if
agent_name
:
session_condition
[
'agentName'
]
=
agent_name
if
area
:
session_condition
[
'task'
]
=
area
if
team
:
session_condition
[
'task'
]
=
team
checks
=
RulesStat
.
objects
.
filter
(
**
session_condition
)
\
.
extra
(
select
=
{
'sessionCollectionId'
:
'sessionCollectionId'
})
\
...
...
static/inspect/js/group.js
View file @
fb1cff9b
...
...
@@ -204,17 +204,17 @@ new Vue({
this
.
poprule
=
data
.
rule
;
this
.
popcurrentPage
=
1
;
this
.
poppage
=
1
;
this
.
t
ask
value
=
tableData
.
area
;
this
.
t
eam
value
=
tableData
.
area
;
this
.
getDetail
(
this
.
teamvalue
,
this
.
start_date
,
this
.
end_date
,
this
.
poptables
,
this
.
poprule
,
this
.
poppage
,
this
.
poppagesize
);
this
.
dialogTableVisible
=
true
;
},
getDetail
(
t
ask
,
start_date
,
end_date
,
tables
,
rule
,
page
,
page_size
){
getDetail
(
t
eam
,
start_date
,
end_date
,
tables
,
rule
,
page
,
page_size
){
//this.getRule(this.taskvalue,this.start_date,this.end_date,this.takevalue); // 获取统计数据
let
that
=
this
;
//this.$loading({text:'数据加载中...'});
this
.
poploading
=
true
;
RquestsPost
(
'
api/v1/tasks/score_detail/
'
,{
t
ask
,
end_date
,
start_date
,
tables
,
rule
,
page
,
page_size
}).
then
(
data
=>
{
RquestsPost
(
'
api/v1/tasks/score_detail/
'
,{
t
eam
,
end_date
,
start_date
,
tables
,
rule
,
page
,
page_size
}).
then
(
data
=>
{
console
.
log
(
data
.
data
);
if
(
data
.
code
!=
0
){
that
.
$message
(
data
.
msg
);
...
...
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