Commit 9e1d6ec6 authored by lvshibao's avatar lvshibao

seat接口修改

parent c003f50c
......@@ -47,8 +47,9 @@ class TasksApi(viewsets.ViewSet):
"""
city_id = req.GET.get('city', None)
country_id = req.GET.get('country', None)
team_id = req.GET.get('team', None)
session_condition = req.data.get('date_condition', {})
team_names = get_team_names(city_id, country_id)
team_names = get_team_names(city_id, country_id, team_id)
session_condition['task__in'] = team_names
seat_ids = list(set(SeatStat.objects.filter(**session_condition).values_list('agentName', flat=True)))
......
......@@ -204,7 +204,7 @@ new Vue({
},
getTake() {
let that = this;
RquestsGet('api/v1/tasks/seat/?city=' + that.cityvalue + '&country=' + that.countryvalue + '&start_date=' + this.start_date + '&end_date=' + this.end_date).then(data => {
RquestsGet('api/v1/tasks/seat/?city=' + that.cityvalue + '&country=' + that.countryvalue + '&team=' + that.teamvalue + '&start_date=' + this.start_date + '&end_date=' + this.end_date).then(data => {
//console.log(data);
if (data.code != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment