예제 #1
0
def load_project_error(request):
    pl = project_task_report().undone_list()
    data = {
        'projectlist': pl,
        'username': request.session['username'],
    }
    return render(request, 'qcdata/project_task_error.html', data)
예제 #2
0
def load_project(request):
    pl = project_task_report().undone_list()
    data = {
        'username': request.session['username'],
        'projectlist': pl,
    }
    return render(request, 'qcdata/ztao_project_bug.html', data)
예제 #3
0
def load_project_bugs(request):
    '''项目每日缺陷数据查询界面'''
    pl = project_task_report().undone_list()
    data = {
        'projectlist': pl,
        'username': request.session['username'],
    }
    return render(request, 'qcdata/project_bugs.html', data)
예제 #4
0
def project_task_info(request):
    pid = request.GET.get('pid', "")
    w = request.GET.get('sway', "")
    if w == "yesterday":
        res = project_task_report().get_project_taskinfo(pid)
        if res.empty:
            j = {'msg': '查询无数据'}
        else:
            res = res.to_json(orient="records", force_ascii=False)
            task_list = json.loads(res)
    else:
        pass
        # res=project_task_report()
        # res=res.to_json(orient="records",force_ascii=False)
        # j = json.loads(res)
    return HttpResponse(json.dumps(task_list))